【发布时间】:2012-07-18 23:08:07
【问题描述】:
我有一个在 VS2010 中使用 opencv 2.4 生成的 64 位 dll (Imageloc.dll)。在 Windows 7 上调用它时工作正常。 但是,当我在 Windows 2000 服务器上运行它时,它给了我
未处理的异常:System.IO.FileNotFoundException:无法加载文件或程序集“Imageloc.dll”或其依赖项之一。指定的模块无法找到。 在 Test.Program.Main(String[] args)
我在 Windows 2000 上设置了如下环境路径值,就像 Windows 7 一样
C:\Applications\opencv\build\x64\vc10\bin; C:\Applications\opencv\build\common\tbb\intel64\vc10;
openCv 2.4 产品安装在 c:\Applications\opencv
Visual Studio 安装在 Windows 7 上,但未安装在 Windows 2000 上。
感谢任何帮助。
更新: 我在另一台装有 Windows 7 但没有 Visual Studio 的计算机上运行它,它给了我同样的错误。我用 Visual Studio 在 Windows 2000 上运行它,它工作正常。 Visual Studio 如何使其工作?
dll的程序是用c++-cli编写的,编译在/MD中。 会不会和 C 运行时库的某些 dll 或 CLR dll 有关?
【问题讨论】:
标签: c++ visual-studio-2010 opencv c++-cli