Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT5 compile error on ARM
QtWS25 Last Chance

QT5 compile error on ARM

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zhangshuang
    wrote on last edited by
    #1

    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:

    1. ./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 function QTextCodec::~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 function QHash<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 function QList<QTextCodec*>::~QList()': qtextcodec.cpp:(.text._ZN5QListIP10QTextCodecED1Ev[QList<QTextCodec*>::~QList()]+0x1c): undefined reference to __sync_fetch_and_add_4'
    .obj/release-shared/qtextcodec.o: In function QList<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 function QHash<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 function QHash<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 function QStateMachinePrivate::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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved