我在使用openccv在visual studio中工作时遇到了一些麻烦。我按照本教程OpenCV 3 Windows 10 Installation Tutorial - Part 1 - C++中的说明一步一步地进行了操作,但仍然遇到了问题。
我得到一个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'.
这是路径所指向的文件夹的图片。您可以看到.dll文件在那里。enter image description here
有人有这个问题吗?
提前谢谢你!
答案 0 :(得分:0)
我的32位opencv_world dll丢失......
在执行以下操作之前,您应该检查opencv / bin / Release中是否存在opencv_world。您的应用程序是32位(根据调试日志中的(Win32)),因此该文件夹也应该在您的路径中。我还将调试文件夹添加到路径中。
如果找不到32位opencv_world.dll。这就是我刚刚做的。