Error while installing ROS Indigo from source on Ubuntu 16.04
I wanted to install ROS to try it out for the first time. I usually don't work on Linux, so I created a partition on my Notebook and I installed Ubuntu 16.04. I realized there aren't yet any binary distribution of ROS for most of the operating system and, if I understood correctly, also for Ubuntu 16.04. So I decided to build ROS Indigo from source by following this guide: http://wiki.ros.org/indigo/Installati...
From what I understood I only have problems when I execute the following command:
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release
i.e. when it installs all dependencies recursively. The error I'm having is the following:
...
-- Using CATKIN_DEVEL_PREFIX: /home/nbro/ros_catkin_ws/devel_isolated/pcl_ros
-- Using CMAKE_PREFIX_PATH: /home/nbro/ros_catkin_ws/install_isolated
-- This workspace overlays: /home/nbro/ros_catkin_ws/install_isolated
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/nbro/ros_catkin_ws/build_isolated/pcl_ros/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.18
-- Using these message generators: gencpp;genlisp;genpy
-- Checking to see if CXX compiler accepts flag -Wl,--version-script,"/home/nbro/ros_catkin_ws/build_isolated/pcl_ros/class_loader_hide_library_symbols__pcl_ros_io.script"
-- Checking to see if CXX compiler accepts flag -Wl,--version-script,"/home/nbro/ros_catkin_ws/build_isolated/pcl_ros/class_loader_hide_library_symbols__pcl_ros_io.script" - yes
-- Configuring done
CMake Warning (dev) at CMakeLists.txt:80 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "pcl_ros_generate_messages_cpp" of target
"pcl_ros_tf" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/nbro/ros_catkin_ws/build_isolated/pcl_ros
==> make -j2 -l2 in '/home/nbro/ros_catkin_ws/build_isolated/pcl_ros'
Scanning dependencies of target pcd_to_pointcloud
Scanning dependencies of target pointcloud_to_pcd
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '/home/nbro/ros_catkin_ws/devel_isolated/pcl_ros/lib/pcl_ros/pointcloud_to_pcd'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '/home/nbro/ros_catkin_ws/devel_isolated/pcl_ros/lib/pcl_ros/pcd_to_pointcloud'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 3%] Building CXX object CMakeFiles/pcd_to_pointcloud.dir/tools/pcd_to_pointcloud.cpp.o
[ 3%] Building CXX object CMakeFiles/pointcloud_to_pcd.dir/tools/pointcloud_to_pcd.cpp.o
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/pcd_to_pointcloud.dir/all' failed
make[1]: *** [CMakeFiles/pcd_to_pointcloud.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pointcloud_to_pcd.dir/all' failed
make[1]: *** [CMakeFiles/pointcloud_to_pcd.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'pcl_ros':
Command '['/home/nbro/ros_catkin_ws/install_isolated/env.sh', 'make', '-j2', '-l2']' returned non-zero exit status 2
Reproduce this error by running:
I'm not sure how exactly I should ...