OpenCV.exe-系统错误 [英] OpenCV.exe - System Error

查看:217
本文介绍了OpenCV.exe-系统错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使openccv在Visual Studio中工作时,我遇到了一些麻烦.我按照本教程 OpenCV 3 Windows 10安装教程-第1部分-C ++的说明逐步进行操作. /a>,但仍然遇到问题. 我收到一个OpenCV.exe-系统错误,内容如下: 该程序无法启动,因为您的计算机缺少opencv_world320.dll.尝试重新安装该程序以解决此问题. 我在命令提示符下检查了PATH,然后出现了C:\ OpenCV.3.2.0 \ opencv \ build \ x64 \ vc14 \ bin. 我在输出中得到以下内容:'OpenCV.exe' (Win32): Loaded 'C:\Users\tenicho\Documents\Visual Studio 2017\Projects\OpenCV\x64\Debug\OpenCV.exe'. Symbols loaded. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file. The thread 0x2798 has exited with code -1073741515 (0xc0000135). The thread 0x182c has exited with code -1073741515 (0xc0000135). The thread 0x13f0 has exited with code -1073741515 (0xc0000135). The program '[9604] OpenCV.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.

I am running into some trouble while getting openccv to work in visual studio. I followed the instructions step by step from this tutorial OpenCV 3 Windows 10 Installation Tutorial - Part 1 - C++, but still ran into an issue. I get an OpenCV.exe - System Error that says the following: The program can't start because opencv_world320.dll is missing from your computer. Try reinstalling the program to fix this problem. I checked the PATH in command prompt and C:\OpenCV.3.2.0\opencv\build\x64\vc14\bin appears. I get the following in the Output:'OpenCV.exe' (Win32): Loaded 'C:\Users\tenicho\Documents\Visual Studio 2017\Projects\OpenCV\x64\Debug\OpenCV.exe'. Symbols loaded. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file. 'OpenCV.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file. The thread 0x2798 has exited with code -1073741515 (0xc0000135). The thread 0x182c has exited with code -1073741515 (0xc0000135). The thread 0x13f0 has exited with code -1073741515 (0xc0000135). The program '[9604] OpenCV.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.

这是路径指向的文件夹的图片.您可以看到.dll文件在那里.在此处输入图像描述

Here is a picture of the folder that the path leads to. You can see that the .dll file is there.enter image description here

有人遇到这个问题吗?

先谢谢您!

推荐答案

我的32位opencv_world dll丢失了...

My 32bit opencv_world dlls are missing...

在执行以下操作之前,应检查一下opencv/bin/Release中是否没有opencv_world.您的应用程序为32位(根据调试日志中的(Win32)),因此此文件夹也应位于您的路径中.我还将调试文件夹也添加到路径中.

Before you do the following, you should check in your opencv/bin/Release that opencv_world is not there. Your app is 32bits (according to the (Win32) in your debug log), so this folder should also be in your path. I'd also add the debug folder to the path as well.

如果找不到32位opencv_world.dll.这就是我刚才所做的.

If you cannot find the 32bits opencv_world.dll. Here's what I did, just now.

  1. 使用cmake-gui打开opencv-3.2/opencv/sources重新启动.
  2. 运行configure之后,请确保已选中BUILD_open_cv_world(它不在我的计算机上).
  3. 点击生成
  4. 点击打开项目"
  5. 在Visual Studio中,选择构建"->批处理构建"
  6. 选择ALL_BUILD调试+发行版
  7. 点击生成
  8. 要有耐心...
  9. 要非常有耐心.自己泡茶或找点事做. :)
  10. 可能有一种更快的方法来执行此操作,但我不知道.太糟糕了,也许取消选中每个BUILD_选项并仅检查BUILD_open_cv_world即可,但是我不想弄乱我的开放式cv安装.设置所需的时间足够长.
  11. 您现在应该在bin/release和bin/debug文件夹中包含dll.
  1. Restart by opening the opencv-3.2/opencv/sources with cmake-gui.
  2. After running configure, make sure BUILD_open_cv_world is checked (it wasn't on my machine).
  3. Click Generate
  4. Click Open Project
  5. In Visual studio, select Build->Batch Build
  6. Select ALL_BUILD Debug + Release
  7. Click Build
  8. Be very patient...
  9. Be very very patient. Make yourself some tea or find something to do. :)
  10. There is probably a faster way to do this, but I don't know it. That's too bad, maybe unchecking every BUILD_ option and checking only BUILD_open_cv_world does it, but I didn't want to mess my open cv install. It's long enough to set up as it is.
  11. You should now have the dlls in your bin/release and bin/debug folders.

这篇关于OpenCV.exe-系统错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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