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]

Re: Linker does not find library during cross-compile


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


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