Error while compiling latest Rtabmap version

Posted by g.bartoli on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Error-while-compiling-latest-Rtabmap-version-tp1423.html

Hi Mathieu,
I just pulled the latest RTAB-Map version 0.11.7 from the github repository. With the usual git pull master and make procedure, I succesfully compiled the rtabmap library, but when I tried to build the ROS package with catkin_make, I received this error:
CMakeFiles/camera.dir/src/CameraNode.cpp.o: In function `CameraWrapper::setParameters(int, double, std::string const&, bool)':
CameraNode.cpp:(.text._ZN13CameraWrapper13setParametersEidRKSsb[_ZN13CameraWrapper13setParametersEidRKSsb]+0x8b0):
    undefined reference to `rtabmap::CameraImages::CameraImages(std::string const&, float, rtabmap::Transform const&)'
CameraNode.cpp:(.text._ZN13CameraWrapper13setParametersEidRKSsb[_ZN13CameraWrapper13setParametersEidRKSsb]+0xb77):
    undefined reference to `rtabmap::CameraThread::CameraThread(
        rtabmap::Camera*, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/vision/catkin_ws/devel/lib/rtabmap_ros/camera] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/camera.dir/all] Error 2
I am using ROS Indigo and previously RTAB-Map 0.10.10 was working fine, I installed all the required libraries using the procedure explained here.
I think it's a linker problem, but it seems related to something missing from rtabmap library and not depending on other components outside rtabmap... Do you have an idea on what is the problem here?

Many thanks,
Guido
~Guido