Rockbox Development > Starting Development and Compiling
[SOLVED] Error compiling Rockbox in Cygwin
rberna:
Hello to everybody,
I have a nasty problem while trying to compile Rockbox under Cygwin (Win XP SP3).
While compiling the file alarm_menu.c, I got many undefs (LANG_ALARM_MOD_TIME, LANG_ALARM_MOD_ERROR, LANG_ALARM_MOD_DISABLE, etc.)
I followed the cross-compiling instructions fully (at least so it seems to me).
- compiler is arm-elf-gcc 4.0.3, downloaded by Cygwin's setup.exe -X from rockbox site
- tried both the source tree downloaded by SVN (download ok), and the source tree manually unzipped from the source file
- I prepared the build directory (called build), then I typed ../tools/configure. I selected number 21 for iPod Nano, N for Normal build. Configure went perfectly (so it seems), Makefile was created.
- I typed make.. Makefile generated dependencies (correctly? more than 2Mbytes!), started to compile some module (lang.c ok, apps/action.c ok, ....). Alarm_menu.c gave the undefs as said ??? ???
I tested other configuration too, such as Sandisk E200, but without luck.
As additional info, I normally use Cygwin to compile (successfully) for Palm Os using the arm-palmos-gcc.
Could you kindly help?
My knowledge in cross-compiling is average.
Thank you in advance,
Romano
nls:
Did you try multiple different target configurations in the same build dir? Might be worth trying a "make clean" if you did.
This is using unmodified source?
bluebrother:
posting the exact error message might also help, my crystal ball is on winter vacation ...
rberna:
--- Quote from: nls on January 07, 2009, 07:35:28 AM ---Did you try multiple different target configurations in the same build dir? Might be worth trying a "make clean" if you did.
This is using unmodified source?
--- End quote ---
Tried make clean, took quite a lot of time (old good Athlon XP 2500+ with 1.5Gb RAM), --> no luck
Tried target 21 (ipod Nano 1G) and target 50, Normal Build, similar error. I will post the exact error below.
Tried target 21, Bootloader Build --> Ok
Tried target 21, Advanced+Profile Build --> no luck (same error in alarm_menu.c)
Unmodified source.
Tnx for your time.
For bluebrother:
this is the output of:
--- Code: ---$ make &> make-log.txt
--- End code ---
--- Code: ---Generating dependencies
PP features.txt
CC lang.c
CC apps/action.c
BMP2RB rockboxlogo.176x54x16.bmp
CC build/apps/bitmaps/native/rockboxlogo.176x54x16.c
BMP2RB usblogo.128x37x16.bmp
CC build/apps/bitmaps/native/usblogo.128x37x16.c
BMP2RB default_icons.6x8x16.bmp
CC build/apps/bitmaps/native/default_icons.6x8x16.c
CONVBDF fonts/08-Schumacher-Clean.bdf
CC apps/alarm_menu.c
/cygdrive/c/work/rockbox/apps/alarm_menu.c: In function 'alarm_screen':
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: 'LANG_ALARM_MOD_TIME' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: (Each undeclared identifier is reported only once
/cygdrive/c/work/rockbox/apps/alarm_menu.c:104: error: for each function it appears in.)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:127: error: 'LANG_ALARM_MOD_TIME_TO_GO' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:136: error: 'LANG_ALARM_MOD_ERROR' undeclared (first use in this function)
/cygdrive/c/work/rockbox/apps/alarm_menu.c:191: error: 'LANG_ALARM_MOD_DISABLE' undeclared (first use in this function)
make: *** [/cygdrive/c/work/rockbox/build/apps/alarm_menu.o] Error 1
--- End code ---
May be some issue with Base package in Cygwin?
Tnx.
bluebrother:
did you ran make clean between the various builds selected? Bootloader and Rockbox have to be considered different builds.
Navigation
[0] Message Index
[#] Next page
Go to full version