Error in building image_geometry package in ROS Indigo in Raspberry Pi

asked 2017-10-16 03:43:18 -0600

user_123 gravatar image

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.

edit retag flag offensive close merge delete

Comments

You could e.g. provide symbolic link to the actual installation of opencv with ln -s command.

l4ncelot gravatar image l4ncelot  ( 2017-10-27 07:08:04 -0600 )edit