I am still trying to use libusb under KDevelop
I have found libusb.so that appears to be cross compiled, it is in /home/developer/squidge/openwrt/staging_dir/mipsel/usr/lib
I used 'file' to check thus ...
bash-3.1$ file libusb.so
libusb.so: ELF 32-bit LSB shared object, MIPS, version 1 (SYSV), not stripped
I assume MIPS is the target processor.
But when I make it under KDeveloper I getsome strange messages
In project/project option/configure option
Linker Flags: (LDFLAGS)
I have set the following
-L/home/developer/squidge/openwrt/staging_dir/mipsel/usr/lib
Then I get ...
cd '/home/developer/Pencam/./' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" gmake Pencam
linking Pencam (libtool)
mkdir .libs
linking Pencam (gcc)
/usr/lib/libusb.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
gmake: *** [Pencam] Error 1
*** Exited with status: 2 ***
However if I set -L /home/developer/squidge/openwrt/staging_dir/mipsel/usr/lib
Note the space after -L , I get ...
cd '/home/developer/Pencam/./' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" gmake Pencam
linking Pencam (libtool)
mkdir .libs
linking Pencam (gcc)
/home/developer/squidge/openwrt/staging_dir/toolchain-mipsel_gcc4.1.2/mipsel-linux-uclibc/bin/../lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/bin/ld: /home/developer/squidge/openwrt/staging_dir/mipsel/usr/lib: No such file: File format not recognized
collect2: ld returned 1 exit status
gmake: *** [Pencam] Error 1
*** Exited with status: 2 ***
Now obviously /usr/lib/libusb.so is wrong as it will be the hosts file format.
But don;t seem to be able to get it to include the correct libusb.so
Any ideas
Thanks
Jim