Ask Your Question

Problems with compiling Beginner Tutorials [Solved]

asked 2015-02-03 16:24:28 -0500

nicobari gravatar image

updated 2015-02-04 10:46:31 -0500

Hi, I am new to ROS and was trying to compile the Beginner Tutorials as explained in ROS tutorial website. I am getting the following error

+++ processing catkin package: 'beginner_tutorials' -- ==> add_subdirectory(beginner_tutorials) -- Using these message generators: CMake Error at /opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:268 (message):
Could not find 'share/std_msgs/cmake/std_msgs-msg-paths.cmake' (searched in
'/home/titoro/catkin_ws/devel'). Call Stack (most recent call first):
beginner_tutorials/CMakeLists.txt:70 (generate_messages)

I am at my wits end trying to figure out the problem. I will appreciate any help. Thanks in advance.

Edit 1: I somehow messed up CMAKE_PREFIX_PATH, I fixed it and now its working. Thanks for the help.

Regards, TM

edit retag flag offensive close merge delete



Do you have std_msgs installed?

Aracanid gravatar image Aracanid  ( 2015-02-03 22:02:00 -0500 )edit

How did you fix your CMAKE_PREFIX_PATH? (Ok delete build/devel and source /opt/ros/distro/setup.bash seemed to do it)

user12821821 gravatar image user12821821  ( 2016-10-09 20:35:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-04 07:47:26 -0500

Just FYI, you shouldn't be manually adjusting CMAKE_PREFIX_PATH, you should be letting the setup.bash script located in the devel/ directory of your workspace manage your environment variables for you. Is your problem solved now?

edit flag offensive delete link more


Yeah I realized that later, as I was trying to link OpenCV with ROS I changed CMAKE_PREFIX_PATH. Yeah my problem is solved.

nicobari gravatar image nicobari  ( 2015-02-04 10:43:17 -0500 )edit

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


Asked: 2015-02-03 16:24:28 -0500

Seen: 2,348 times

Last updated: Feb 04 '15