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. Compile error for 4.8.0 embedded for arm
QtWS25 Last Chance

Compile error for 4.8.0 embedded for arm

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 4.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.
  • T Offline
    T Offline
    terryfryar
    wrote on last edited by
    #1

    Using codesourcery toolchain, trying to build 4.8.0 embedded for arm. Config was: ./configure -xplatform qws/linux-arm-gnueabi-g++ -embedded arm

    Getting this error:

    from global/qt_pch.h:58:
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h: In member function 'bool QMutexPrivate::wait(int)':
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h:232:35: error: output number 1 not directly addressable
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h: In member function 'void QMutexPrivate::wakeUp()':
    ../../include/QtCore/../../src/corelib/arch/qatomic_armv5.h:232:35: error: output number 1 not directly addressable
    make[1]: *** [.obj/release-shared-emb-arm/qmutex_unix.o] Error 1
    make[1]: Leaving directory `/opt/qt-everywhere-opensource-src-4.8.0/src/corelib'

    1 Reply Last reply
    0
    • A Offline
      A Offline
      agroyer
      wrote on last edited by
      #2

      GCC 4.5.1 has a known issue.
      Please try
      arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 that includes "gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70)"
      OR
      arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 that includes "gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202)"
      that work both fine.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        terryfryar
        wrote on last edited by
        #3

        I did successfully compile and run Qt 4.7.4 with the 2010.09-50 (gcc 4.5.1) codesourcery toolchain. Now, several folks suggest the use of this compiler flag: -fno-strict-volatile-bitfields

        With this, I can compile the entire Qt 4.8.0 lib ok, but upon running any example or demo programs I get "unexpected PLT reloc 0x0d" errors.

        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