--- In Anand S Madhusoodanan
<> wrote:
>
> Hi Dino,
>
> I tried out the things you had mentioned in your previoue email.
They worked until I typed in the make command.
>
> At the make command it gave me an error saying it could not read the
> .so file.
>
> "libusb.so: could not read symbols: File in wrong format"
This means that libusb.so is compiled for the wrong architecture.
This could be because your cross-chain isn't set up correctly, and
your x86 gcc is being used instead of the arm-linux-gcc, or because
the linker is finding your x86 version of libusb before it finds the
arm version.
Try using the --nostdlib (I think) flag and specifying all your
library locations explicitly (-L/path/to/arm/libs) in your CFLAGS and
LDFLAGS in the makefile. man gcc to get the correct flags and usage.
We're sponsoring a port for openwrt buildroot <http://www.openwrt.org>
which hopefully will create a uClib buildroot environment for the
TS7300 that elminiates these sorts of issues. If anyone else is
interested in co-sponsoring, please contact me off-list. (why
OpenWrt? Because it has a large base of ported libs and apps, and
because it has a large and active user and developer base.)
--Yan
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|