每次我尝试构建和安装任何依赖于 OpenCV 的库时,该库的 cmake 都会引发以下错误,
-- OpenCV ARCH:
-- OpenCV RUNTIME:
-- OpenCV STATIC: OFF
CMake Warning at /home/wizviz/opencv-2.4.9/cmake/OpenCVConfig.cmake:161 (message):
Found OpenCV Windows Pack but it has not binaries compatible with your
configuration.
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)
CMake Error at CMakeLists.txt:4 (find_package):
Found package configuration file:
/home/wizviz/opencv-2.4.9/cmake/OpenCVConfig.cmake
but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.
-- Configuring incomplete, errors occurred!
See also "/home/wizviz/dataset-tools-master/release/CMakeFiles/CMakeOutput.log".
是否与将 OpenCV 添加到 Ubuntu 16.04 环境有关?我该如何解决?