[英]OpenCV with Visual Studio 2015 Enterprise
Hello Im trying to use OpenCV 3.0 with Visual Studio 2015 Enterprise but for some reason it is not working, what am I doing wrong ? 您好,我想在Visual Studio 2015 Enterprise中使用OpenCV 3.0 ,但由于某种原因它无法正常工作,我在做什么错?
First of all I have OpenCV extracted in C:\\opencv\\ with 7z archive 首先,我用7z存档在C:\\ opencv \\中提取了OpenCV
Configuration -> All Configuration && Platform -> All Platform
配置->所有配置&&平台->所有平台
Configuration -> Debug && Platform -> All Platform
配置->调试&&平台->所有平台
opencv_ts300d.lib opencv_ts300d.lib
opencv_world300d.lib opencv_world300d.lib
Configuration -> Release && Platform -> All Platform
配置->版本和&平台->所有平台
opencv_ts300.lib opencv_ts300.lib
opencv_world300.lib opencv_world300.lib
Now when I run a sample code I get MSVCP120D.dll is missing and MSVCR120D.dll is missing and cannot open input file 'kernel32.lib' errors. 现在,当我运行示例代码时,我丢失了MSVCP120D.dll,丢失了MSVCR120D.dll,无法打开输入文件'kernel32.lib'错误。 Does anyone had the same problem or know a solution ?
是否有人遇到相同的问题或知道解决方案?
MSVCP120D.dll One option is install redistributable Packages for older Visual Studio. MSVCP120D.dll一种选择是为较旧的Visual Studio安装可再发行软件包。 And include this libs directly in your app from ProgramFiles/MicrosoftSDK/Windows/version/libs.
并直接从ProgramFiles / MicrosoftSDK / Windows / version / libs将这些库包含在您的应用程序中。 This path find simply during the instalation.
该路径仅在安装期间找到。 This is for Visual studio 2013 here Package Here
这是针对Visual Studio 2013的封装
Better is recompile opencv with cmake and visual studio. 更好的方法是使用cmake和Visual Studio重新编译opencv。
Build opencv with Visual Studio 2015 compiler from source first. 首先从源代码使用Visual Studio 2015编译器构建opencv。 This reduce a risk that older framework missing in your computer.
这样可以减少计算机中缺少旧框架的风险。 You need vc14 directory as a source of your libs.
您需要vc14目录作为您的库的源。 Prebuild libs are only for VS 2012 and 2013, which is VC11 and VC12 libs folder under your opencv/build/x64 or x86.
Prebuild库仅适用于VS 2012和2013,即opencv / build / x64或x86下的VC11和VC12库文件夹。 Speps are simple.
飞溅很简单。
Check this picture by picture tutorial. 通过图片教程检查该图片。 Tutorial Here
教程在这里
Also you can use NUGET console Tutorial Nuget opencv 您也可以使用NUGET控制台教程Nuget opencv
要修复“缺少MSVCP120D.dll和MSVCR120D.dll”,请下载它们并将其放在此处C:\\ Windows \\ System32
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.