简体   繁体   English

如何在Visual Studio 2010中部署基于OpenCV的独立项目?

[英]How to deploy a standalone project that is based on OpenCV in Visual Studio 2010?

I have a solution in VS 2010 that calls several OpenCV functions. 我在VS 2010中有一个解决方案,可以调用多个OpenCV函数。 Now I want to deploy (release) this project to use in another machine that doesn't have OpenCV. 现在,我想部署(发布)此项目,以在没有OpenCV的另一台计算机上使用。 I don't want to install OpenCV on the other machine. 我不想在另一台计算机上安装OpenCV。

I know that I need several dll files, is there any automatic method that can collect all the desired files and put them together with the released .exe file so I can just send/copy this folder ? 我知道我需要几个dll文件,是否有任何自动方法可以收集所有需要的文件,并将它们与发布的.exe文件放在一起,这样我就可以发送/复制该文件夹了?

Many thanks, 非常感谢,

If you have the solution in VS2010 you can look at the project Properties and check which OpenCV libraries the project is being linked with, and then ship those DLLs along with your application. 如果您在VS2010中具有解决方案,则可以查看项目属性,并检查与该项目链接的OpenCV库,然后将这些DLL与您的应用程序一起提供。 It's a 2 min work. 这是2分钟的工作。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM