Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: mangar on August 17, 2009, 04:59:50 PM

Title: [partially solved] problem with clock bitmaps
Post by: mangar on August 17, 2009, 04:59:50 PM
Hi all,
I'm trying to change the usb connection screen into a clock (so my iPod will actually have some functionality while it's plugged in).

I'm trying to convert the clock plugin into a reentrant function, and currently stuck at the following error:

Code: [Select]
$ make
CC apps/usb_clock/usb_clock_bitmaps.c
LD rockbox.elf
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x0): undefined reference to `clock_logo'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0xc): undefined reference to `clock_messages'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x18): undefined reference to `clock_binary'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x24): undefined reference to `clock_digits'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x30): undefined reference to `clock_smalldigits'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x3c): undefined reference to `clock_segments'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmaps.o:(.rodata+0x48): undefined reference to `clock_smallsegments'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_bitmap_strings.o: In function `draw_string':
usb_clock_bitmap_strings.c:(.text+0xac): undefined reference to `vertical_picture_draw_sprite'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_settings.o: In function `draw_logo':
usb_clock_settings.c:(.text+0x2b8): undefined reference to `picture_draw'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_settings.o: In function `draw_message':
usb_clock_settings.c:(.text+0x36c): undefined reference to `vertical_picture_draw_sprite'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_draw_analog.o: In function `polar_to_cartesian':
usb_clock_draw_analog.c:(.text+0x48): undefined reference to `fp14_sin'
/cygdrive/e/Projects/RockBox/rockbox/apps/usb_clock/usb_clock_draw_analog.o: In function `draw_hand':
usb_clock_draw_analog.c:(.text+0x3f0): undefined reference to `xlcd_filltriangle_screen'
collect2: ld returned 1 exit status
make: *** [/cygdrive/e/Projects/RockBox/rockbox/rockbox.elf] Error 1

it more or less means that the draw_logo[] etc arrays are not initialized.

UPDATE:
Ok, got it, the makefile uses bmp2rb, since I don't want to mess with makefiles at this stage, I've done it manually for iPod relevant files.
It's ugly, but it works.