如何在Visual Studio 2010中部署基于OpenCV的独立项目? [英] How to deploy a standalone project that is based on OpenCV in Visual Studio 2010?

查看:87
本文介绍了如何在Visual Studio 2010中部署基于OpenCV的独立项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2010中有一个解决方案,它调用了几个OpenCV函数.现在,我想部署(发布)此项目以在没有OpenCV的另一台计算机上使用.我不想在另一台计算机上安装OpenCV.

I have a solution in VS 2010 that calls several OpenCV functions. Now I want to deploy (release) this project to use in another machine that doesn't have OpenCV. I don't want to install OpenCV on the other machine.

我知道我需要几个dll文件,是否有任何自动方法可以收集所有所需文件并将它们与已发布的.exe文件放在一起,以便我可以发送/复制此文件夹?

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 ?

非常感谢,

推荐答案

如果您在VS2010中具有解决方案,则可以查看项目属性并检查与该项目链接的OpenCV库,然后将这些DLL与你的申请.这是2分钟的工作.

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. It's a 2 min work.

这篇关于如何在Visual Studio 2010中部署基于OpenCV的独立项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆