Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. The Compile error for Qt5
Qt 6.11 is out! See what's new in the release blog

The Compile error for Qt5

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 3.3k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    chenwenzheng
    wrote on last edited by
    #1
    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 -release
    2. make
    3. 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'

    .obj/release-shared/qmimedatabase.o:qmimedatabase.cpp:(.text+0x2be4): more undefined references to __sync_fetch_and_add_4' follow 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

    Did anyone got this problem solved please?

    thanks

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zhxt
      wrote on last edited by
      #2

      The same error came to me when I use arm-linux-g++ 4.2.1 , but it's not shown when I changed to arm-linux-g++ 4.6.1.

      Qt Developer

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        Q.Lee
        wrote on last edited by
        #3

        I think I have the same problem when I use arm-none-linux-gnueabi-c++ 4.4.1 .

        .obj/release-shared/qmimeprovider.o:qmimeprovider.cpp:(.text._ZN20QMimeAllGlobPatternsD1Ev[QMimeAllGlobPatterns::~QMimeAllGlobPatterns()]+0x248): more undefined references to __sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[2]: *** [../../lib/libQt5Core.so.5.0.1] Error 1 make[2]: Leaving directory /home/liqiang/Qt5.0.1/5.0.1/Src/qtbase/src/corelib'
        make[1]: *** [sub-corelib-make_first] Error 2
        make[1]: Leaving directory `/home/liqiang/Qt5.0.1/5.0.1/Src/qtbase/src'
        make: *** [sub-src-make_first] 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