找不到“ OpenCV”提供的软件包配置文件

时间:2020-08-04 06:36:03

标签: c++ opencv cmake

我已经在CMakeLists.txt和〜/ .bashrc中设置了OpenCV_DIR 但是我的计算机仍然无法纠正我的opencv路径

By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.

shell cmake bashrc

0 个答案:

没有答案