ts-7000
[Top] [All Lists]

[ts-7000] Re: libusb

To:
Subject: [ts-7000] Re: libusb
From: "Yan Seiner" <>
Date: Thu, 06 Jul 2006 15:37:22 -0000
--- 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/
 


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU