我有一个在 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有关?
最佳答案
我想您在任何 32 位操作系统上运行 64 位 DLL 都会遇到问题,而不仅仅是 Windows 2000...
关于c++ - 在没有visual studio的电脑上运行opencv dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11551677/