Re: Compile RTAB-Map with additional libraries

Posted by g.bartoli on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Compile-RTAB-Map-with-additional-libraries-tp731p739.html

4) Perfect, it worked, now RTAB-Map cmake finds cvsba, too!
Furthermore, I used the GTSAM git code you suggested and now RTAB-Map library compiles successfully. :)

I proceeded on compiling rtabmap_ros inside catkin_ws, it needed some dependencies like octomap and move_base, I installed them and it went fine except for this error:
CMake Error at rtabmap_ros/CMakeLists.txt:20 (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.10.9) 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.
Do I have to change something inside CMakeLists to make it find the compiled rtabmap library?

Many thanks

PS: At the end of this, if you need, I can prepare you a walkthrough of what is needed for a complete compilation to may be included in your page, since there I didn't find all these steps for external libraries you kindly provided to me.
~Guido