Linker does not find library during cross-compile

Dan Kegel dank@kegel.com
Fri Aug 22 19:48:00 GMT 2003


Alexandros Karypidis wrote:
> arm-linux-g++ -g -O2 -o qte_hello qte_hello.o  -L/opt/Embedix/tools/arm-linux/lib -lqpe -lqte -lqt-mt
> /opt/Embedix/tools/arm-linux/bin/ld: cannot find -lqpe
> 
> Now, I have definitely copied this library into 
> /opt/Embedix/tools/arm-linux/lib:
> 
>>file /opt/Embedix/tools/arm-linux/lib/libqpe.so.1
> 
> /opt/Embedix/tools/arm-linux/lib/libqpe.so.1: symbolic link to libqpe.so.1.5.0
> 
>>file /opt/Embedix/tools/arm-linux/lib/libqpe.so.1.5.0
> 
> /opt/Embedix/tools/arm-linux/lib/libqpe.so.1.5.0: ELF 32-bit LSB shared 
> object, ARM, version 1 (ARM), stripped
> 
> Why can't the linker find it?

Maybe you need libqpe.so there as well?  A few other ideas:

1. try without libtool
2. try adding -v flag so you can see where it's looking for the file
3. run the compiler under strace -f so you can *really* see where it's
looking for the file

- Dan

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list