Re: cannot find libfovis when compiling
Posted by
matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/cannot-find-libfovis-when-compiling-tp4932p4948.html
Hi Alex,
The PATH seems wrong. After sourcing setup.bash in catkin_ws/devel (see ros
instructions), the PATH should look more like this (on my system):
$ env | grep PATH
PATH=/home/mathieu/catkin_ws/devel/bin:/opt/ros/kinetic/bin...
The "catkin_ws/devel/bin" is before "/opt/ros/kinetic/bin", which is used by cmake to find the libraries built in your catkin workspace.
Maybe the isolated build doesn't create "catkin_ws/devel/bin". I don't use isolated builds so I am not sure how libraries can be linked from outside the workspace.
Another option is to set the path of libfovis and loam_velodyne config files:
$ cd rtabmap/build
$ cmake -Dloam_velodyne_DIR=~/catkin_ws/devel/share/loam_velodyne/cmake -Dlibfovis_DIR=~/catkin_ws/devel/share/libfovis/cmake
cheers,
Mathieu