Re: Error compiling with OpenCV (xfeatures2d.h)

Posted by matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Error-compiling-with-OpenCV-xfeatures2d-h-tp508p514.html


Building rtabmap_ros with OpenCV 3 issue on Indigo

After some tests on a fresh Ubuntu 14.04, using OpenCV 3 with ROS-Indigo binaries is not recommended (use OpenCV 2.4.x instead). On Indigo, cv_bridge binaries (on which rtabmap_ros depends) are built against 2.4.

If OpenCV 3 is really required, to avoid conflict when building rtabmap_ros with OpenCV 3, I suggest to uninstall cv_bridge package and all packages depended on it  (even OpenCV 2.4 binaries), then get all these packages from source on GitHub and build them in your catkin workspace.