I have use the LDFLAGS
./configure
CC=arm_v5t_le-gcc
--prefix=/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/
--exec-prefix=/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/
LDFLAGS=-L/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib
--host=arm-linux
but still get the same error:(.
Entering directory `/home/wry/sysapps/libftdi-0.18/src'
/bin/sh ../libtool --tag=CC --mode=link arm_v5t_le-gcc -g -O2
-version-info 19:0:18
-L/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib
-o libftdi.la -rpath
/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/lib
ftdi.lo -lusb
libtool: link: arm_v5t_le-gcc -shared .libs/ftdi.o
-L/usr/local/opt/mv_pro_4.0_1.20/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/usr/lib
/usr/lib/libusb.so -Wl,-soname -Wl,libftdi.so.1 -o .libs/libftdi.so.1.18.0
/usr/lib/libusb.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
-----Original Message-----
From: Teemu Peltola [mailto:teemu.peltola@xxxxxxxxxxxx]
Sent: 2011年3月9日 16:33
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Subject: Re: FW: how to compile the libftdi-0.18 in ARM platform
:/usr/lib/libusb.so: could not read symbols: File in wrong format
On 03/09/2011 10:12 AM, Wu, Ruiyu (GE Healthcare) wrote:
> hi, Teemu
>
> I am so glad to hear from you.
> yes, I know what you mean.
> I have let the Cross-compiler to link the
> /home/yang2000/211backup/yang2000/Develop/target_dvevm/usr/lib/libusb.
> so please see the .configure parameters. For more info, please see the
> config.log ( I attached it)
>
> ./configure CC=arm_v5t_le-gcc
> --prefix=/home/yang2000/211backup/yang2000/Develop/target_dvevm/
> --exec-prefix=/home/yang2000/211backup/yang2000/Develop/target_dvevm/u
> sr/lib
> --host=arm-linux
> --libdir=/home/yang2000/211backup/yang2000/Develop/target_dvevm/usr/li
> b
>
> Do you have any idea?
> Thank you in advance!
Hi!
We have passed LDFLAGS for libftdi configure instead of --libdir (e.g.
LDFLAGS=-L<your_target_dir>/lib). Maybe that could help?
BR,
Teemu
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|