Reply to topic

Make error on Ubuntu when compiling Marble source code

DPach
Registered Member
Posts
1
Karma
0
I'm getting the error below and am not sure how to resolve it. I'm running Ubuntu 16.04 and have downloaded QT 5.3 and 5.7. Any help would be appreciated. I had hoped this would run smoothly but as always it did not. I am following the step by step instructions on Marble's site for downloading and compiling the source code.

This is the command:
[email protected]:~/marble/build$ cmake -DCMAKE_PREFIX_PATH=/opt/Qt5.7.0/5.7/gcc_64/lib/cmake/Qt5Svg -DCMAKE_BUILD_TYPE=Debug -DWITH_KF5=FALSE -DCMAKE_INSTALL_PREFIX=/usr/local ~/marble/sources

The is the output like 20 minutes in:
[ 51%] Linking CXX shared module libMarbleNavigatorPlugin.so
[ 51%] Built target MarbleNavigatorPlugin
[ 51%] Automatic moc for target CompassFloatItem
Generating moc_CompassFloatItem.cpp
[ 51%] Built target CompassFloatItem_automoc
Scanning dependencies of target CompassFloatItem
[ 51%] Building CXX object src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/CompassFloatItem.cpp.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QDebug:1:0,
from /home/david/marble/sources/src/lib/marble/RenderState.h:17,
from /home/david/marble/sources/src/lib/marble/LayerInterface.h:16,
from /home/david/marble/sources/src/lib/marble/RenderPluginInterface.h:16,
from /home/david/marble/sources/src/lib/marble/RenderPlugin.h:21,
from /home/david/marble/sources/src/lib/marble/AbstractFloatItem.h:18,
from /home/david/marble/sources/src/plugins/render/compass/CompassFloatItem.h:16,
from /home/david/marble/sources/src/plugins/render/compass/CompassFloatItem.cpp:12:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:31: error: ‘IsQEnumHelper’ is not a member of ‘QtPrivate’
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:31: error: ‘IsQEnumHelper’ is not a member of ‘QtPrivate’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:57: error: template argument 1 is invalid
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:58: error: expected identifier before ‘::’ token
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:60: error: explicit qualification in declaration of ‘Value’
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:269:65: error: expected ‘;’ before ‘,’ token
typename QtPrivate::QEnableIf<QtPrivate::IsQEnumHelper<T>::Value, QDebug>::Type
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:279:5: error: ‘IsQEnumHelper’ is not a member of ‘QtPrivate’
QtPrivate::IsQEnumHelper<T>::Value || QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:279:5: error: ‘IsQEnumHelper’ is not a member of ‘QtPrivate’
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:279:31: error: template argument 1 is invalid
QtPrivate::IsQEnumHelper<T>::Value || QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:279:32: error: expected identifier before ‘::’ token
QtPrivate::IsQEnumHelper<T>::Value || QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:279:40: error: expected initializer before ‘||’ token
QtPrivate::IsQEnumHelper<T>::Value || QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:290:6: error: ‘IsQEnumHelper’ is not a member of ‘QtPrivate’
!QtPrivate::IsQEnumHelper<T>::Value && !QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:290:32: error: template argument 1 is invalid
!QtPrivate::IsQEnumHelper<T>::Value && !QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:290:33: error: expected identifier before ‘::’ token
!QtPrivate::IsQEnumHelper<T>::Value && !QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qdebug.h:290:41: error: expected initializer before ‘&&’ token
!QtPrivate::IsQEnumHelper<T>::Value && !QtPrivate::IsQEnumHelper<QFlags<T> >::Value,
^
src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/build.make:74: recipe for target 'src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/CompassFloatItem.cpp.o' failed
make[2]: *** [src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/CompassFloatItem.cpp.o] Error 1
CMakeFiles/Makefile2:1915: recipe for target 'src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/all' failed
make[1]: *** [src/plugins/render/compass/CMakeFiles/CompassFloatItem.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], Baidu [Spider], Bing [Bot], boospy007, boudewijn, claydoh, Google [Bot], grahm, Gregstrq, jmacleod, Majestic-12 [Bot], nachtgold, Sogou [Bot]