Re: Error in building

Posted by Jimmy Notron on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Error-in-building-tp1641p1645.html

Thank you for your reply
i did every thing exactly based on instruction
i can fix it by using : cmake --DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel in rtabmap original library ( in main dir not build folder)
but in next step (when running catkin_make command ) i get new error :

##################################################################

[ 84%] Building CXX object rtabmap_ros/CMakeFiles/data_player.dir/src/DbPlayerNode.cpp.o
[ 85%] Building CXX object rtabmap_ros/CMakeFiles/map_assembler.dir/src/MapAssemblerNode.cpp.o
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/rgbd_odometry] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/rgbd_odometry.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/stereo_odometry] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/stereo_odometry.dir/all] Error 2
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/camera] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/camera.dir/all] Error 2
[ 86%] Linking CXX executable /home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/stereo_camera
[ 87%] Linking CXX executable /home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/odom_msg_to_tf
[ 88%] Linking CXX executable /home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/map_optimizer
[ 89%] Linking CXX executable /home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/map_assembler
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/odom_msg_to_tf] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/odom_msg_to_tf.dir/all] Error 2
[ 90%] Linking CXX executable /home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/data_player
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/stereo_camera] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/stereo_camera.dir/all] Error 2
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/map_optimizer] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/map_optimizer.dir/all] Error 2
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/data_player] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/data_player.dir/all] Error 2
/usr/local/lib/libopencv_nonfree.so.2.4.11: undefined reference to `cv::ocl::integral(cv::ocl::oclMat const&, cv::ocl::oclMat&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/Jimmy/catkin_ws/devel/lib/rtabmap_ros/map_assembler] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/map_assembler.dir/all] Error 2
make: *** [all] Error 2



do you have ny idea?
way to go! ;)