How to build rtabmap_ros with own opencv instead of ros's opencv

Posted by simon.xm.lee on
URL: http://official-rtab-map-forum.206.s1.nabble.com/How-to-build-rtabmap-ros-with-own-opencv-instead-of-ros-s-opencv-tp3113.html

Hi ,

    I build a opencv version in /usr/local/ and make install to catkin_ws/devel. And I also add below codes in rtabmap_ros/CMakeLists.txt to force rtabmap use my opencv. But it seems rtabmap still use ros's opencv. How do I force rtabmap using my opencv version?

[CMakeLists.txt]

set(OpenCV_INCLUDE_DIRS "/usr/local/include" "/usr/local/include/opencv2")
set(OpenCV_INSTALL_PATH "/usr/local/")



[Log]

OpenCV Error: No CUDA support (The library is compiled without CUDA support) in throw_no_cuda, file /tmp/binarydeb/ros-kinetic-opencv3-3.2.0/modules/core/include/opencv2/core/private.cuda.hpp, line 97
[ INFO] [1494502652.519841544]: Parameters are not saved! (No configuration file provided...)
rtabmap: Saving database/long-term memory... (located at /home/ubuntu/.ros/rtabmap.db)
[rtabmap/rtabmap-2] process has died [pid 22363, exit code -11, cmd /home/ubuntu/catkin_ws/devel/lib/rtabmap_ros/rtabmap --delete_db_on_start odom:=/odom rgb/image:=/kinect2/qhd/image_color_rect depth/image:=/kinect2/qhd/image_depth_rect rgb/camera_info:=/kinect2/qhd/camera_info __name:=rtabmap __log:=/home/ubuntu/.ros/log/f642fe2c-363b-11e7-baca-00044b669d37/rtabmap-rtabmap-2.log].
log file: /home/ubuntu/.ros/log/f642fe2c-363b-11e7-baca-00044b669d37/rtabmap-rtabmap-2*.log


Regards.