在不同计算机上运行OpenCV项目exe
我使用 Visual Studio 2008
构建了一个 OpenCV
项目。当我从项目文件夹运行 exe 时,它在我的计算机(Windows 7)上完美运行。我想在任何 Windows 7 计算机上运行此 exe。我已将所有 dll 包含在 exe 文件夹中。我的 OpenCV 项目加载了一个图像,因此我包含了该图像。在项目中,我已从 C 驱动器加载图像(“C://mypic.jpg”),因此当我在另一台计算机上运行 exe 时,我需要将图像移动到该 C 驱动器。
我已经完成了所有这些,当我尝试在没有 Visual Studio 或任何编程环境的另一台计算机上运行它时,我收到此错误。
“应用程序无法启动,因为其并行配置不正确。请参阅应用程序事件日志或使用命令行 sxstrace.exe 工具了解更多详细信息”
有人可以帮我解决这个问题吗?提前致谢。
I have built an OpenCV
project with Visual Studio 2008
. When I run the exe from the project folder, it runs perfectly on my machine (windows 7). I would like to run this exe on any windows 7 machine. I have included all the dlls in the folder with the exe. My OpenCV
project loads an image, so I have included that image. In the project I have loaded the image from the C drive("C://mypic.jpg") so when I am running the exe on a different machine I will need to move the image to that C drive.
I have done all this and when I try run it on a different machine that does not have visual studio or any programming enivironment, I get this error.
"The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more details"
Can anyone helpme with this? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您可能需要安装 Visual Studio 2008 可再发行 包。在 Windows 上部署应用程序的正确方法是创建安装程序。如果您有 Visual Studio 2008 Professional,您应该能够为您的项目创建安装程序。 此处 是一个很好的入门指南。如果您需要免费的替代方案来创建安装程序,请查看 NSIS 开源安装程序生成器。
I imagine you'll probably need to install the Visual Studio 2008 Redistributable package. The correct way to deploy an application on Windows is to create an installer. If you have Visual Studio 2008 Professional, you should be able to create an installer for your project. Here is a good guide to get you started. If you need a free alternative for creating installers, check out the NSIS opensource installer generator.