在Visual Studio中使用OPEN CV [英] OPEN CV to use in visual studio

查看:584
本文介绍了在Visual Studio中使用OPEN CV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是一个普遍的问题,不仅限于使用OpenCV。我必须包括来自第三方的新图书馆。我想使用Visual Studio作为我的编译器。要设置为永久记住设置,我要在工具 - >选项 - >项目和解决方案 - > VC ++目录 - 包括,Lib。中添加包含和库。



我想定义像OPEN_CV_ROOT这样的宏,就像(VSInstallDir)那样。



我怎样才能实现这个目标



我尝试了什么:



我尝试了下面的事情。

1.通过名称OPEN_CV_ROOT创建一个环境变量,并在设置中尝试 - 按预期的方式工作

2.我给出了正确目录的完整路径浏览。

Hi,
This is a general question not just limited to the use of OpenCV. I have to include a new library from a third party. I want to use Visual Studio as my compiler. For setting to permanently remember the setting i am adding the include and library in the Tools->Options->Porjects and Solutions ->VC++ Directories - Include, Lib.

I wanted to define a Macro like OPEN_CV_ROOT just like (VSInstallDir) or something like that.

How can i achieve this

What I have tried:

I tried the following thing.
1. Created an Environment variable by the name OPEN_CV_ROOT and tried that in the setting - Dint work as expected
2. I gave the full path browsing for the proper directory.

推荐答案

谢谢我声明了一个新的环境变量,我可以在Visual Studio中直接使用它。感谢您的建议
Thanks i declared a new environment variable and i could directly use that in Visual Studio. Thanks for the suggestion


这篇关于在Visual Studio中使用OPEN CV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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