CMake Warning at /opt/projects/tensorrt-alpha/cmake/common-x86.cmake:90 (find_package): 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. Call Stack (most recent call first): CMakeLists.txt:18 (include)
时间: 2023-11-30 09:04:28 浏览: 264
cmake-3.30.1-linux-x86_64.sh.zip
这是一个CMake的警告提示,意思是在CMAKE_MODULE_PATH中没有提供"Findopencv.cmake"文件,因此CMake无法找到"opencv"的包配置文件。解决方法是将"opencv"的安装路径添加到CMAKE_PREFIX_PATH中,或者设置"opencv_DIR"为包含"opencvConfig.cmake"或"opencv-config.cmake"文件的目录。如果"opencv"提供了单独的开发包或SDK,请确保已经安装。
阅读全文