Error in building

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in building

Jimmy Notron
hello
im wondering if i can ask question

im trying to build rtabmap from source exactly like official instructions but at the last when im typing "catkin_make" command i face with this error:


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


CMake Error at rtabmap_ros/CMakeLists.txt:21 (find_package):
  By not providing "FindRTABMap.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "RTABMap", but
  CMake did not find one.

  Could not find a package configuration file provided by "RTABMap"
  (requested version 0.11.8) with any of the following names:

    RTABMapConfig.cmake
    rtabmap-config.cmake

  Add the installation prefix of "RTABMap" to CMAKE_PREFIX_PATH or set
  "RTABMap_DIR" to a directory containing one of the above files.  If
  "RTABMap" provides a separate development package or SDK, be sure it has
  been installed.


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


how can i fix it?
way to go! ;)
Reply | Threaded
Open this post in threaded view
|

Re: Error in building

matlabbe
Administrator
You are missing the step 2.

cheers
Reply | Threaded
Open this post in threaded view
|

Re: Error in building

Jimmy Notron
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! ;)
Reply | Threaded
Open this post in threaded view
|

Re: Error in building

Jimmy Notron
In reply to this post by Jimmy Notron
fixed
way to go! ;)
Reply | Threaded
Open this post in threaded view
|

Re: Error in building

Pankaj-Baranwal
How did you fix it?
I am facing the same problem.