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. pyqt4 installation on Mac OS 10.13.6 error error error!!!
Qt 6.11 is out! See what's new in the release blog

pyqt4 installation on Mac OS 10.13.6 error error error!!!

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 699 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.
  • Y Offline
    Y Offline
    yaochen1
    wrote on last edited by
    #1

    I am installing PyQt4 on my Mac. There's lots of errors. I am strictly following the direction on the pyqt vendor's website. Configured and "make" SIP files. After "python configure.py" in the PyQt4 installation file, the "make" of the file gave lots of errors as below: Please HELP!!!

    /Users/yaochen/anaconda3/include/qt/QtCore/qcompilerdetection.h:567:6: error: Qt requires a C++11 compiler and yours does not
    seem to be that.

    error Qt requires a C++11 compiler and yours does not seem to be that.

     ^
    

    In file included from sipQtCorecmodule.cpp:24:
    In file included from ./sipAPIQtCore.h:29:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/QMetaType:1:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qmetatype.h:44:
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:927:23: warning: rvalue references are a C++11 extension
    [-Wc++11-extensions]
    void qAsConst(const T &&) Q_DECL_EQ_DELETE;
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:938:25: warning: rvalue references are a C++11 extension
    [-Wc++11-extensions]
    QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {}
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:940:41: warning: rvalue references are a C++11 extension
    [-Wc++11-extensions]
    QForeachContainer(QForeachContainer &&other)
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:948:52: warning: rvalue references are a C++11 extension
    [-Wc++11-extensions]
    QForeachContainer &operator=(QForeachContainer &&other)
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:959:17: warning: in-class initialization of non-static data member is a
    C++11 extension [-Wc++11-extensions]
    int control = 1;
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:963:73: warning: rvalue references are a C++11 extension
    [-Wc++11-extensions]
    QForeachContainer<typename std::decay<T>::type> qMakeForeachContainer(T &&t)
    ^
    In file included from sipQtCorecmodule.cpp:24:
    In file included from ./sipAPIQtCore.h:29:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/QMetaType:1:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qmetatype.h:44:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:1158:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qatomic.h:46:
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:61:4: error: "Qt requires C++11 support"

    error "Qt requires C++11 support"

    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:93:13: error: no template named 'QAtomicOps'
    typedef QAtomicOps<T> Ops;
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:96:23: error: use of undeclared identifier 'QAtomicOpsSupport'
    Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not sup...
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:96:53: error: no member named 'IsSupported' in the global namespace
    Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not sup...
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:753:63: note: expanded from macro 'Q_STATIC_ASSERT_X'
    #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
    ^
    ~~~~~~
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:748:110: note: expanded from macro 'Q_STATIC_ASSERT'
    enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, COUNTER) = sizeof(QStaticAssertFailure<!!(Condition)>)}
    ^~~~~~~~~
    In file included from sipQtCorecmodule.cpp:24:
    In file included from ./sipAPIQtCore.h:29:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/QMetaType:1:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qmetatype.h:44:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:1158:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qatomic.h:46:
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:96:5: error: type name requires a specifier or qualifier
    Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not sup...
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:753:47: note: expanded from macro 'Q_STATIC_ASSERT_X'
    #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:748:121: note: expanded from macro 'Q_STATIC_ASSERT'
    enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, COUNTER) = sizeof(QStaticAssertFailure<!!(Condition)>)}
    ^
    In file included from sipQtCorecmodule.cpp:24:
    In file included from ./sipAPIQtCore.h:29:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/QMetaType:1:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qmetatype.h:44:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qglobal.h:1158:
    In file included from /Users/yaochen/anaconda3/include/qt/QtCore/qatomic.h:46:
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:98:14: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    typename Ops::Type _q_value;
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:98:19: error: expected a qualified name after 'typename'
    typename Ops::Type _q_value;
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:98:23: error: expected ';' at end of declaration list
    typename Ops::Type _q_value;
    ^
    ;
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:102:44: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    T load() const Q_DECL_NOTHROW { return Ops::load(_q_value); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:102:54: error: use of undeclared identifier '_q_value'
    T load() const Q_DECL_NOTHROW { return Ops::load(_q_value); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:103:45: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    void store(T newValue) Q_DECL_NOTHROW { Ops::store(_q_value, newValue); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:103:56: error: use of undeclared identifier '_q_value'
    void store(T newValue) Q_DECL_NOTHROW { Ops::store(_q_value, newValue); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:105:51: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    T loadAcquire() const Q_DECL_NOTHROW { return Ops::loadAcquire(_q_value); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:105:68: error: use of undeclared identifier '_q_value'
    T loadAcquire() const Q_DECL_NOTHROW { return Ops::loadAcquire(_q_value); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:106:52: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    void storeRelease(T newValue) Q_DECL_NOTHROW { Ops::storeRelease(_q_value, newValue); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:106:70: error: use of undeclared identifier '_q_value'
    void storeRelease(T newValue) Q_DECL_NOTHROW { Ops::storeRelease(_q_value, newValue); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:110:86: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    static Q_DECL_CONSTEXPR bool isReferenceCountingNative() Q_DECL_NOTHROW { return Ops::isReferenceCountingNative(); }
    ^
    /Users/yaochen/anaconda3/include/qt/QtCore/qbasicatomic.h:111:88: error: 'QBasicAtomicInteger::Ops' (aka 'int') is not a
    class, namespace, or enumeration
    static Q_DECL_CONSTEXPR bool isReferenceCountingWaitFree() Q_DECL_NOTHROW { return Ops::isReferenceCountingWaitFree(); }
    ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    6 warnings and 20 errors generated.
    make[1]: *** [sipQtCorecmodule.o] Error 1
    make: *** [all] Error 2

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you are already using conda, why not install PyQt4 directly through it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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