Ask Your Question
0

rosmake fails to find rosbuild.cmake on fuerte

asked 2012-05-18 04:29:45 -0500

updated 2012-05-26 09:53:32 -0500

Kevin gravatar image

after following the install instructions for Ubuntu 12.04 & ROS fuerte here: http://www.ros.org/wiki/fuerte/Installation/Ubuntu

I'm unable to build any rosbuild-based packages. I receive the following error during "rosmake":

  mkdir -p bin
  cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake  ..
  -- The C compiler identification is GNU
  -- The CXX compiler identification is GNU
  -- Check for working C compiler: /usr/bin/gcc
  -- Check for working C compiler: /usr/bin/gcc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  CMake Error at CMakeLists.txt:2 (include):
    include could not find load file:

      /opt/ros/fuerte/core/rosbuild/rosbuild.cmake

  CMake Error at CMakeLists.txt:4 (rosbuild_init):
    Unknown CMake command "rosbuild_init".

rospack find rosbuild returns:

/opt/ros/fuerte/share/ros/core/rosbuild

so it looks like the /share/ros is missing from all my cmake files. A bug? or am I supposed to do something special with my old CMakeLists.txt files?

I've observed this behavior under both Ubuntu 12.04 (from official debs) and Mac OSX (from source)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-05-18 05:06:51 -0500

Lorenz gravatar image

Maybe something is wrong with your environment configuration. What's the value of ROS_ROOT and how do you set it? For fuerte it should be /opt/ros/fuerte/share/ros.

edit flag offensive delete link more

Comments

Ah ha! You nailed it. It was originally set by the setup.bash/sh scripts created by a rosws unit call added to my bashrc file. However I changed those scripts manually (even though I shouldnt)

JeffRousseau gravatar imageJeffRousseau ( 2012-05-18 10:46:39 -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

Stats

Asked: 2012-05-18 04:29:45 -0500

Seen: 3,009 times

Last updated: Jun 26 '12