Ask Your Question
0

import catkin workspace to qtcreator

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

Vinni gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

Vinni gravatar image

Hi,

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

Vinni

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 510 times

Last updated: May 24 '18