我正在尝试使用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库的构建版本目录,并尝试构建。我在建造时提到了link。我现在收到这个警告:
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'后,它会自动取消选中。
答案 0 :(得分:1)
您不应该手动检查OpenCV_FOUND
:它是由OpenCVConfig.cmake
设置的变量,用于告诉CMake是否找到了OpenCV。
它设置为FALSE
的事实是根据软件包安装OpenCV无效的标志。正确安装OpenCV是解决方案。