Error in building image_geometry package in ROS Indigo in Raspberry Pi
I am following this link for installing ROS Indigo in Raspberry Pi with Jessie. I have OpenCV 3 installed in /usr/local/ as instructed in this page. Now After executing the command
sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo
I am getting an error while building the package image_geometry
CMake Error in CMakeLists.txt:
Imported target "opencv_xphoto" includes non-existent path
"/usr/include/opencv"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
I can understand the error is coming because it is not finding OpenCV under /usr/include/, instead it is at /usr/local/include/. I am not sure how to provide a path so that it can recognize the correct path and get rid of the linking issue.
You could e.g. provide symbolic link to the actual installation of
opencv
withln -s
command.