bitpay / bitcoin

Bitcore Bitcoin build with address indexes
https://bitcore.io/bitcoin
MIT License
61 stars 40 forks source link

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

Open degjeg opened 6 years ago

degjeg commented 6 years ago

I am on branch 0.13-bitcore AAAdeMac-mini:bitcoin aaa$ git branch -vv 0.12-bitcore ca9da76 [origin/0.12-bitcore] Merge pull request #11 from braydonf/0.12-bitcore-spent 0.12.1-bitcore 68225ab [origin/0.12.1-bitcore: ahead 1] backup

I have folled this doc https://github.com/bitpay/bitcoin/blob/0.13-bitcore/doc/build-osx.md

But I get the following error:

In file included from qt/macdockiconhandler.mm:5: In file included from ./qt/macdockiconhandler.h:8: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/QMainWindow:1: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qmainwindow.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtGui/qtguiglobal.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:105: /usr/local/Cellar/qt/5.11.1/include/QtCore/qcompilerdetection.h:561: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 qt/macdockiconhandler.mm:5: In file included from ./qt/macdockiconhandler.h:8: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/QMainWindow:1: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qmainwindow.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtGui/qtguiglobal.h:43: /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:505:19: warning: alias declarations are a C++11 extension [-Wc++11-extensions] using qsizetype = QIntegerForSizeof::Signed; ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:966:23: warning: rvalue references are a C++11 extension [-Wc++11-extensions] void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:977: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()) {} ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:979:41: warning: rvalue references are a C++11 extension [-Wc++11-extensions] QForeachContainer(QForeachContainer &&other) ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:987:52: warning: rvalue references are a C++11 extension [-Wc++11-extensions] QForeachContainer &operator=(QForeachContainer &&other) ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:998:17: warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions] int control = 1; ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:1002:73: warning: rvalue references are a C++11 extension [-Wc++11-extensions] QForeachContainer<typename std::decay::type> qMakeForeachContainer(T &&t) ^ In file included from qt/macdockiconhandler.mm:5: In file included from ./qt/macdockiconhandler.h:8: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/QMainWindow:1: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qmainwindow.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qtwidgetsglobal.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtGui/qtguiglobal.h:43: In file included from /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:1200: In file included from /usr/local/Cellar/qt/5.11.1/include/QtCore/qatomic.h:46: /usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:61:4: error: "Qt requires C++11 support"

error "Qt requires C++11 support"

^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:94:13: error: unknown type name 'QAtomicOps' typedef QAtomicOps Ops; ^ /usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:94:23: error: expected member name or ';' after declaration specifiers typedef QAtomicOps Ops;


/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:97:23: error: use of undeclared identifier 'QAtomicOpsSupport'
    Q_STATIC_ASSERT_X(QAtomicOpsSupport<sizeof(T)>::IsSupported, "template parameter is an integral of a size not supported on this platform");
                      ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:97: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 supported on this platform");
                                                  ~~^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:137:65: note: expanded from macro 'Q_STATIC_ASSERT_X'
#  define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
                                                                ^~~~~~~~~
/usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:132:86: note: expanded from macro 'Q_STATIC_ASSERT'
    typedef char Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) [(Condition) ? 1 : -1];
                                                                                     ^~~~~~~~~
In file included from qt/macdockiconhandler.mm:5:
In file included from ./qt/macdockiconhandler.h:8:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/QMainWindow:1:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qmainwindow.h:43:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtWidgets/qtwidgetsglobal.h:43:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtGui/qtguiglobal.h:43:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtCore/qglobal.h:1200:
In file included from /usr/local/Cellar/qt/5.11.1/include/QtCore/qatomic.h:46:
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:99:14: error: use of undeclared identifier 'Ops'
    typename Ops::Type _q_value;
             ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:99:19: error: expected a qualified name after 'typename'
    typename Ops::Type _q_value;
                  ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:103:44: error: use of undeclared identifier 'Ops'
    T load() const Q_DECL_NOTHROW { return Ops::load(_q_value); }
                                           ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:104:45: error: use of undeclared identifier 'Ops'
    void store(T newValue) Q_DECL_NOTHROW { Ops::store(_q_value, newValue); }
                                            ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:106:51: error: use of undeclared identifier 'Ops'
    T loadAcquire() const Q_DECL_NOTHROW { return Ops::loadAcquire(_q_value); }
                                                  ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:107:52: error: use of undeclared identifier 'Ops'
    void storeRelease(T newValue) Q_DECL_NOTHROW { Ops::storeRelease(_q_value, newValue); }
                                                   ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:111:86: error: use of undeclared identifier 'Ops'
    static Q_DECL_CONSTEXPR bool isReferenceCountingNative() Q_DECL_NOTHROW { return Ops::isReferenceCountingNative(); }
                                                                                     ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:112:88: error: use of undeclared identifier 'Ops'
    static Q_DECL_CONSTEXPR bool isReferenceCountingWaitFree() Q_DECL_NOTHROW { return Ops::isReferenceCountingWaitFree(); }
                                                                                       ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:114:40: error: use of undeclared identifier 'Ops'
    bool ref() Q_DECL_NOTHROW { return Ops::ref(_q_value); }
                                       ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:115:42: error: use of undeclared identifier 'Ops'
    bool deref() Q_DECL_NOTHROW { return Ops::deref(_q_value); }
                                         ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:117:79: error: use of undeclared identifier 'Ops'
    static Q_DECL_CONSTEXPR bool isTestAndSetNative() Q_DECL_NOTHROW { return Ops::isTestAndSetNative(); }
                                                                              ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:118:81: error: use of undeclared identifier 'Ops'
    static Q_DECL_CONSTEXPR bool isTestAndSetWaitFree() Q_DECL_NOTHROW { return Ops::isTestAndSetWaitFree(); }
                                                                                ^
/usr/local/Cellar/qt/5.11.1/include/QtCore/qbasicatomic.h:121:14: error: use of undeclared identifier 'Ops'
    { return Ops::testAndSetRelaxed(_q_value, expectedValue, newValue); }
             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make[2]: *** [qt/bitcoin_qt-macdockiconhandler.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
AAAdeMac-mini:bitcoin aaa$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
AAAdeMac-mini:bitcoin aaa$