首页 > 解决方案 > 在 Windows 10 C++ 版本上构建和安装 OpenCV 4.3.0 失败。如何修复 Visual Studio Community 2019 报告的错误?

问题描述

这在 VS 社区的输出窗口中报告:

13>   Creating library ../opencv/build/lib/Release/opencv_core430.lib and object ../opencv/build/lib/Release/opencv_core430.exp
22>filters_utils.c
22>huffman_encode_utils.c
22>huffman_utils.c
22>quant_levels_dec_utils.c
22>quant_levels_utils.c
22>random_utils.c
22>rescaler_utils.c
22>thread_utils.c
22>utils.c
13>hal_internal.obj : error LNK2019: unresolved external symbol cblas_sgemm referenced in function "int __cdecl lapack_gemm<float>(float const *,unsigned __int64,float const *,unsigned __int64,float,float const *,unsigned __int64,float,float *,unsigned __int64,int,int,int,int)" (??$lapack_gemm@M@@YAHPEBM_K01M01MPEAM1HHHH@Z)
13>hal_internal.obj : error LNK2019: unresolved external symbol cblas_dgemm referenced in function "int __cdecl lapack_gemm<float>(float const *,unsigned __int64,float const *,unsigned __int64,float,float const *,unsigned __int64,float,float *,unsigned __int64,int,int,int,int)" (??$lapack_gemm@M@@YAHPEBM_K01M01MPEAM1HHHH@Z)
13>hal_internal.obj : error LNK2019: unresolved external symbol cblas_cgemm referenced in function "int __cdecl lapack_gemm_c<float>(float const *,unsigned __int64,float const *,unsigned __int64,float,float const *,unsigned __int64,float,float *,unsigned __int64,int,int,int,int)" (??$lapack_gemm_c@M@@YAHPEBM_K01M01MPEAM1HHHH@Z)
13>hal_internal.obj : error LNK2019: unresolved external symbol cblas_zgemm referenced in function "int __cdecl lapack_gemm_c<float>(float const *,unsigned __int64,float const *,unsigned __int64,float,float const *,unsigned __int64,float,float *,unsigned __int64,int,int,int,int)" (??$lapack_gemm_c@M@@YAHPEBM_K01M01MPEAM1HHHH@Z)
13>..\opencv\build\bin\Release\opencv_core430.dll : fatal error LNK1120: 4 unresolved externals
13>Done building project "opencv_core.vcxproj" -- FAILED.

这是来自 VS Community 中的错误窗口: 这是来自 VS Community 中的错误窗口

标签: pythonc++copencv

解决方案


推荐阅读