CMake Error at CMakeLists.txt (rosbuild_init): Unknown CMake command "rosbuild_init"
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.