Reputation: 1
I try to use opencv3 with ROS kinetic binary packages but when I use catkin_make I have an error that I can't fix !
Result of rospack find opencv3 : /opt/ros/kinetic/share/opencv3
Error: CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "opencv3" with any of the following names:
opencv3Config.cmake
opencv3-config.cmake
Add the installation prefix of "opencv3" to CMAKE_PREFIX_PATH or set "opencv3_DIR" to a directory containing one of the above files. If "opencv3" provides a separate development package or SDK, be sure it has been installed.
Thanks for your help
Upvotes: 0
Views: 3938
Reputation: 1
I used this post for opencv2 : [ROS hydro opencv2 linking error during 'catkin_make'
I put in Cmake: find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
Upvotes: 0
Reputation: 1348
If you want to use OpenCV 3 in ROS Kinetic, you only need to do the following in your CMakeLists.txt: find_package(OpenCV REQUIRED)
, because OpenCV 3 is the default in ROS Kinetic. Pay attention to the capitalization, it must be OpenCV
(i.e. is not going to work!)find_package(opencv)
References: Section 1.2 and 2 at http://wiki.ros.org/opencv3
Upvotes: 1