我尝试在 Visual Studio 2013 上使用 OpenCV 2.4.10 创建一个项目,但由于以下异常,到目前为止我运气不佳。请建议帮助。 TIA。
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Users\Kndarp\Documents\Visual Studio 2013\Projects\letstryitonemoretime\Debug\letstryitonemoretime.exe'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'letstryitonemoretime.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
First-chance exception at 0x77BC8F05 (ntdll.dll) in letstryitonemoretime.exe: 0xC000007B: %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0x.
Unhandled exception at 0x77BC8F05 (ntdll.dll) in letstryitonemoretime.exe: 0xC000007B: %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0x.
我收到相同的错误消息,因为我的程序试图加载 32 位 DLL 而不是 64 位 DLL。您可以使用以下命令查看您的程序正在尝试加载哪些 DLL依赖步行者 http://www.dependencywalker.com/.
执行以下步骤:
- 打开依赖步行者
- 打开您的可执行文件(文件->打开选择您的可执行文件)
- 确保所有 DLL 使用相同的 CPU 架构。中间窗格列出了程序正在使用的所有 DLL。 CPU 列表明 DLL 是 32 位还是 64 位。它们应该都是一样的。
在我的例子中,其中一个 DLL 是 32 位而不是 64 位,因为我没有将 64 位 DLL 添加到我的环境路径中。我只是将 64 位 DLL 复制到与程序二进制文件相同的文件夹中,错误就消失了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)