introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
974 stars 557 forks source link

when installing, catkin_make error #24

Closed DoranLyong closed 8 years ago

DoranLyong commented 9 years ago

Hi, when I followed section to install, I meet some problem in last .

section2

I installed 'RTAB-Map standalone libraries' in ' catkin_ws/devel ' folder devel

problem

And, finally did git clone in catkin_ws . But, When I typed $ catkine_make ( I didn't check out from 'catkin_ws') I got this error beta@alpa:~$ cd catkin_ws/ beta@alpa:~/catkin_ws$ git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros Cloning into 'src/rtabmap_ros'... remote: Counting objects: 3329, done. remote: Compressing objects: 100% (45/45), done. remote: Total 3329 (delta 18), reused 0 (delta 0), pack-reused 3284 Receiving objects: 100% (3329/3329), 2.24 MiB | 566.00 KiB/s, done. Resolving deltas: 100% (2434/2434), done. Checking connectivity... done.

beta@alpa:~/catkin_ws$ catkin_make Base path: /home/beta/catkin_ws Source space: /home/beta/catkin_ws/src Build space: /home/beta/catkin_ws/build Devel space: /home/beta/catkin_ws/devel Install space: /home/beta/catkin_ws/install

Running command: "cmake /home/beta/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/beta/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/beta/catkin_ws/install -G Unix Makefiles" in "/home/beta/catkin_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/beta/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/beta/catkin_ws/devel;/opt/ros/indigo -- This workspace overlays: /home/beta/catkin_ws/devel;/opt/ros/indigo -- 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/beta/catkin_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.14 -- BUILD_SHARED_LIBS is on /opt/ros/indigo/share/catkin/cmake/em/order_packages.cmake.em:23: error: <type 'exceptions.RuntimeError'>: Multiple packages found with the same name "rtabmap":

-- Configuring incomplete, errors occurred! See also "/home/beta/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/beta/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

what is this error??? I looked for this issue: https://github.com/introlab/rtabmap_ros/issues/11 because I thought It is similar . but , I think it isn't

Please, give me a answer

matlabbe commented 9 years ago

rtabmap libraries should not be extracted in catkin/devel space. By "install in catkin/devel" I mean the CMAKE_INSTALL_PREFIX below. From the step one of rtabmap_ros installation instructions:

$ cd ~
$ git clone https://github.com/introlab/rtabmap.git rtabmap
$ cd rtabmap/build
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..  [<---double dots included]
$ make -j4
$ make install

rtabmap is extracted in Home folder, then on "make install", it is installed in catkin_ws/devel.

DoranLyong commented 9 years ago

Ah, Thanks. I didn't understand what you mean well.

I do $ sudo apt-get remove ros-indigo-rtabmap ros-indigo-rtabmap

and than reinstall . the install is successful