当前位置:   article > 正文

win10编译opencv4报错找不到openblas_could not find openblas include. turning openblas_

could not find openblas include. turning openblas_found off

问题


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
  • 2
  • 3
  • 4
  • 5
  • 6

解决方法

  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
 )
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/119820
推荐阅读
相关标签
  

闽ICP备14008679号