我正在尝试在Windows中使用CMake构建Multitarget-tracker。最初我遇到了下面这个警告:
You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.
Call Stack (most recent call first):
CMakeLists.txt:57 (find_package)
我手动指定了OpenCV库的构建版本目录并尝试进行构建。在构建过程中,我参考了这个链接。现在我得到了这个警告:
CMake Warning at CMakeLists.txt:23 (FIND_PACKAGE):
Found package configuration file:
C:/OpenCV/opencv/build/x86/vc12/lib/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
我试图检查OpenCV_FOUND
变量,但是在我再次点击“configure”后,它会自动取消选中。
OpenCV_FOUND
:它是由OpenCVConfig.cmake
设置的变量,用于告诉CMake是否找到了OpenCV。如果它被设置为“FALSE”,这意味着根据包来说你的OpenCV安装无效。你是如何安装/编译OpenCV的?OpenCVConfig.cmake
的内容是什么? - rocambille