Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 将OpenBLAS包含和库搜索路径链接到CMake for OpenCV_C++_Cmake_Openblas_Lapacke - Fatal编程技术网

C++ 将OpenBLAS包含和库搜索路径链接到CMake for OpenCV

C++ 将OpenBLAS包含和库搜索路径链接到CMake for OpenCV,c++,cmake,openblas,lapacke,C++,Cmake,Openblas,Lapacke,我试着在一定程度上遵循本教程: 因为我有个问题 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 Ope

我试着在一定程度上遵循本教程:

因为我有个问题

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文件夹。

您是否构建/安装了OpenBLAS?为什么要下载BLAS的源代码?只要你能安装就可以了?@squareskittles:我认为,通常二进制文件只提供dll,而不是静态库,所以如果你需要另一个需要openblas编译的库,他们会要求提供静态库。此外,如果您想在项目中使用静态库,则需要有静态库,如果您要从源代码为您的机器构建静态库,则可以获得这些静态库。@NitinKumar包含文件CMakeLists.txt和不同平台的Makefiles。您可以获得OpenBLAS的静态库。您是否构建/安装了OpenBLAS?为什么要下载BLAS的源代码?只要你能安装就可以了?@squareskittles:我认为,通常二进制文件只提供dll,而不是静态库,所以如果你需要另一个需要openblas编译的库,他们会要求提供静态库。此外,如果您想在项目中使用静态库,则需要有静态库,如果您要从源代码为您的机器构建静态库,则可以获得这些静态库。@NitinKumar包含文件CMakeLists.txt和不同平台的Makefiles。您可以获得OpenBLAS的静态库。