[英]I can't run openCV2.3.1 with VS2010 because opencv_core231d.dll was not found
I installed openCV2.3.1 with VS2010. 我在VS2010上安装了openCV2.3.1。 In VC++ Directories I set Library Directories to
C:\\opencv\\build\\x86\\vc10\\lib
. 在VC ++目录中,我将库目录设置为
C:\\opencv\\build\\x86\\vc10\\lib
。 My code has no error but when I try to build it VC++2010 displays this error 我的代码没有错误,但是当我尝试构建它时,VC ++ 2010显示此错误
This application has failed strat because opencv_core231d.dll was not found.
由于找不到opencv_core231d.dll,此应用程序失败了。 Reinstall the application may fix this problem.
重新安装该应用程序可能会解决此问题。
How do I setup openCV2.3.1 with VC++2010 to find the .dll? 如何使用VC ++ 2010设置openCV2.3.1以查找.dll?
您是否看过最新的OpenCV文档中的Microsoft Visual Studio教程 ?
You need to build the openCV2.3.1 yourself. 您需要自己构建openCV2.3.1。 We use cmake build tool in our project.
我们在项目中使用cmake构建工具。 And you should copy the
opencv_core231d.dll
to your exe
directory so that your executable file can find the dll. 并且您应该将
opencv_core231d.dll
复制到您的exe
目录中,以便您的可执行文件可以找到该dll。 Here is the Complete Installation guide for OpenCV. 这是OpenCV的完整安装指南。
Download and install the 2.3.1 superpack for Windows and configure Visual Studio according to this post . 下载并安装适用于Windows的2.3.1 超级程序包 ,并根据此文章配置Visual Studio。 Even though the instructions are for the 2.3 version, the procedure remains the same and you just need to take care to use the appropriate paths and file names of v2.3.1 when following the steps.
即使说明是针对2.3版本的,该过程也相同,并且在执行以下步骤时,您只需要注意使用v2.3.1的适当路径和文件名即可。
Alternatively you could try to follow Andrey's recommendation , but I haven't test it yet. 另外,您可以尝试遵循Andrey的建议 ,但我尚未对其进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.