Property Manger,配置我们自己的lib.
来源:互联网 发布:h是几g网络 编辑:程序博客网 时间:2024/06/05 21:07
Property Manger. You can bring up this with View ‣ Property Pages. Expand it and you can see the existing rule packages (calledProporty Sheets).
The really useful stuff of these is that you may create a rule packageonce and you can later just add it to your new projects. Create it once and reuse it later,相当于eclipse中的自定义lib 库We want to create a newProperty Sheet that will contain all the rules that the compiler and linker needs to know. Of course we will need a separate one for the Debug and the Release Builds. Start up with the Debug one as shown in the image below:
Use for example the OpenCV_Debug name. Then by selecting the sheet Right Click ‣ Properties. In the following I will show to set the OpenCV rules locally, as I find unnecessary to pollute projects with custom rules that I do not use it. Go the C++ groups General entry and under the“Additional Include Directories” add the path to your OpenCV include. If you don’t have“C/C++” group, you should add any .c/.cpp file to the project.
$(OPENCV_DIR)\..\..\include
When adding third party libraries settings it is generally a good idea to use the power behind the environment variables. The full location of the OpenCV library may change on each system. Moreover, you may even end up yourself with moving the install directory for some reason. If you would give explicit paths inside your property sheet your project will end up not working when you pass it further to someone else who has a different OpenCV install path. Moreover, fixing this would require to manually modifying every explicit path. A more elegant solution is to use the environment variables. Anything that you put inside a parenthesis started with a dollar sign will be replaced at runtime with the current environment variables value. Here comes in play the environment variable setting we already made in our previous tutorial.
Next go to the Linker ‣ General and under the “Additional Library Directories” add the libs directory:
$(OPENCV_DIR)\lib
Then you need to specify the libraries in which the linker should look into. To do this go to theLinker ‣ Input and under the “Additional Dependencies”entry add the name of all modules which you want to use:
- Property Manger,配置我们自己的lib.
- Oracle的Net Manger的配置
- 关于Tomcat7.*的Manger配置问题
- Spring的PropertyPlaceholderConfigurer应用(读取我们自己写的application.property文件)
- 配置WebLogic Server 8.1的Node Manger和SSL (转贴)
- 配置WebLogic Server 8.1的Node Manger和SSL
- 配置WebLogic Server 8.1的Node Manger和SSL
- retrofit的manger类
- oracle Net manger配置网络服务
- java设置 自己的Property
- log4j property的配置
- Service Manger的初始化分析
- 为了我们自己的英雄
- 我们都是自己的囚徒
- 我们并非自己的主人
- 我们自己的lusecn搜索引擎
- 我们并非自己的主人
- 训练我们自己的数据
- C++每次读取文件内容并且验证每行的内容
- 实验7 寻址方式在结构化数据访问中的应用
- 一种自动反射消息类型的 Google Protobuf 网络传输方案
- zoj 1586 QS Network (Prim)
- 我在山大的七年
- Property Manger,配置我们自己的lib.
- 黑马程序员---java 基本概念
- 矩阵排序,四角最小,中心最大
- 查询当天文件
- ACM新生培训开始啦
- Cellid LAC(获取)监听
- 创建和删除数据库sql及表的语句
- turned on verbose logging for linking and checked to see if anything suspicious is going on
- 关于DataGridView