Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you adobke! With your help I managed to get the Template from ttps://github.com/stonier/qt_ros/tree/groovy-devel/qt_create/src/qt_create/templates/qt-ros After a catkin_make over it, also the catkin_make_qt_pkg promt is available now.

I created a qt_pkg with name test and opened it as usual with QT. Cmake ran succesfully, but when I try to run the code without having anything added or changed, the following errors pop up.

As the template is for Qt4, this might be the problem, because I am using Qt5, but don't really know, what I have to change in cmakelists.txt to get rid of the errors.


01:09:53: Führe Schritte für Projekt test aus...
01:09:53: Starte "/usr/bin/make" 
[ 10%] Generating include/test/moc_qnode.cxx
[ 20%] Generating qrc_images.cxx
[ 30%] Generating ui_main_window.h
[ 40%] Generating include/test/moc_main_window.cxx
Scanning dependencies of target test
[ 50%] Building CXX object CMakeFiles/test.dir/src/main_window.cpp.o
In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qnamespace.h:45:0,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobjectdefs.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobject.h:47,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qabstractanimation.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/QtCore:4,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:4,
                 from /home/mmm/catkin_ws/test/src/main_window.cpp:12:
/home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
/home/mmm/catkin_ws/test/src/main_window.cpp:13:23: fatal error: QMessageBox: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/test.dir/src/main_window.cpp.o] Error 1
make[1]: *** [CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2
01:09:55: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
Error while building/deploying project test (kit: Desktop Qt 5.0.1 GCC 64bit)
Bei der Ausführung von Schritt 'Make'
click to hide/show revision 2
cmakelists.txt updated but new errors occur

Thank you adobke! With your help I managed to get the Template from ttps://github.com/stonier/qt_ros/tree/groovy-devel/qt_create/src/qt_create/templates/qt-ros After a catkin_make over it, also the catkin_make_qt_pkg promt is available now.

I created a qt_pkg with name test and opened it as usual with QT. Cmake ran succesfully, but when I try to run the code without having anything added or changed, the following errors pop up.

As the template is for Qt4, this might be the problem, because I am using Qt5, but don't really know, what I have to change in cmakelists.txt to get rid of the errors.


01:09:53: Führe Schritte für Projekt test aus...
01:09:53: Starte "/usr/bin/make" 
[ 10%] Generating include/test/moc_qnode.cxx
[ 20%] Generating qrc_images.cxx
[ 30%] Generating ui_main_window.h
[ 40%] Generating include/test/moc_main_window.cxx
Scanning dependencies of target test
[ 50%] Building CXX object CMakeFiles/test.dir/src/main_window.cpp.o
In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qnamespace.h:45:0,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobjectdefs.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobject.h:47,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qabstractanimation.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/QtCore:4,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:4,
                 from /home/mmm/catkin_ws/test/src/main_window.cpp:12:
/home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
/home/mmm/catkin_ws/test/src/main_window.cpp:13:23: fatal error: QMessageBox: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/test.dir/src/main_window.cpp.o] Error 1
make[1]: *** [CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2
01:09:55: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
Error while building/deploying project test (kit: Desktop Qt 5.0.1 GCC 64bit)
Bei der Ausführung von Schritt 'Make'
#
#

UPDATE:

#
#

I could fix the first error by adding "add_definitions(-fPIC)" to the cmakelists.txt.

The next error I got was about missing files like <qmessagebox> could be solved by adding the specific "path INCLUDE_DIRECTORIES( "/usr/include/qt4" )".

Now there are a lot of new errors I don't really understand:

22:13:49: Führe Schritte für Projekt test aus...

22:13:49: Starte "/usr/bin/make" -- Using CATKIN_DEVEL_PREFIX: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/devel -- Using CMAKE_PREFIX_PATH: /home/mmm/Dropbox/gesture/bureau/catkin_ws/devel;/home/mmm/catkin_ws/devel;/opt/ros/groovy -- This workspace overlays: /home/mmm/Dropbox/gesture/bureau/catkin_ws/devel;/home/mmm/catkin_ws/devel;/opt/ros/groovy -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using CATKIN_TEST_RESULTS_DIR: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/test_results -- catkin 0.5.65 -- Found unsuitable Qt version "5.0.1" from /home/mmm/Qt5.0.1/5.0.1/gcc_64/bin/qmake -- Configuring done -- Generating done -- Build files have been written to: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build [ 10%] Generating include/test/moc_qnode.cxx [ 20%] Generating include/test/moc_main_window.cxx Scanning dependencies of target test [ 30%] Building CXX object CMakeFiles/test.dir/src/main_window.cpp.o In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:5:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qaccessible.h:343:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qaccessible.h:668:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:11:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qicon.h:97:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:12:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qiconengine.h:87:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:34:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:148:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:44:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qmatrix4x4.h:1091:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:52:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qopenglfunctions.h:232:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:89:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qdesktopservices.h:66:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QApplication:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:15, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:113:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:153:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:183:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qabstractitemview.h:47:0, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:45, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QHeaderView:1, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:23, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qitemselectionmodel.h:95:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QHeaderView:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:23, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:119:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:126:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:137:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:10:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qbitmap.h:77:42: error: 'QPlatformPixmap' was not declared in this scope /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qbitmap.h:77:57: error: template argument 1 is invalid In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:47:0, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:30, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qinputmethod.h:95:21: error: 'Qt::InputMethodQueries' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:30:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:94:12: error: 'QWindowList' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:95:12: error: 'QWindowList' does not name a type In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:33:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qopenglcontext.h:120:5: error: 'QFunctionPointer' does not name a type In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:34:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'bool qIsDetached(T&) [with T = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'isDetached' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'void qSwap(T&, T&) [with T = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'void std::swap(_Tp&, _Tp&) [with _Tp = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:35:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h: At global scope: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:125:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:126:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:128:5: error: 'ScreenOrientations' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:129:39: error: 'Qt::ScreenOrientations' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:131:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:131:51: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:132:37: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:132:62: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:133:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:133:51: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:135:25: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:136:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:148:40: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:149:33: error: 'Qt::ScreenOrientation' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:41:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:155:45: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:156:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:286:40: error: 'Qt::ScreenOrientation' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:77:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'bool qIsDetached(T&) [with T = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'isDetached' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'void qSwap(T&, T&) [with T = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'void std::swap(_Tp&, _Tp&) [with _Tp = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QAction:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:14, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qaction.h: At global scope: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qaction.h:63:32: error: expected initializer before ':' token In file included from /usr/include/boost/throw_exception.hpp:37:0, from /usr/include/boost/smart_ptr/shared_ptr.hpp:31, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/format/alt_sstream.hpp:21, from /usr/include/boost/format/internals.hpp:23, from /usr/include/boost/format.hpp:38, from /usr/include/boost/math/policies/error_handling.hpp:30, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/groovy/include/ros/time.h:58, from /opt/ros/groovy/include/ros/ros.h:38, from /home/mmm/catkin_ws/test/src/../include/test/qnode.hpp:19, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:17, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /usr/include/boost/exception/exception.hpp:137:40: error: expected declaration before end of line make[2]: * [CMakeFiles/test.dir/src/main_window.cpp.o] Error 1 make[1]: [CMakeFiles/test.dir/all] Error 2 make: ** [all] Error 2 22:13:53: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet. Error while building/deploying project test (kit: Desktop Qt 5.0.1 GCC 64bit) Bei der Ausführung von Schritt 'Make'

Thank you adobke! With your help I managed to get the Template from ttps://github.com/stonier/qt_ros/tree/groovy-devel/qt_create/src/qt_create/templates/qt-ros After a catkin_make over it, also the catkin_make_qt_pkg promt is available now.

I created a qt_pkg with name test and opened it as usual with QT. Cmake ran succesfully, but when I try to run the code without having anything added or changed, the following errors pop up.

As the template is for Qt4, this might be the problem, because I am using Qt5, but don't really know, what I have to change in cmakelists.txt to get rid of the errors.


01:09:53: Führe Schritte für Projekt test aus...
01:09:53: Starte "/usr/bin/make" 
[ 10%] Generating include/test/moc_qnode.cxx
[ 20%] Generating qrc_images.cxx
[ 30%] Generating ui_main_window.h
[ 40%] Generating include/test/moc_main_window.cxx
Scanning dependencies of target test
[ 50%] Building CXX object CMakeFiles/test.dir/src/main_window.cpp.o
In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qnamespace.h:45:0,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobjectdefs.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qobject.h:47,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qabstractanimation.h:45,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/QtCore:4,
                 from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:4,
                 from /home/mmm/catkin_ws/test/src/main_window.cpp:12:
/home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
/home/mmm/catkin_ws/test/src/main_window.cpp:13:23: fatal error: QMessageBox: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/test.dir/src/main_window.cpp.o] Error 1
make[1]: *** [CMakeFiles/test.dir/all] Error 2
make: *** [all] Error 2
01:09:55: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.
Error while building/deploying project test (kit: Desktop Qt 5.0.1 GCC 64bit)
Bei der Ausführung von Schritt 'Make'
#
#

UPDATE:

#
#

I could fix the first error by adding "add_definitions(-fPIC)" to the cmakelists.txt.

The next error I got was about missing files like <qmessagebox> could be solved by adding the specific "path INCLUDE_DIRECTORIES( "/usr/include/qt4" )".

Now there are a lot of new errors I don't really understand:

 22:13:49: Führe Schritte für Projekt test aus...

22:13:49: Starte "/usr/bin/make" -- Using CATKIN_DEVEL_PREFIX: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/devel -- Using CMAKE_PREFIX_PATH: /home/mmm/Dropbox/gesture/bureau/catkin_ws/devel;/home/mmm/catkin_ws/devel;/opt/ros/groovy -- This workspace overlays: /home/mmm/Dropbox/gesture/bureau/catkin_ws/devel;/home/mmm/catkin_ws/devel;/opt/ros/groovy -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using CATKIN_TEST_RESULTS_DIR: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/test_results -- catkin 0.5.65 -- Found unsuitable Qt version "5.0.1" from /home/mmm/Qt5.0.1/5.0.1/gcc_64/bin/qmake -- Configuring done -- Generating done -- Build files have been written to: /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build [ 10%] Generating include/test/moc_qnode.cxx [ 20%] Generating include/test/moc_main_window.cxx Scanning dependencies of target test [ 30%] Building CXX object CMakeFiles/test.dir/src/main_window.cpp.o In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:5:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qaccessible.h:343:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qaccessible.h:668:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:11:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qicon.h:97:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:12:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qiconengine.h:87:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:34:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:148:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:44:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qmatrix4x4.h:1091:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:52:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qopenglfunctions.h:232:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:89:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qdesktopservices.h:66:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QApplication:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:15, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:113:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:153:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qapplication.h:183:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qabstractitemview.h:47:0, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:45, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QHeaderView:1, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:23, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtCore/qitemselectionmodel.h:95:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QHeaderView:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:23, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:119:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:126:24: error: missing binary operator before token "(" /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qheaderview.h:137:24: error: missing binary operator before token "(" In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:10:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qbitmap.h:77:42: error: 'QPlatformPixmap' was not declared in this scope /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qbitmap.h:77:57: error: template argument 1 is invalid In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:47:0, from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:30, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qinputmethod.h:95:21: error: 'Qt::InputMethodQueries' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:30:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:94:12: error: 'QWindowList' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qguiapplication.h:95:12: error: 'QWindowList' does not name a type In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:33:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qopenglcontext.h:120:5: error: 'QFunctionPointer' does not name a type In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:34:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'bool qIsDetached(T&) [with T = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'isDetached' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'void qSwap(T&, T&) [with T = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h: In function 'void std::swap(_Tp&, _Tp&) [with _Tp = QPalette]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qpalette.h:189:1: error: 'class QPalette' has no member named 'data_ptr' In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:35:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h: At global scope: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:125:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:126:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:128:5: error: 'ScreenOrientations' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:129:39: error: 'Qt::ScreenOrientations' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:131:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:131:51: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:132:37: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:132:62: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:133:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:133:51: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:135:25: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:136:26: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:148:40: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qscreen.h:149:33: error: 'Qt::ScreenOrientation' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:41:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:155:45: error: 'Qt::ScreenOrientation' has not been declared /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:156:5: error: 'ScreenOrientation' in namespace 'Qt' does not name a type /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qwindow.h:286:40: error: 'Qt::ScreenOrientation' has not been declared In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/QtGui:77:0, from /home/mmm/catkin_ws/test/src/main_window.cpp:12: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'bool qIsDetached(T&) [with T = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'isDetached' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'void qSwap(T&, T&) [with T = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h: In function 'void std::swap(_Tp&, _Tp&) [with _Tp = QStaticText]': /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtGui/qstatictext.h:104:1: error: 'class QStaticText' has no member named 'data_ptr' In file included from /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/QAction:1:0, from /home/mmm/Dropbox/gesture/bureau/catkin_ws/test-build/ui_main_window.h:14, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:16, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qaction.h: At global scope: /home/mmm/Qt5.0.1/5.0.1/gcc_64/include/QtWidgets/qaction.h:63:32: error: expected initializer before ':' token In file included from /usr/include/boost/throw_exception.hpp:37:0, from /usr/include/boost/smart_ptr/shared_ptr.hpp:31, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/format/alt_sstream.hpp:21, from /usr/include/boost/format/internals.hpp:23, from /usr/include/boost/format.hpp:38, from /usr/include/boost/math/policies/error_handling.hpp:30, from /usr/include/boost/math/special_functions/round.hpp:14, from /opt/ros/groovy/include/ros/time.h:58, from /opt/ros/groovy/include/ros/ros.h:38, from /home/mmm/catkin_ws/test/src/../include/test/qnode.hpp:19, from /home/mmm/catkin_ws/test/src/../include/test/main_window.hpp:17, from /home/mmm/catkin_ws/test/src/main_window.cpp:15: /usr/include/boost/exception/exception.hpp:137:40: error: expected declaration before end of line make[2]: * *** [CMakeFiles/test.dir/src/main_window.cpp.o] Error 1 make[1]: *** [CMakeFiles/test.dir/all] Error 2 make: ** *** [all] Error 2 22:13:53: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet. Error while building/deploying project test (kit: Desktop Qt 5.0.1 GCC 64bit) Bei der Ausführung von Schritt 'Make'

'Make'