首页| 论坛| 消息

标题:libqte-mt.so.3: ELF file OS ABI invalid
作者:fanronghua
日期:2009-07-20 18:11
内容:

can anyone help me?
I'm sorry , i can't write chinece because of ....
it is success when i bulid /usr/local/arm/qte/examples/aclock project.
but when i make a project used qt3 designed. it is fail!
root@aw:~# cd /home/charles/test2
root@aw:/home/charles/test2# ls
form1.uimain.cppunnamed.pro
root@aw:/home/charles/test2# qmake -spec$QTDIR/mkspecs/qws/linux-arm-g++ -oMakefile
root@aw:/home/charles/test2# ls
form1.uimain.cppMakefileunnamed.pro
root@aw:/home/charles/test2# make
/usr/local/arm/qte/bin/uic form1.ui -o .ui/form1.h
/usr/local/arm/qte/bin/uic: error while loading shared libraries: /usr/local/arm/qte/lib/libqte-mt.so.3: ELF file OS ABI invalid
make: *** [.ui/form1.h] Error 127
root@aw:/home/charles/test2#
Thanks


#1 [rqzrqh 07-20 21:12]
Error in  ELF file link,some one is ARM  ELF file ,others is X86 ELF file.
the .o file is X86 file,but the link file is ARM file
Obviously you have not set the PATH.
so you need to  set the ARM compiler PATH when compiling.
export PATH
Only the QMAKESEPC setting is not enough.
#2 [freegrid 08-22 15:46]
版本不对,用file命令看一下是arm版的还是x86版的,换成对应的版本就可以了
#3 [shiroki 08-22 21:28]
大概因为你设了LD_LIBRARY_PATH把arm qt lib的路径放在前面了,造成uic运行的时候去链接了arm的库。。所以报错了。 这个环境变量是不应该设置的

回复 发表
主题 版块