edgex004
Advanced Member
- Joined
- Jan 5, 2008
- Messages
- 1,222
I am attempting to compile the most recent USB_ModeSwitch, but am coming accross a few issues.
According to the USB Compatibility List on the wiki, back in January, a user named Honselio successfully compiled the version from (http://www.draisberghof.de/usb_modeswitch/). I was hoping to get some advice on the compile process.
1.) I tried compiling/installing using NAND/opkg
Installed through opkg: make, GCC, GCC symlinks, and libusb1.0-dev. Ran "make install", but am stuck with an error about missing pkg-config. I think I need to try pulling the latest pkg-config GIT and compile before I go back to USB_ModeSwitch, as pkg-config is not available through opkg.
2.) I tried "make install" through the C/C++ Dev Tools PND, but am stuck with the following error:
usb_modeswitch.c: 500: warning: implicit declaration of function 'libusb_error_name'
usb_modeswitch.c: 500: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
/tmp/cczil3M4.o: in function 'main':
usb_modeswitch.c.test+0x233c): undefined reference to 'libusb_error_name'
Any help here would be appreciated, especially if Honselio is around to let me know what he did in order to make USB_ModeSwitch compile.
EDIT: is the error in method 2.) maybe because I need to install libusb1.0-dev into the Dev Tools PND?
According to the USB Compatibility List on the wiki, back in January, a user named Honselio successfully compiled the version from (http://www.draisberghof.de/usb_modeswitch/). I was hoping to get some advice on the compile process.
1.) I tried compiling/installing using NAND/opkg
Installed through opkg: make, GCC, GCC symlinks, and libusb1.0-dev. Ran "make install", but am stuck with an error about missing pkg-config. I think I need to try pulling the latest pkg-config GIT and compile before I go back to USB_ModeSwitch, as pkg-config is not available through opkg.
2.) I tried "make install" through the C/C++ Dev Tools PND, but am stuck with the following error:
usb_modeswitch.c: 500: warning: implicit declaration of function 'libusb_error_name'
usb_modeswitch.c: 500: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
/tmp/cczil3M4.o: in function 'main':
usb_modeswitch.c.test+0x233c): undefined reference to 'libusb_error_name'
Any help here would be appreciated, especially if Honselio is around to let me know what he did in order to make USB_ModeSwitch compile.
EDIT: is the error in method 2.) maybe because I need to install libusb1.0-dev into the Dev Tools PND?
Last edited by a moderator: