Re: Compiling questions
"Derek Taubert" <[email protected]>
| Newsgroups | gmane.comp.hardware.roku.technical |
|---|---|
| Message-ID | <001d01c44031$df4b0f70$0b00000a@josephine> |
----- Original Message ----- From: "Philip Van Baren" <[email protected]> To: <[email protected]> Sent: Saturday, May 22, 2004 9:21 AM Subject: [Roku-tech] Compiling questions > I have 2 development questions: it seems that the header files in > /usr/share/rokudev/usr/include/ get 'touched' when compiling a program, for > example: > > -r--r--r-- 1 root root 25054 May 22 12:05 wchar.h > > As a result, every time I do a 'make' it rebuilds every source file even though > only one has changed. I can fix this by changing the .depend to use 'gcc -MM' > instead of 'gcc -M', but it does seems strange. Even more so, since > /usr/share/rokudev is mounted read-only so these files can't be changing. Is > the cramfs filesystem somehow mixing up modify time with access time? > > Also, I can't seem to escape spaces in a command line, so if I try to put a > filename like "Nova - Submarines.mpg" on the command line, I get 3 arguments, > "Nova", "-", and "Submarines.mpg". I'm using the standard '\' or '"' to escape > the spaces. Is the bash include on the roku somehow nonstandard here, and/or > is there some other way to escape the spaces? If the "Nova - Submarines.mpg" argument (it will indeed be a single argument from the command line) goes through a bash script that references the argument without quoting it, bash will expand it. CinemaSix has two examples of what _not_ to do. CinemaSix.cmd: #!/bin/sh echo "----------------------------------------------------------" echo "If you're running from the command line, use CinemaSix.cmd" echo "----------------------------------------------------------" export LD_LIBRARY_PATH=. ./CinemaSix.app $1 $2 $3 $4 $5 That last line should be: ./CinemaSix.app "$1" "$2" "$3" "$4" "$5" CinemaSix.roku: #!/bin/sh echo "----------------------------------------------------------" echo "If you're running from the command line, use CinemaSix.app" echo "----------------------------------------------------------" SXPATH=`echo "$0" | sed 's/\/CinemaSix.roku$//'` cd $SXPATH export LD_LIBRARY_PATH=$SXPATH ./CinemaSix.app Both references to $SXPATH should be enclosed in quotes. This will otherwise fail if the path to CinemaSix.roku contains spaces. Derek > __________________________________ > Do you Yahoo!? > Yahoo! Domains - Claim yours for only $14.70/year > http://smallbusiness.promotions.yahoo.com/offer > _______________________________________________ > Roku-tech mailing list > [email protected] > http://lists.rokulabs.com/mailman/listinfo/roku-tech >