ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
For anyone still having the same issue I found another way of solving it. I assume that you have installed opencv from source in /usr/local
1) Locate ROS version of opencv files in /opt/ros/kinetic/include/opencv-3.2.0-dev
and /opt/ros/kinetic/lib.
2) Copy and paste all files from /usr/local/include/opencv2
to /opt/ros/kinetic/include/opencv-3.2.0-dev/opencv2
3) Do the same for /user/local/lib
and /opt/ros/kinetic/lib.
(Copy only opencv related lib files)
Assuming that you carried out above steps properly your contrib modules should compile fine now without the need of tweaking with cmake files at all.
2 | No.2 Revision |
For anyone still having the same issue I found another way of solving it. I assume that you have installed opencv from source in /usr/local
1) Locate ROS version of opencv files in /opt/ros/kinetic/include/opencv-3.2.0-dev
and /opt/ros/kinetic/lib.
2) Copy and paste all files from /usr/local/include/opencv2
to /opt/ros/kinetic/include/opencv-3.2.0-dev/opencv2
3) Do the same for /user/local/lib
and /opt/ros/kinetic/lib.
(Copy only opencv related lib files)
Assuming that you carried out above steps properly your code involving packages from contrib modules module including the one mentioned above (selectROI case) should compile fine now without the need of tweaking with cmake files at all.
3 | No.3 Revision |
Edit : Work around not a solution
For anyone still having the same issue I found another way of solving it. I assume that you have installed opencv from source in /usr/local
1) Locate ROS version of opencv files in /opt/ros/kinetic/include/opencv-3.2.0-dev
and /opt/ros/kinetic/lib.
2) Copy and paste all files from /usr/local/include/opencv2
to /opt/ros/kinetic/include/opencv-3.2.0-dev/opencv2
3) Do the same for /user/local/lib
and /opt/ros/kinetic/lib.
(Copy only opencv related lib files)
Assuming that you carried out above steps properly your code involving packages from contrib module including the one mentioned above (selectROI case) should compile fine now without the need of tweaking with cmake files at all.