当前位置:   article > 正文

OpenCV cmake Could not find a package configuration file provided by "OpenCV"

could not find a package configuration file provided by "opencv" with any of

ERROR:

  1. CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  2. Could not find a package configuration file provided by "OpenCV" with any of the following names:
  3. OpenCVConfig.cmake
  4. opencv-config.cmake
  5. Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files.

ANSWER:

adding the line like me

set(OpenCV_DIR /home/robot/tools/opencv-3.2.0/release/)

before the find_package() command in my cmakelists file.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/292899
推荐阅读
相关标签
  

闽ICP备14008679号