Building Qt 5.4 on macos 10.7 problem

  • 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
    ../../../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

  • 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.

  • This problem already fixed. Try to use patch from a page:

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.