compile with different opencv
I would like to compile a ros package skimap_ros with a local version on opencv. All my attempts at overriding the libraries in the CMakeLists.txt have failed ...it keeps taking the opencv from /usr. Does anyone know how to do this in ROS. Thank you\
getting erros of the form:
/usr/include/opencv2/nonfree/features2d.hpp:143:47: error: expected ‘,’ or ‘...’ before ‘<’ token void computeImpl( const Mat& image, vector<keypoint>& keypoints, Mat& descriptors ) const;
path is wrong should be /home/rjn/opencv-2.4.13.3/install/
have tried specifying on catkin build line
-DOpenCV_DIR="-L/home/rjn/opencv-2.4.13.3/install/lib -I/home/rjn/opencv-2.4.13.3/install/include"
and
-DCPPFLAGS="-L/path/to/opencv2.4.9/lib -I/path/to/opencv2.4.9/include"
and overriding directly in CMakeLists
The directory: exist
/home/rjn/opencv-2.4.13.3/install/include/opencv2/nonfree