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

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

asked 2016-06-09 02:34:10 -0500

ramtinkr gravatar image

updated 2016-06-09 06:03:09 -0500

Hello,

I faced this error, while trying to operate cmake .. -DROS_BUILD_TYPE=Release in the build folder of ROS Path. Does anyone know how to solve it ? Here is the my ROS Path in .bashrc file:

source /opt/ros/indigo/setup.bash
ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/ramtin/ORB_SLAM2/Examples/ROS/ORB_SLAM2

And here is the Error :

ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2$ mkdir build
ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2$ cd build
ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build$ cmake .. -DROS_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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:4 (rosbuild_init):
  Unknown CMake command "rosbuild_init".


-- Configuring incomplete, errors occurred!
See also "/home/ramtin/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log".
ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build$ make -j
make: *** No targets specified and no makefile found.  Stop.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-09 15:41:57 -0500

tfoote gravatar image

updated 2016-06-09 15:42:57 -0500

When you're using rosbuild you do not directly invoke cmake. Please see the documentation at http://wiki.ros.org/rosbuild

As linked at the top you build using rosmake

There's a tutorial for building a package Click on the rosbuild toggle to get the rosbuild version.

If you're not familiar with ROS I'd suggest at least reading through the core tutorials.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-06-09 02:34:10 -0500

Seen: 4,529 times

Last updated: Jun 09 '16