import catkin workspace to qtcreator
Hi,
I am trying to program a GUI for ROS using qtcreator.
Therefore I have created an empty package using "catkin_create_qt_pkg gcs_gui". Afterwards I ran "catkin_make" to build the new package. It is running by "rosrun gcs_gui gcs_gui".
I would like to edit the files with Qtcreator now but it seems I am missing step during setup. I followed this http://wiki.ros.org/IDEs#QtCreator by
- copying CMakeLists.txt the way it said
- run qtcreator
- open CMakeLists.txt file (I get the error below)
- SOFT ASSERT: "!tcd.tcs.isEmpty()" in file /work/build/qt-creator/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp, line 336)
- build directory is already selected correctly
- I don't understand this step: ... and 'Run CMake': Where should I run that? What do I need to type where?
- If I just click configure project, I get this:
- /home/vinni/catkin_ws/src/CMakeLists.txt:59: CMake Error (message): find_package(catkin) failed. catkin was neither found in the workspace nor in the CMAKE_PREFIX_PATH. One reason may be that no ROS setup.sh was sourced before.
- Configuring incomplete, errors occurred!
- cmake process exited with exit code 1.
Also, if I add this to the CMakeLists.txt, it fails as well:
- DCMAKE_INSTALL_PREFIX=/home/vinni/catkin_ws/install
- DCATKIN_DEVEL_PREFIX=/home/vinni/catkin_ws/devel
I hope someone can help me. I am a fairly newbie with ROS. Thank you, Vincenz