This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker does not find library during cross-compile


Hi all,

I'm trying to cross-compile my application from x86 -> arm. The problem is 
that during linkage, I get an error about a library not being found:

===================================================
/bin/sh ../libtool --mode=link arm-linux-g++  -g -O2  
-L/opt/Embedix/tools/arm-linux/lib -o qte_hello   qte_hello.o -lqpe -lqte 
-lqt-mt
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
collect2: ld returned 1 exit status
===================================================

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?

-- 
In theory, there is no difference between theory and practice,
in practice there is. -- Yogi Berra.

Alexandros Karypidis
University of Thessaly
Computer & Communications Engineering dept.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]