首页| 论坛| 消息

标题:cannot file -lqte probom ?
作者:fanronghua
日期:2009-07-17 12:51
内容:

this is my qte config ? anyone help me?
root@aw:~# cd /home/charles/1/test/
root@aw:/home/charles/1/test# make
arm-linux-g++ -Wl,-rpath,/usr/local/arm/qte/lib -o test main.o form1.o moc_form1.o -L/usr/local/arm/qte/lib -lqte
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/qte/lib/libqte.so when searching for -lqte
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: cannot find -lqte
collect2: ld returned 1 exit status
make: *** Error 1
root@aw:/home/charles/1/test# echo $PATH
/usr/local/arm/qte/lib:/usr/local/arm/qte/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/wang/mipseltools-gcc4-lnx26/bin:/home/arm/mipseltools-gcc4-lnx26/bin
root@aw:/home/charles/1/test# cd /usr/local/arm/qte/lib
root@aw:/usr/local/arm/qte/lib# ls
fontslibqnp.prllibqte-mt.so.3.3.8libqui.so
libdesignercore.alibqte.la libqte.prllibqui.so.1
libdesignercore.prllibqte-mt.lalibqte.so libqui.so.1.0
libeditor.alibqte-mt.prl libqte.so.3 libqui.so.1.0.0
libeditor.prllibqte-mt.solibqte.so.3.3 qte-mt.pc
libqassistantclient.alibqte-mt.so.3libqte.so.3.3.8& ..


#1 [guoyun_he 07-17 13:16]
setenvLD_LIBRARY_PATH=$QTDIR/lib:$LIBRARY
#2 [fanronghua 07-17 15:36]
sorry , i cann't write chinese.
this command i set it alrady.
root@aw:/usr/local/arm/qte/examples/test2# make
arm-linux-g++ -Wl,-rpath,/usr/local/arm/qte/lib -o test2 .obj/release-shared-mt-emb-x86/hello.o .obj/release-shared-mt-emb-x86/main.o .obj/release-shared-mt-emb-x86/moc_hello.o -L/usr/local/arm/qte/lib -lqte-mt -ldl -lpthread
/usr/local/arm/2.95.3/arm-linux/bin/ld: .obj/release-shared-mt-emb-x86/moc_hello.o: Relocations in generic ELF (EM: 3)
.obj/release-shared-mt-emb-x86/moc_hello.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
#3 [guoyun_he 07-17 15:49]
Are you chinese?
why don't you complie a demo first. for example:$QTDIR/examples/hello,
before you run make, change the Makefile to :
#4 [fanronghua 07-17 17:46]
Thanks for replay this message.
but i do that like you. i get this error message? can you help me? thanks!
root@aw:/usr/local/arm/qte/examples/hello# ls
hellohello.cpphello.dochello.hhello.promain.cppREADME
root@aw:/usr/local/arm/qte/examples/hello# qmake -spec$QTDIR/mkspecs/qws/linux-arm-g++ -oMakefile
root@aw:/usr/local/arm/qte/examples/hello# make
make: Nothing to be done for `first'.
root@aw:/usr/local/arm/qte/examples/hello# rm hello
root@aw:/usr/local/arm/qte/examples/hello# make
arm-linux-g++ -Wl,-rpath,/usr/local/arm/qte/lib -o hello .obj/release-shared-mt-emb-x86/hello.o .obj/release-shared-mt-emb-x86/main.o .obj/release-shared-mt-emb-x86/moc_hello.o -L/usr/local/arm/qte/lib -lqte-mt -ldl -lpthread
/usr/local/arm/2.95.3/arm-linux/bin/ld: .obj/release-shared-mt-emb-x86/hello.o: Relocations in generic ELF (EM: 3)
.obj/release-shared-mt-emb-x86/hello.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** Error 1
root@aw:/usr/local/arm/qte/examples/hello#
charles
#5 [guoyun_he 07-20 09:23]
show me you Makefile!

<< 1 2 >> (1/2)

回复 发表
主题 版块