Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Fix QT 5.5 Build #2517

Merged
merged 1 commit into from
Jul 21, 2015
Merged

Fix QT 5.5 Build #2517

merged 1 commit into from
Jul 21, 2015

Conversation

LefterisJP
Copy link
Contributor

In QT 5.5 Mono is a reserved preprocessor define and as such building
with it fails.

In file included from /usr/include/qt/QtGui/qvalidator.h:42:
/usr/include/qt/QtCore/qlocale.h:407:9: error: expected identifier
        Mono = 337,
        ^
/home/lefteris/ew/cpp-ethereum/alethzero/Context.h:36:14: note: expanded from macro 'Mono'
#define Mono "font-family: Ubuntu Mono, Monospace, Lucida Console, Courier New; font-weight: bold; "
             ^
1 error generated.
alethzero/CMakeFiles/alethzero.dir/build.make:158: recipe for target 'alethzero/CMakeFiles/alethzero.dir/Context.cpp.o' failed
make[2]: *** [alethzero/CMakeFiles/alethzero.dir/Context.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Switching the macros in alethzero/Context.h to follow Coding Standards
fixes this discrepancy and allows us to build with QT 5.5.

In QT 5.5 Mono is a reserved preprocessor define and as such building
with it fails.

Switching the macros in alethzero/Context.h to follow Coding Standards
fixes this discrepancy and allows us to build with QT 5.5.
@LefterisJP
Copy link
Contributor Author

rebased on develop after whizz branch merging

gavofyork pushed a commit that referenced this pull request Jul 21, 2015
@gavofyork gavofyork merged commit a6e49c7 into ethereum:develop Jul 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants