Solved Switching from Qmake to Cmake
-
i try to switch from qmake to cmake
i followed the tutorial on this side but when i want to compile i get this error:
/usr/include/qt/QtCore/qobject.h:491:24: Fehler: missing binary operator before token "("
#if QT_DEPRECATED_SINCE(5, 0)my cmake file:
http://pastebin.com/qRVpXpAWwhat am i missing?
-
Hi and welcome to devnet,
What version of Qt are you using ?
Does it also happen with a simple Qt Hello World application ?
-
@SGaist Qt 5
Well just tested it with a hello world programm and that works just fine -
Did you see this forum post? Perhaps you have a similar header name collision in your project.
-
@mchinand nope just tested it out and refactored every last name of my .h files, still the same error
edit: make output, maybe it helps: http://pastebin.com/cKULZyXp -
Not the fastest technique but one thing you can do is to remove all files from your build and add each again one by one to see exactly which one triggers the error.
-
found the error
one of the other library I'm using had a cmake flag that put qt4 headers in the include path
(include_directories(${libgeodecomp_INCLUDE_DIRS}) to be exact)