Opencv配置常见问题:

Opencv配置常见问题:

1、error LNK2019: 无法解析的外部符号

1>Histogram1D.obj : error LNK2019: 无法解析的外部符号 "void __cdecl cv::calcHist(class cv::Mat const *,int,int const *,class cv::_InputArray const &,class cv::_OutputArray const &,int,int const *,float const * *,bool,bool)" (?calcHist@cv@@YAXPBVMat@1@HPBHABV_InputArray@1@ABV_OutputArray@1@H1PAPBM_N5@Z),该符号在函数 "public: class cv::Mat __thiscall Histogram1D::getHistogram(class cv::Mat const &)" (?getHistogram@Histogram1D@@QAE?AVMat@cv@@ABV23@@Z) 中被引用

1>Histogram1D.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray@cv@@QAE@ABVMat@1@@Z),该符号在函数 "public: class cv::Mat __thiscall Histogram1D::getHistogram(class cv::Mat const &)" (?getHistogram@Histogram1D@@QAE?AVMat@cv@@ABV23@@Z) 中被引用
1>Histogram1D.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall cv::_OutputArray::_OutputArray(class cv::Mat &)" (??0_OutputArray@cv@@QAE@AAVMat@1@@Z),该符号在函数 "public: class cv::Mat __thiscall Histogram1D::getHistogram(class cv::Mat const &)" (?getHistogram@Histogram1D@@QAE?AVMat@cv@@ABV23@@Z) 中被引用
1>Histogram1D.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QAEXABV12@@Z),该符号在函数 "public: __thiscall cv::Mat::Mat(class cv::Mat const &)" (??0Mat@cv@@QAE@ABV01@@Z) 中被引用
1>Histogram1D.obj : error LNK2019: 无法解析的外部符号 "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z),该符号在函数 "public: __thiscall cv::Mat::Mat(class cv::Mat const &)" (??0Mat@cv@@QAE@ABV01@@Z) 中被引用

。。。。。。

需要把x86的编译器改为x64。

如果没有x64点击新建。

2、运行弹出找不到msvcp140d.dll、concrt140d.dll、ucrtbased.dll。。。

因为opencv配置所需4个库文件msvcp140d.dll、concrt140d.dll、ucrtbased.dll。。。

这个可以添加博主扣扣1500916937或私信博主 找博主大大发 (ps:博主大大有看见的话会回的)

也可点击https://download.csdn.net/download/sm16111/10568234直接下载

下载解压后 把4个文件复制到c:\window\System32 目录下

扫描二维码关注公众号,回复: 2426788 查看本文章

猜你喜欢

转载自blog.csdn.net/sm16111/article/details/81238857