Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
degjeg opened this issue Aug 2, 2018 · 0 comments
Open

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

degjeg opened this issue Aug 2, 2018 · 0 comments

Comments

@degjeg
Copy link

degjeg commented Aug 2, 2018

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 = QIntegerForSizeofstd::size_t::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$

LarryRuane pushed a commit to LarryRuane/bitcoin that referenced this issue Nov 9, 2020
6954156 qt: Fix visual quality of text in QR image (Hennadii Stepanov)
8071c75 qt, refactor: Limit scope of QPainter object (Hennadii Stepanov)

Pull request description:

  Master (197450f):
  ![DeepinScreenshot_select-area_20200824001800](https://user-images.githubusercontent.com/32963518/90988962-96283680-e59f-11ea-8e20-42e9b23033f5.png)

  This PR (6954156):
  - macOS 10.15.6
  ![Screenshot from 2020-09-07 15-40-30](https://user-images.githubusercontent.com/32963518/92390251-2c716600-f123-11ea-96f0-0e9d35810c76.png)

  - Linux Mint 20
  ![Screenshot from 2020-09-07 15-48-13](https://user-images.githubusercontent.com/32963518/92390272-36936480-f123-11ea-8fee-4de23bb40ed9.png)

  Fix bitpay#54
  Fix bitcoin#19103

  ---

  The first commit is easy to review with [`git diff --word-diff`](bitcoin-core/gui@8071c75?w=1).

ACKs for top commit:
  jonasschnelli:
    Tested ACK 6954156 - tested on macOS 10.15. Fixes the problem.

Tree-SHA512: 6ecb3397d2a5094c5f00ee05fc09520751568404e000a8691b6de7e57f38c2d5da628694e5e45a2b4cc302a846bbc00014c40820233eb026d3ebd4f68c2c9913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant