首页 > 解决方案 > 将 OpenBLAS 包含和库搜索路径链接到 CMake for OpenCV

问题描述

我正在尝试遵循本教程:https ://github.com/opencv/opencv/issues/12957

因为我遇到的问题是

found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
at: C:/Dev/opencv/3rdparty/ippicv/ippicv_win/icv
found Intel IPP Integration Wrappers sources: 2019.0.0
at: C:/Dev/opencv/3rdparty/ippicv/ippicv_win/iw
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:/Dev/opencv/Downloads/opencv_contrib-4.1.2
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:371 (_glob_locations)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

但即使在 CMake 中链接它之后,我也会遇到错误。

我为他们的 github 克隆了 OpenBLAS 并将其放在列出的目录中,然后我下载了 lapacke.dll 并将其移动到具有相同文件路径的 OpenBLAS 文件夹中。

但是,我没有看到 OpenBLAS 文件夹中的任何 include 或 lib 文件夹。

标签: c++cmakeopenblaslapacke

解决方案


推荐阅读