On Fri, Oct 30, 2009 at 5:51 PM, Rafaël Carré <rafael.ca...@gmail.com>wrote:
> open$unix_2003 or something like that? > These were the kind of errors that were affecting the compile of beastpatcher and were fixed by splitting the compiling and linking into two steps. The specific error, I get when compiling libusb with -arch ppc is: /bin/sh ./libtool --mode=link g++ -g -O2 -arch ppc -o libusbpp.la -rpath /usr/local/lib -version-info 8:4:4 -release 0.1 -export-dynamic -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -no-undefined -lusb -Wl,-seg1addr,0x01676000 usbpp.lo g++ -dynamiclib -single_module -o .libs/libusbpp-0.1.4.4.4.dylib .libs/usbpp.o /Users/barry/Rockbox/libusb/libusb-0.1.12/.libs/libusb.dylib -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -Wl,-seg1addr -Wl,0x01676000 -install_name /usr/local/lib/libusbpp-0.1.4.dylib -compatibility_version 9 -current_version 9.4 Undefined symbols: "_usb_close", referenced from: USB::Device::~Device()in usbpp.o "_usb_find_devices", referenced from: USB::Busses::rescan() in usbpp.o "_usb_control_msg", referenced from: USB::Device::controlTransfer(unsigned char, unsigned char, unsigned short, unsigned short, unsigned short, unsigned char*, int)in usbpp.o "_usb_init", referenced from: USB::Busses::Busses()in usbpp.o "_usb_open", referenced from: USB::Busses::rescan() in usbpp.o "_usb_get_busses", referenced from: USB::Busses::rescan() in usbpp.o "_usb_find_busses", referenced from: USB::Busses::rescan() in usbpp.o "_usb_get_string", referenced from: USB::Device::string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int, unsigned short)in usbpp.o USB::Device::string(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int, unsigned short)in usbpp.o ld: symbol(s) not found collect2: ld returned 1 exit status gmake[2]: *** [libusbpp.la] Error 1