felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
943 stars 400 forks source link

rosdep install cannot find libpcl-dev installing rgbdslam_v2-indigo #102

Open p1n0cch10 opened 5 years ago

p1n0cch10 commented 5 years ago

Hi all,

I was trying to install the package rgbdslam_v2 on ROS indigo, Ubuntu 14.04. I followed the instruction here, on branch indigo. However, it after executing rosdep install rgbdslam, It showed

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rgbdslam: No definition of [message_runtime] for OS [debian]

Then I followed the ROS answer here , and execute

rosdep install --from-paths ~/Documents/Projects/rgbdslam_ws/src/rgbdslam_v2-indigo --ignore-src -r --rosdistro indigo -y

It showed that

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rgbdslam: No definition of [libg2o] for OS [debian] Continuing to install resolvable dependencies... executing command [sudo -H apt-get install -y libpcl-dev] [sudo] password for alex: Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package libpcl-dev ERROR: the following rosdeps failed to install apt: command [sudo -H apt-get install -y libpcl-dev] failed apt: Failed to detect successful installation of [libpcl-dev]

It was weird that it was installing libpcl-dev, because I was on ROS indigo, Ubuntu 14.04. The program detected libpcl-dev when I did git clone the repo, checkout to indigo branch, or download rgbdslam_v2-indigo.zip and unzip.

After recognized it was a PCL installation problem, I followed guidance in the official site.

sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all

Then I catkin_make the workspace, it showed that Could not find a package configuration file provided by "pcl_conversions". The log is attached below.

-- Using CATKIN_DEVEL_PREFIX: /home/alex/Documents/Projects/rgbdslam_ws/devel -- Using CMAKE_PREFIX_PATH: /home/alex/Documents/Projects/rgbdslam_ws/devel;/opt/ros/indigo -- This workspace overlays: /home/alex/Documents/Projects/rgbdslam_ws/devel;/opt/ros/indigo -- Using PYTHON_EXECUTABLE: /home/alex/anaconda2/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/alex/Documents/Projects/rgbdslam_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.19 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - rgbdslam -- ~~~~~~~~~~~~~ -- +++ processing catkin package: 'rgbdslam' -- ==> add_subdirectory(rgbdslam_v2-indigo) -- SiftGPU library will be used CMake Warning at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "pcl_conversions" with any of the following names:

pcl_conversionsConfig.cmake
pcl_conversions-config.cmake

Add the installation prefix of "pcl_conversions" to CMAKE_PREFIX_PATH or set "pcl_conversions_DIR" to a directory containing one of the above files. If "pcl_conversions" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): rgbdslam_v2-indigo/CMakeLists.txt:55 (find_package)

-- Could not find the required component 'pcl_conversions'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "pcl_conversions" with any of the following names:

pcl_conversionsConfig.cmake
pcl_conversions-config.cmake

Add the installation prefix of "pcl_conversions" to CMAKE_PREFIX_PATH or set "pcl_conversions_DIR" to a directory containing one of the above files. If "pcl_conversions" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): rgbdslam_v2-indigo/CMakeLists.txt:55 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/alex/Documents/Projects/rgbdslam_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/alex/Documents/Projects/rgbdslam_ws/build/CMakeFiles/CMakeError.log". make: *** [cmake_check_build_system] Error 1 Base path: /home/alex/Documents/Projects/rgbdslam_ws Source space: /home/alex/Documents/Projects/rgbdslam_ws/src Build space: /home/alex/Documents/Projects/rgbdslam_ws/build Devel space: /home/alex/Documents/Projects/rgbdslam_ws/devel Install space: /home/alex/Documents/Projects/rgbdslam_ws/install

Running command: "make cmake_check_build_system" in "/home/alex/Documents/Projects/rgbdslam_ws/build"

Invoking "make cmake_check_build_system" failed

Can anyone please tell me how can I install the rgbdslam package? Many thanks.