QT5 compile error on ARM
-
Hello everyone!
I want to build a QT5 embedded version. the compile method is the same as QT4.7.X,but I met a lot of errors,who can tell me the reason? Or,Is there any document about how to compile QT5 arm version?complie tools:gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67
compile command:- ./configure -opensource -arch arm -prefix /usr/local/qt5-arm -release -make libs -xplatform qws/linux-arm-g++ -force-pkg-config -no-xcb -I/usr/local/tslib/include - L/usr/local/tslib/lib
2..make
Error:
.obj/release-shared/qtextcodec.o: In functionQTextCodec::~QTextCodec()': qtextcodec.cpp:(.text+0x10f0): undefined reference to
__sync_bool_compare_and_swap_4'
qtextcodec.cpp:(.text+0x1150): undefined reference to__sync_fetch_and_add_4' qtextcodec.cpp:(.text+0x116c): undefined reference to
__sync_fetch_and_add_4'
qtextcodec.cpp:(.text+0x11a4): undefined reference to__sync_fetch_and_add_4' qtextcodec.cpp:(.text+0x1210): undefined reference to
__sync_bool_compare_and_swap_4'
.obj/release-shared/qtextcodec.o: In functionQHash<QByteArray, QTextCodec*>::duplicateNode(QHashData::Node*, void*)': qtextcodec.cpp:(.text._ZN5QHashI10QByteArrayP10QTextCodecE13duplicateNodeEPN9QHashData4NodeEPv[QHash<QByteArray, QTextCodec*>::duplicateNode(QHashData::Node*, void*)]+0x28): undefined reference to
__sync_fetch_and_add_4'
.obj/release-shared/qtextcodec.o: In functionQList<QTextCodec*>::~QList()': qtextcodec.cpp:(.text._ZN5QListIP10QTextCodecED1Ev[QList<QTextCodec*>::~QList()]+0x1c): undefined reference to
__sync_fetch_and_add_4'
.obj/release-shared/qtextcodec.o: In functionQList<QTextCodec*>::detach_helper(int)': qtextcodec.cpp:(.text._ZN5QListIP10QTextCodecE13detach_helperEi[QList<QTextCodec*>::detach_helper(int)]+0x70): undefined reference to
__sync_fetch_and_add_4'
.obj/release-shared/qtextcodec.o: In functionQHash<QByteArray, QTextCodec*>::~QHash()': qtextcodec.cpp:(.text._ZN5QHashI10QByteArrayP10QTextCodecED1Ev[QHash<QByteArray, QTextCodec*>::~QHash()]+0x28): undefined reference to
__sync_fetch_and_add_4'
.obj/release-shared/qtextcodec.o: In functionQHash<QByteArray, QTextCodec*>::detach_helper()': qtextcodec.cpp:(.text._ZN5QHashI10QByteArrayP10QTextCodecE13detach_helperEv[QHash<QByteArray, QTextCodec*>::detach_helper()]+0x58): undefined reference to
__sync_fetch_and_add_4'
.obj/release-shared/qtextcodec.o:qtextcodec.cpp:(.text.ZN5QHashI10QByteArrayP10QTextCodecE6insertERKS0_RKS2[QHash<QByteArray, QTextCodec*>::insert(QByteArray const&, QTextCodec* const&)]+0xa0): more undefined references to__sync_fetch_and_add_4' follow .obj/release-shared/qstatemachine.o: In function
QStateMachinePrivate::isExternalEventQueueEmpty()':
qstatemachine.cpp:(.text+0xfb8): undefined reference to__sync_bool_compare_and_swap_4' qstatemachine.cpp:(.text+0xfec): undefined reference to
__sync_bool_compare_and_swap_4'
.obj/release-shared/qstatemachine.o: In functionQStateMachinePrivate::isInternalEventQueueEmpty()': qstatemachine.cpp:(.text+0x105c): undefined reference to
__sync_bool_compare_and_swap_4'
qstatemachine.cpp:(.text+0x1090): undefined reference to__sync_bool_compare_and_swap_4' collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtCore.so.5.0.0] Error 1 make[1]: Leaving directory
/root/qt5/qtbase/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2 - ./configure -opensource -arch arm -prefix /usr/local/qt5-arm -release -make libs -xplatform qws/linux-arm-g++ -force-pkg-config -no-xcb -I/usr/local/tslib/include - L/usr/local/tslib/lib