错误信息是这样的:
cd src/corelib/ && gmake -f Makefile
gmake[1]: Entering directory `/home/develop/qt-everywhere-opensource-src-4.8.2/src/corelib'
g++ -c -include .pch/release-shared-emb-arm/QtCore -pipe -I/usr/local/tslib/include -I/usr/local/directFB/include -fno-exceptions -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DELF_INTERPRETER=\"/lib/ld-linux.so.2\" -DHB_EXPORT=Q_CORE_EXPORT -DQT_NO_DEBUG -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -I.rcc/release-shared-emb-arm -Iglobal -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared-emb-arm -o .obj/release-shared-emb-arm/qabstractanimation.o animation/qabstractanimation.cpp
../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h: In instantiation of ‘QtSharedPointer::ExternalRefCount<QAbstractAnimation>’:
../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:467: instantiated from ‘QSharedPointer<QAbstractAnimation>’
animation/qabstractanimation.cpp:555: instantiated from here
../../include/QtCore/../../src/corelib/tools/qsharedpointer_impl.h:426: warning: lowering visibility of ‘QSharedPointer<X> QtSharedPointer::copyAndSetPointer(X*, const QSharedPointer<Y>&) [with X = X, Y = Y, T = QAbstractAnimation]’ to match its type
{standard input}: Assembler messages:
{standard input}:1025: Error: no such instruction: `swpb %cl,%al,[%edi]'
{standard input}:1038: Error: no such instruction: `swpb %al,%sil,[%edi]'
这是我的编译选项:
./configure --prefix=/usr/local -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -no-qt3support -fast -no-largefile -qt-mouse-tslib -I /usr/local/tslib/include -L /usr/local/tslib/lib -make toos -nomake examples -nomake docs -qt-libjpeg -qt-libpng -qt-libtiff -multimedia -no-qvfb -no-svg -no-cups -qt-gfx-directfb -I /usr/local/directFB/include -L /usr/local/directFB/lib
配置选项好像没问题,有交叉编译器,怎么还有这种现象?
谢谢大侠了
修改/root/.bash_profile,把qmake路径改为*/mkspec/qws/arm-linux-g++本回答被提问者和网友采纳