python - 在 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.
解决方案
推荐阅读
- vue.js - 为什么从计算切换到方法时,以下 Vue.js 代码不起作用?
- python - 选择 BeautifulSoup .text 方法打印什么?
- java - 如何使具有多个状态的类作为线程安全?
- visual-studio-code - 如何同时换行 - VS Code
- javascript - Json.parse 将数字视为字符串作为有效的 json 对象
- android - 如何在 Android 上阻止或隐藏应用程序访问?
- java - 将 JSON 写入/更新到 URL (www.myjson.com)
- serverless - 使用 serverless.yml 为 dynamoDB 自定义 dynamoDB 模型嵌套结构
- ios - Stripe iOS 更改返回按钮标题
- java - 如何从 Java 中的 SSH DSA 公钥计算指纹?