I am trying to install ros version on Ubuntu 16.04. I followed the steps mentioned in ros_build.sh file. The last command in that file is make -j, which is giving this error . Can anyone help me out?
[rosbuild] Building package ORB_SLAM2
[rosbuild] using multiarch 'x86_64-linux-gnu' for finding Boost
-- Using CATKIN_DEVEL_PREFIX: /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/devel
-- Using CMAKE_PREFIX_PATH: /home/ppatel/ros_pkgs/usb_cam/devel;/home/ppatel/ros_pkgs/realsense_ws/devel;/home/ppatel/ros_pkgs/rotors_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/ppatel/ros_pkgs/usb_cam/devel;/home/ppatel/ros_pkgs/realsense_ws/devel;/home/ppatel/ros_pkgs/rotors_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Skip enable_testing() for dry packages
-- Using CATKIN_TEST_RESULTS_DIR: /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.14
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
[rosbuild] Including /opt/ros/kinetic/share/roslisp/rosbuild/roslisp.cmake
[rosbuild] Including /opt/ros/kinetic/share/roscpp/rosbuild/roscpp.cmake
[rosbuild] Including /opt/ros/kinetic/share/rospy/rosbuild/rospy.cmake
Build type: Release
-- Using flag -std=c++11.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build
[ 0%] Built target rospack_genmsg_libexe
[ 0%] Built target rosbuild_precompile
make[2]: *** No rule to make target '../../../../Thirdparty/DBoW2/lib/libDBoW2.so', needed by '../Stereo'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '../../../../Thirdparty/DBoW2/lib/libDBoW2.so', needed by '../RGBD'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '../../../../Thirdparty/DBoW2/lib/libDBoW2.so', needed by '../Mono'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 11%] Building CXX object CMakeFiles/Stereo.dir/src/ros_stereo.cc.o
[ 22%] Building CXX object CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o
[ 33%] Building CXX object CMakeFiles/Mono.dir/src/ros_mono.cc.o
make[2]: *** No rule to make target '../../../../Thirdparty/DBoW2/lib/libDBoW2.so', needed by '../MonoAR'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 55%] Building CXX object CMakeFiles/MonoAR.dir/src/AR/ros_mono_ar.cc.o
[ 55%] Building CXX object CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o
In file included from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.cc:21:
/home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
CMakeFiles/MonoAR.dir/build.make:200: recipe for target 'CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o' failed
make[2]: *** [CMakeFiles/MonoAR.dir/src/AR/ViewerAR.cc.o] Error 1
In file included from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/ros_mono.cc:32:
/home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
CMakeFiles/Mono.dir/build.make:119: recipe for target 'CMakeFiles/Mono.dir/src/ros_mono.cc.o' failed
make[2]: *** [CMakeFiles/Mono.dir/src/ros_mono.cc.o] Error 1
CMakeFiles/Makefile2:718: recipe for target 'CMakeFiles/Mono.dir/all' failed
make[1]: *** [CMakeFiles/Mono.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/AR/ros_mono_ar.cc:33:
/home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
In file included from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/ros_rgbd.cc:35:
/home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
In file included from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/optimizable_graph.h:37:0,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/base_vertex.h:30,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/types_seven_dof_expmap.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LoopClosing.h:34,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/LocalMapping.h:26,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/Tracking.h:31,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../include/System.h:29,
from /home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/src/ros_stereo.cc:35:
/home/ppatel/clutter/orb_slam2_ros/ORB_SLAM2/Examples/ROS/ORB_SLAM2/../../../Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:26: fatal error: ../../config.h: No such file or directory
compilation terminated.
CMakeFiles/Stereo.dir/build.make:119: recipe for target 'CMakeFiles/Stereo.dir/src/ros_stereo.cc.o' failed
make[2]: *** [CMakeFiles/Stereo.dir/src/ros_stereo.cc.o] Error 1
CMakeFiles/RGBD.dir/build.make:119: recipe for target 'CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o' failed
make[2]: *** [CMakeFiles/RGBD.dir/src/ros_rgbd.cc.o] Error 1
CMakeFiles/MonoAR.dir/build.make:119: recipe for target 'CMakeFiles/MonoAR.dir/src/AR/ros_mono_ar.cc.o' failed
make[2]: *** [CMakeFiles/MonoAR.dir/src/AR/ros_mono_ar.cc.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/Stereo.dir/all' failed
make[1]: *** [CMakeFiles/Stereo.dir/all] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/RGBD.dir/all' failed
make[1]: *** [CMakeFiles/RGBD.dir/all] Error 2
CMakeFiles/Makefile2:820: recipe for target 'CMakeFiles/MonoAR.dir/all' failed
make[1]: *** [CMakeFiles/MonoAR.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
I am trying to install ros version on Ubuntu 16.04. I followed the steps mentioned in ros_build.sh file. The last command in that file is make -j, which is giving this error . Can anyone help me out?