在VS 2012中使用OpenCV的问题 [英] Problem with using OpenCV in VS 2012

查看:67
本文介绍了在VS 2012中使用OpenCV的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys



我在PC上下载并解压缩了OpenCV-2.4.2.exe(最新版本)。在VS 2012中创建一个新的Win32项目,在Project属性中设置所有Paths,在Win7中设置环境变量。

一切都很好看,工作室没有看到任何问题。

当我尝试在调试模式下启动程序时,我得到程序无法启动,因为MSVCR100D .dll是从您的计算机上误导。请尝试重新安装该程序来解决此问题



确定/我下载了MSVCR100D.dll并将其丢入Windows / System32 ..但问题仍然存在。

据我所知,OpenCv的预构建版本适用于VS 2010或更早版本。

如何在Vs中使用Opencv 2012 /我不想从头开始构建opencv库。也许还有另一种更简单的方法???



如果某人有VS 2012的预建2.4.2请给出一个链接。



提前致谢

Hello guys

I downloaded and unzipped OpenCV-2.4.2.exe(the latest version) on my PC. Than created a new Win32 project in VS 2012,set all the Paths in Project properties, set the environmental variables in Win7.
All look fine and studio doesn't see any problems.
When I try to start the program in debugging mode I get the "The program can't start because MSVCR100D.dll is misssing from your computer. Try reinstalling the program to fix this problem"

Ok/ I downloaded the MSVCR100D.dll and threw it in Windows/System32 ...But the problem still remains.
As I understand pre-built version of OpenCv is suited for VS 2010 or earlier versions.
What should I do to use Opencv in Vs 2012/ I wouldn't like to build the opencv libraries from scratch. Maybe is there another simpler way ???

If somebody has the pre-buil 2.4.2 for VS 2012 please give a link.

Thanks in advance

推荐答案

这是该库的调试版本。对于配置发布,您需要没有D的版本。这只是可能出现的问题之一。



不幸的是,你的问题意味着只有所需的平台及其可执行文件是不够的,你还需要安装和重新分发名为Visual C ++可再发行的Visual Studio 2012的附加包。请参阅:

http://www.microsoft.com /en-us/download/details.aspx?id=30679 [ ^ ]。



对于每个指令集架构,Visual Studio的所有版本都存在此类可再发行软件包分开。



-SA
This is a debug version of the library. For the configuration "Release", you need to version of it without 'D'. This is only one of possible problems.

Unfortunately, your problem means that having just the required platform and its executable files is not enough, you will also need to install and re-distribute additional package called "Visual C++ redistributable for Visual Studio 2012". Please see:
http://www.microsoft.com/en-us/download/details.aspx?id=30679[^].

Such redistributable packages exist for all versions of the Visual Studio for every instruction-set architecture, separately.

—SA


看看: OpenCV安装指南 [ ^ ]



使用 CMake [ ^ ]非常简单。



最好的问候

Espen Harlinn
Have a look at: OpenCV Installation Guide[^]

Building it yourself using CMake[^] is pretty straight forward.

Best regards
Espen Harlinn


目前是libr没有提供使用Visual Studio 2012(vc11)的OpenCV的Aries。因此,您必须在发布配置中运行代码。我还阅读了一些人使用Visual Studio 2010或Visual C ++ 2010 Express的备用安装中的MSVCR100D.dll。看看它是否适合你。
Currently the libraries for OpenCV with Visual Studio 2012 (vc11) are not provided. So you will have to run your code in release configuration. I've also read a few people using the MSVCR100D.dll from an alternate installation of Visual Studio 2010 or Visual C++ 2010 Express. See if that works for you.


这篇关于在VS 2012中使用OpenCV的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆