qmake -project
qmake
make 不成功,
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/QtEmbedded-4.8.1-arm/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/QtEmbedded-4.8.1-arm/include/QtCore -I/usr/local/Trolltech/QtEmbedded-4.8.1-arm/include/QtGui -I/usr/local/Trolltech/QtEmbedded-4.8.1-arm/include -I. -I. -I. -o cell.o cell.cpp
{standard input}: Assembler messages:
{standard input}:655: Error: no such instruction: `swpb %al,%bl,[%edi]'
{standard input}:666: Error: no such instruction: `swpb %dl,%cl,[%edi]'
{standard input}:675: Error: no such instruction: `swpb %dl,%al,[%edi]'
{standard input}:687: Error: no such instruction: `swpb %al,%bl,[%edi]'
{standard input}:697: Error: no such instruction: `swpb %bl,%al,[%edi]'
{standard input}:782: Error: no such instruction: `swpb %al,%bl,[%edi]'
.......................................
......................................
解决办法:
编译arm平台的qt程序应该是arm-linux-g++才对,所以qmake有问题,而arm平台的编译器qmake是在mkspec/qws/arm-linux-g++下配置的
修改/root/.bash_profile,把qmake路径改为*/mkspec/qws/arm-linux-g++就可以了。
export QMAKESPEC=/usr/local/Trolltech/QtEmbedded-4.8.1-arm/mkspecs/qws/linux-arm-g++
转载请注明出处!谢谢