我用Qt Designer编写了一个小程序hello.pro,我是这样在PC机上编译的:
#qmake hello.pro
#make
之后生成了可执行的文件hello.exe,然后我直接运行hello.exe,可以在PC机上直接看到结果。
但我希望把这个程序用QtE编译成ARM开发板可以运行的程序,我是这样做的:
#export QTDIR=QtE的目录
#export PATH=$QTDIR/bin:$PATH
#export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
#uic -o hello.h hello.ui
#uic -o hello.cpp -i hello.h hello.ui
#qmake -spec $QTDIR/mkspecs/qws/linux-arm-g++ -o Makefile hello.pro
#make
在make时出现了错误:
.obj/hello.o: could not read symbols: ??????
collect2: ld returned 1 exit status
make: [hello] 错误1
请问是为什么?多谢回答!另外我用的Qt都是3.0的版本。