qt embedded编译出现问题。。求指教
[root@localhost progressbar]# progen -t app.t -o progressbar.pro
[root@localhost progressbar]# tmake -o Makefile progressbar.pro
[root@localhost progressbar]# make
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/qt/qt-2.3.10/include -o main.o main.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/qt/qt-2.3.10/include -o progressbar.o progressbar.cpp
/opt/qt/qt-2.3.10/bin/moc progressbar.h -o moc_progressbar.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/qt/qt-2.3.10/include -o moc_progressbar.o moc_progressbar.cpp
arm-linux-g++ -o progressbar main.o progressbar.o moc_progressbar.o -L/opt/qt/qt-2.3.10/lib -lm -lqte
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: skipping incompatible /opt/qt/qt-2.3.10/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: *** [progressbar] Error 1
[root@localhost progressbar]#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是编译过程中遇到的问题
arm-linux-g++ -c -I/opt/qt/qt-2.3.10/include -pipe -DQWS -fno-exceptions -fno-r
tti -O2 -Wall -W -DNO_DEBUG -o main.o main.cpp
arm-linux-gcc -L/opt/qt/qt-2.3.10/lib -Wl,-rpath,/opt/qt/qt-2.3.10/lib -o ./t1
main.o -lqte -lm
/opt/qt/qt-2.3.10/lib/libqte.so: undefined reference to `operator new[](unsigned
int)'
/opt/qt/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete(void*)'
/opt/qt/qt-2.3.10/lib/libqte.so: undefined reference to `__cxa_pure_virtual'
/opt/qt/qt-2.3.10/lib/libqte.so: undefined reference to `operator delete[](void*
)'
/opt/qt/qt-2.3.10/lib/libqte.so: undefined reference to `operator new(unsigned i
nt)'
collect2: ld returned 1 exit status
make[4]: *** [t1] Error 1
make[4]: Leaving directory `/opt/qt/qt-2.3.10/tutorial/t1'
make[3]: *** [t1] Error 2
make[3]: Leaving directory `/opt/qt/qt-2.3.10/tutorial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/qt/qt-2.3.10/tutorial'
make[1]: *** [sub-tutorial] Error 2
make[1]: Leaving directory `/opt/qt/qt-2.3.10'
make: *** [init] Error 2
log1,是说libqte.so的文件格式不兼容。你确信你已经编出了libqte.so这个库?
log2中应该是同样的问题,一些符号在连接的时候找不到,应该也是找不到库