当前位置: 首页 > 工具软件 > OpenBLAS > 使用案例 >

win10编译opencv4报错找不到openblas

龙霖
2023-12-01

问题


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) 
Could NOT find LAPACK (missing: LAPACK_LIBRARIES) 
    Reason given by package: LAPACK could not be found because dependency BLAS could not be found.

解决方法

  1. https://github.com/xianyi/OpenBLAS/releases直接下载编译好的openblas,或者根据源码自己编译

  2. ...\opencv-4.5.5\cmake\OpenCVFindOpenBLAS.cmake中添加openblas的路径:

SET(Open_BLAS_INCLUDE_SEARCH_PATHS
	...
 	.../Github/OpenBLAS-0.3.21-x64/include
)

SET(Open_BLAS_LIB_SEARCH_PATHS
	...
	.../Github/OpenBLAS-0.3.21-x64/lib
 )
 类似资料: