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. Building Qt 5.4 on macos 10.7 problem
Forum Updated to NodeBB v4.3 + New Features

Building Qt 5.4 on macos 10.7 problem

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 1.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.
  • J Offline
    J Offline
    johngull
    wrote on last edited by
    #1

    Hello,

    i am trying to build Qt 5.4 on macos 10.7 from sources (to have 32 bit version), but clang show me next error during the process.

    Maybe somebody was successful to make such build, please share your way.

    The error:
    @../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1943:1: error: copying variable of type 'QBasicAtomicInt' (aka 'QBasicAtomicInteger<int>') invokes deleted constructor
    Q_DECLARE_METATYPE_TEMPLATE_2ARG(QPair)
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1808:32: note: expanded from macro 'Q_DECLARE_METATYPE_TEMPLATE_2ARG'
    static QBasicAtomicInt metatype_id = Q_BASIC_ATOMIC_INITIALIZER(o);
    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../../../include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:82: note: in instantiation of member function 'QMetaTypeId<QPair<QVariant, QVariant> >::qt_metatype_id' requested here
    static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return QMetaTypeId<T>::qt_metatype_id(); }
    ^
    ../../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:229:5: note: function has been explicitly marked deleted here
    QBasicAtomicInteger(const QBasicAtomicInteger &) = delete;@

    The version of clang: Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn), which comes with the XCode 4.6.3

    And here is my configuration i tried to build:
    @./configure -platform macx-clang-32 -debug-and-release -opensource -plugin-sql-sqlite -skip qtwebkit -skip qtwebkit-examples -nomake examples -nomake tests@

    Thank you

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MattReno
      wrote on last edited by
      #2

      Did you find a solution? I was able to get past this error by including the option -no-c++11. I found this thread documenting a bug fix in clang, so alternatively you could try updating that.
      http://development.qt-project.narkive.com/QCHTjrVM/qt-5-0-0-clang-3-2-c-11-and-qregistermetatype-q-basic-atomic-initializer

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ramzes2
        wrote on last edited by
        #3

        This problem already fixed. Try to use patch from a page:
        https://bugreports.qt.io/browse/QTBUG-43279

        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