Rockbox Development > Starting Development and Compiling

Compiler error in language.c

<< < (3/4) > >>

ew:
I don't mean to hijack this thread, I realize that the suggestion made by nls was intended for gbl08ma, but I tried a similar command which I thought may work in my configuration.

The following is my result:

--- Quote ---user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim genlang-features'
-bash: cat ~f/rockbox/build-sim genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$

--- End quote ---

Then I though I may not be specifying the correct sub-directory so I tried this:

--- Quote ---user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim/apps genlang-features'
-bash: cat ~f/rockbox/build-sim/apps genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$

--- End quote ---


(I realize I may still not have the proper syntaxt)

For what it is worth, I am using VMWare using a debian environment and trying to compile a simulator build for a Sansa e200 (v1).

Thanks,

gbl08ma:

--- Quote from: nls on September 01, 2010, 08:08:39 AM ---I'd guess your shell is failing to expand the cat command, try pasting

--- Code: ---`cat /home/gabriel/rockbox/build/apps/genlang-features`
--- End code ---
into a terminal (including apostrophes).

--- End quote ---

I did... here's the output:

gabriel@GabrielUbuntuDesk:~/rockbox/build$ `cat /home/gabriel/rockbox/build/apps/genlang-features`
bash: accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<<: command not found
gabriel@GabrielUbuntuDesk:~/rockbox/build$


I start to think that this is a problem of my development environment...

bluebrother:

--- Quote from: ew on September 01, 2010, 10:13:09 AM ---user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim genlang-features'
-bash: cat ~f/rockbox/build-sim genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$

--- End quote ---

This cannot work. You need to use backticks, not apostrophes. There is a vital difference between those on the shell.


--- Quote from: gbl08ma on September 01, 2010, 10:35:49 AM ---
gabriel@GabrielUbuntuDesk:~/rockbox/build$ `cat /home/gabriel/rockbox/build/apps/genlang-features`
bash: accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<<: command not found
gabriel@GabrielUbuntuDesk:~/rockbox/build$


I start to think that this is a problem of my development environment...

--- End quote ---

No, that result is actually correct. The used syntax means: execute the part in the backticks, then substitute it with its result and pass that back (in this case to the command line, in a script it would usually be assigning it to a variable).

funman:

--- Quote ---GENLANG apps/lang/thai.lang
mkdir -p /home/gabriel/rockbox/build/apps/lang/
/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang

--- End quote ---

Copy the last line:

--- Quote ---/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang
--- End quote ---

Paste it in the shell, and just add

--- Code: ---echo
--- End code ---
in front of it (at the beginning), then press enter and give the output

gbl08ma:
Here it is:

gabriel@GabrielUbuntuDesk:~/rockbox/build$ echo /home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang
/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<< .mine:hardware_click:=======:>>>>>>> .r27944: -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang
gabriel@GabrielUbuntuDesk:~/rockbox/build$

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version