ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

import catkin workspace to qtcreator

asked 2018-05-24 14:32:27 -0500

Vinni gravatar image


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 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 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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-24 14:52:53 -0500

Vinni gravatar image


sorry, issue resolved.

I did not change to the correct build path. Once that was changed, It automatically switched from cmake to catkin_make

Thanks for your help anyway


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-05-24 14:20:32 -0500

Seen: 1,338 times

Last updated: May 24 '18