【发布时间】:2019-11-28 20:59:50
【问题描述】:
我从他们的 github 和他们的网站安装了 OpenCV 和 OpenCV contrib 4.1.2,以便在 Visual Studio 中使用他们的 dnn 模块。我一直无法让 CMake 配置和生成任何必要的内容。
这是我遇到的错误:
Detected processor: AMD64
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.2-libjpeg-turbo
IPPICV: Download: ippicv_2019_win_intel64_20180723_general.zip
found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
at: C:/opencv+contrib/3rdparty/ippicv/ippicv_win/icv
found Intel IPP Integration Wrappers sources: 2019.0.0
at: C:/opencv+contrib/3rdparty/ippicv/ippicv_win/iw
Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
Could NOT find BLAS (missing: BLAS_LIBRARIES)
LAPACK requires BLAS
A library with LAPACK API not found. Please specify library location.
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
CMake Error at cmake/OpenCVModule.cmake:289 (message):
No modules has been found: C:/opencv_contrib-4.1.2
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:371 (_glob_locations)
modules/CMakeLists.txt:7 (ocv_glob_modules)
ADE: Download: v0.1.1f.zip
OpenCV Python: during development append to PYTHONPATH: C:/opencv+contrib/python_loader
FFMPEG: Download: opencv_videoio_ffmpeg.dll
FFMPEG: Download: opencv_videoio_ffmpeg_64.dll
FFMPEG: Download: ffmpeg_version.cmake
Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/opencv/opencv/sources/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
opencv_dnn: filter out cuda4dnn source code
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:944 (include)
我在谷歌搜索时发现的另一篇帖子说 Python 路径可能不正确,但是当我在 cmd 中输入 python --version 时,它告诉我 Python 3.7.4
【问题讨论】:
-
你需要 contrib 中的额外模块吗?几周前我构建了 opencv 4.1.2,当我使用额外的模块构建时,我也遇到了很多问题。我在没有额外模块的情况下构建它,目前我没有遇到任何问题
-
您尝试为哪种语言构建 OpenCV?
-
是的,我需要 dnn 模块,它在没有贡献的情况下抛出了 100 多个编译错误。
-
我正在尝试为 C++ 构建它
-
您是否尝试过通过vcpkg 安装openCV。我已经通过 vcpkg 安装了它,但我不确定是否在那里构建了额外的模块。