Rockbox Technical Forums
Rockbox Development => Starting Development and Compiling => Topic started by: LambdaCalculus on February 07, 2012, 07:02:54 PM
-
I recently tried building tcctool again to try some code out on my old Sansa m200, but it looks like it's completely broken on OS X 10.6.8 (running the 64-bit kernel). Details are as follows when I invoke make:
gallifrey:tcctool rmenes$ make
gcc -Wall -W -I/usr/local/include -DVERSION=\"r31645-120202\" -lusb -o tcctool tcctool.c
ld: warning: ignoring file /usr/local/lib/libusb.dylib, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
"_usb_bulk_write", referenced from:
_upload_app in ccyoxrxD.o
"_usb_init", referenced from:
_do_patching in ccyoxrxD.o
"_usb_find_busses", referenced from:
_do_patching in ccyoxrxD.o
"_usb_find_devices", referenced from:
_do_patching in ccyoxrxD.o
"_usb_get_busses", referenced from:
_do_patching in ccyoxrxD.o
"_usb_open", referenced from:
_do_patching in ccyoxrxD.o
"_usb_set_configuration", referenced from:
_do_patching in ccyoxrxD.o
"_usb_close", referenced from:
_do_patching in ccyoxrxD.o
"_usb_claim_interface", referenced from:
_do_patching in ccyoxrxD.o
"_usb_release_interface", referenced from:
_do_patching in ccyoxrxD.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [tcctool] Error 1
Does anyone have any idea of where to poke around to get this working again? The makefile nor tcctool.c seem to be clueing me in too much.
-
I think the first warning means that you don't have a compatible version of libusb installed, and all the others are just the linker failing because it can't find libusb.
-
Yup, now that you mention it, I've noticed that my version is built for a 32-bit system (probably old leftovers from when I was still running Leopard), so I'm going to have to build a newer version.
Thanks for the second pair of eyes. :)
-
The build could probably add -Wl,-z,defs to CFLAGS to fail when linking rather than when running