构建 MultiTarget-tracker 库时出现 CMake 错误

CMake error while building MultiTarget-tracker library

我正在尝试在 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' 后,它会自动取消检查。

您不应该手动检查 OpenCV_FOUND:它是由 OpenCVConfig.cmake 设置的一个变量,用于告诉 CMake 是否找到了 OpenCV。

它被设置为 FALSE 的事实表明您的 OpenCV 安装根据软件包无效。正确安装 OpenCV 是解决方案。