• 6798阅读
  • 3回复

libqte-mt.so.3: ELF file OS ABI invalid [复制链接]

上一主题 下一主题
离线fanronghua
 
只看楼主 倒序阅读 楼主  发表于: 2009-07-20

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.ui  main.cpp  unnamed.pro
root@aw:/home/charles/test2# qmake   -spec  $QTDIR/mkspecs/qws/linux-arm-g++   -o  Makefile
root@aw:/home/charles/test2# ls
form1.ui  main.cpp  Makefile  unnamed.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
离线rqzrqh

只看该作者 1楼 发表于: 2009-07-20
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.
离线freegrid

只看该作者 2楼 发表于: 2009-08-22
版本不对,用file命令看一下是arm版的还是x86版的,换成对应的版本就可以了
离线shiroki

只看该作者 3楼 发表于: 2009-08-22
大概因为你设了LD_LIBRARY_PATH把arm qt lib的路径放在前面了,造成uic运行的时候去链接了arm的库。。所以报错了。 这个环境变量是不应该设置的
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
快速回复
限100 字节
 
上一个 下一个