Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes
https://www.eclipse.org/forums/index.php/mv/msg/1416/3920/#msg_3920
I'm starting to walk through lessons and examples for the RTSC Primer. But
the first example doesn't work on my Windows host.
I did this and lesson 1 doesn't work. The output is:
"C:/Programme/Texas Instruments/xdctools_3_10_03"/xs xdc.tools.configuro
-c "C:/Programme/Texas Instruments/C6000 Code Generation Tools 6.1.10" -t
ti.targets.C64P -p ti.platforms.sim64Pxx -o cfgsite prog.cfg
Der Befehl ""C:/Programme/Texas Instruments/xdctools_3_10_03"" ist
entweder falsch geschrieben oder
konnte nicht gefunden werden.
gmake: *** [cfgsite/compiler.opt] Error 1
It look like the double-quotes are not in the right place. I did other
modifications in "common.mak": surround macros+extenstions with
double-quotes. This works.
Question: what will be best practice for solving the problem? And can this
configurations used on Linux hosts too?
Regards,
Andi
--- common.mak ---
## -------- common makefile -------- ##
## -------- host-specific paths -------- ##
## MODIFY THESE PATHS PER YOUR
INSTALLATION
## WINDOWS HOST -- SURROUND THESE
PATHS WITH "" "" IF THEY CONTAIN SPACES
XDCROOT = C:/Programme/Texas Instruments/xdctools_3_10_03
C6XTOOLS = C:/Programme/Texas Instruments/C6000 Code Generation Tools
6.1.10
## -------- remove command -------- ##
## LINUX HOSTS -- REPLACE
$(XDCROOT)/bin/rm WITH rm
RMCMD = $(XDCROOT)/bin/rm
## -------- test-rule -------- ##
test : $(PROGNAME).out
$(LOADER) $(PROGNAME).out
## -------- clean-rule -------- ##
clean :
$(XDCROOT)/bin/rm -rf $(CONFIG) *.obj *.out]]>Andreas Zoufal2009-06-13T18:07:48-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes
https://www.eclipse.org/forums/index.php/mv/msg/1416/3928/#msg_3928
Originally posted by: bob.biosbob.biz
i have to be honest with you.... i've seen so many issues with spaces in
pathnames that my best advice is: avoid them if possible!!!!
i'm not sure i understand what you did that eventually worked, but could
you send an example....
the text in the module primer was probably a little misleading, for
which we apologize....
Andreas Zoufal wrote:
> Hi,
>
> I'm starting to walk through lessons and examples for the RTSC Primer.
> But the first example doesn't work on my Windows host.
>
> Citation in
> http://rtsc.eclipse.org/docs-tip/RTSC_Module_Primer/Lesson_0 :
> "Windows-hosted developers should surround «xdcroot» or «c6xtools» with
> double-quotes "..." if these directory paths contain any spaces in their
> names."
>
> I did this and lesson 1 doesn't work. The output is:
>
> "C:/Programme/Texas Instruments/xdctools_3_10_03"/xs xdc.tools.configuro
> -c "C:/Programme/Texas Instruments/C6000 Code Generation Tools 6.1.10"
> -t ti.targets.C64P -p ti.platforms.sim64Pxx -o cfgsite prog.cfg
> Der Befehl ""C:/Programme/Texas Instruments/xdctools_3_10_03"" ist
> entweder falsch geschrieben oder
> konnte nicht gefunden werden.
> gmake: *** [cfgsite/compiler.opt] Error 1
>
> It look like the double-quotes are not in the right place. I did other
> modifications in "common.mak": surround macros+extenstions with
> double-quotes. This works.
>
> Question: what will be best practice for solving the problem? And can
> this configurations used on Linux hosts too?
>
> Regards,
> Andi
>
> --- common.mak ---
>
> ## -------- common makefile -------- ##
>
>
> ## -------- host-specific paths -------- ##
> ## MODIFY THESE PATHS PER YOUR
> INSTALLATION
> ## WINDOWS HOST -- SURROUND
> THESE PATHS WITH "" "" IF THEY CONTAIN SPACES XDCROOT =
> C:/Programme/Texas Instruments/xdctools_3_10_03
> C6XTOOLS = C:/Programme/Texas Instruments/C6000 Code Generation Tools
> 6.1.10
>
> ## -------- remove command -------- ##
> ## LINUX HOSTS -- REPLACE
> $(XDCROOT)/bin/rm WITH rm
> RMCMD = $(XDCROOT)/bin/rm
>
>
> ## --------build tools -------- ##
> CONFIGURO = "$(XDCROOT)/xs" xdc.tools.configuro
> LOADER = "$(XDCROOT)/xs" xdc.tools.loader
> CC = "$(C6XTOOLS)/bin/cl6x" -q
>
> ## -------- build parameters -------- ##
> CONFIG = cfgsite
> TARGET = ti.targets.C64P
> PLATFORM = ti.platforms.sim64Pxx
> PROGNAME = prog
>
>
> ## -------- all-rule -------- ##
> all : $(PROGNAME).out
>
>
> ## -------- config-rule -------- ##
> $(CONFIG)/linker.cmd $(CONFIG)/compiler.opt : $(PROGNAME).cfg
> $(CONFIGURO) -c "$(C6XTOOLS)" -t $(TARGET) -p $(PLATFORM) -o
> $(CONFIG) $(PROGNAME).cfg
>
> ## -------- compile-rule -------- ##
> $(PROGNAME).obj : $(PROGNAME).c $(CONFIG)/compiler.opt
> $(CC) -@$(CONFIG)/compiler.opt -c $(PROGNAME).c
>
> ## -------- link-rule -------- ##
> $(PROGNAME).out : $(PROGNAME).obj $(CONFIG)/linker.cmd
> $(CC) -z -c $^ -o $(PROGNAME).out -l "$(C6XTOOLS)/lib/rts64plus.lib"
>
>
> ## -------- test-rule -------- ##
> test : $(PROGNAME).out
> $(LOADER) $(PROGNAME).out
>
> ## -------- clean-rule -------- ##
> clean :
> $(XDCROOT)/bin/rm -rf $(CONFIG) *.obj *.out
>
>]]>2009-06-14T17:25:44-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes
https://www.eclipse.org/forums/index.php/mv/msg/1416/3933/#msg_3933
solution. Unfortunately, TI uses spaces in the setup default pathes of
their products, for example:
"C:\Programme\Texas Instruments\xdctools_3_10_03" on a german Windows XP
"C:\Program Files\Texas Instruments\xdctools_3_10_03" on an english
Windows XP
Following the hint at lesson 0, I modified common.mak:
Good idea, but it seem windows doesn't allow the concatenation of quoted
pathes with sub-pathes. Running lesson1/makefile comes up with this
application name:
You see what I mean? Other combined path names will be malformed, e.g.:
CONFIGURO = $(XDCROOT)/xs xdc.tools.configuro
LOADER = $(XDCROOT)/xs xdc.tools.loader
CC = $(C6XTOOLS)/bin/cl6x -q
...-l $(C6XTOOLS)/lib/rts64plus.lib]]>Andreas Zoufal2009-06-15T15:28:21-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes
https://www.eclipse.org/forums/index.php/mv/msg/1416/3939/#msg_3939
Originally posted by: bob.biosbob.biz
another approach is to use the old DOS 8.3 name that corresponds to
filenames with spaces.... no quotes would then be needed....
Andreas Zoufal wrote:
> I agree with you, avoiding spaces in path names would be the best
> solution. Unfortunately, TI uses spaces in the setup default pathes of
> their products, for example:
>
> "C:\Programme\Texas Instruments\xdctools_3_10_03" on a german Windows XP
> "C:\Program Files\Texas Instruments\xdctools_3_10_03" on an english
> Windows XP
>
> Following the hint at lesson 0, I modified common.mak:
>
> XDCROOT = "C:/Programme/Texas Instruments/xdctools_3_10_03"
> C6XTOOLS = "C:/Programme/Texas Instruments/C6000 Code Generation Tools
> 6.1.10"
>
> Good idea, but it seem windows doesn't allow the concatenation of quoted
> pathes with sub-pathes. Running lesson1/makefile comes up with this
> application name:
>
> "C:/Programme/Texas Instruments/xdctools_3_10_03"/xs
>
> This will not work. We need this command:
>
> "C:/Programme/Texas Instruments/xdctools_3_10_03/xs"
>
> You see what I mean? Other combined path names will be malformed, e.g.:
>
> CONFIGURO = $(XDCROOT)/xs xdc.tools.configuro
> LOADER = $(XDCROOT)/xs xdc.tools.loader
> CC = $(C6XTOOLS)/bin/cl6x -q
> ..-l $(C6XTOOLS)/lib/rts64plus.lib
>
>
>
>
>
>
>
>]]>2009-06-15T16:58:45-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes
https://www.eclipse.org/forums/index.php/mv/msg/1416/3964/#msg_3964
not work and should be removed.]]>Andreas Zoufal2009-06-16T11:57:00-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes - SOLUTION
https://www.eclipse.org/forums/index.php/mv/msg/1416/4003/#msg_4003
> This may be a workaround. But anyway, the hint to use double-quotes will
> not work and should be removed.]]>Andreas Zoufal2009-06-16T14:58:47-00:00Re: RTSC Module Primer / Lesson 0+1 Examples / Windows Double-Quotes - SOLUTION
https://www.eclipse.org/forums/index.php/mv/msg/1416/4098/#msg_4098
double-quotes: