OpenCV 2.1.0 with Visual Studio 2008
来源:互联网 发布:阿里云服务器租赁价格 编辑:程序博客网 时间:2024/04/28 05:46
OpenCV 2.1.0 with Visual Studio 2008
These instructions were tested with Visual C++ 9.0 (as part of Visual Studio 2008 Professional). These instructions do not apply to Visual Studio 2010 which uses a different system for setting VC configuration.
直接下载Download the OpenCV 2.1.0 Windows installer from SourceForge - "OpenCV-2.1.0-win32-vs2008.exe".免得编译的麻烦和时间空间。
- 安装到一个目录,例如"C:/OpenCV210, 创建环境变量 $openCVDir 。
- During installation check the option to add it to your Current User PATH
Configure Visual Studio
Open VC++ Directories configuration: Tools > Options > Projects and Solutions > VC++ Directories
- Choose "Show directories for: Include files" :包含文件
- Add "$(openCVDir)/include/opencv"
- Choose "Show directories for: Library files" : 库文件
- Add "$(openCVDir)/lib"
- Choose "Show directories for: Source files" :源文件
- Add "$(openCVDir)/src/cv"
- Add "$(openCVDir)/src/cvaux"
- Add "$(openCVDir)/src/cxcore"
- Add "$(openCVDir)/src/highgui"
Configure your Project
After you've created a project you'll need to add the OpenCV dependencies.
Open Project Properties: Project > %projectName% Properties...
Open Linker Input properties: Configuration Properties > Linker > Input
- Open the "..." window to edit "Additional Dependencies" and on each line put:
- "cv210.lib"
- "cxcore210.lib"
- "highgui210.lib"
- And any other lib file necessary for your project
- Your project should now build. If you get any errors try restarting Visual Studio and then doing a clean Rebuild
- OpenCV 2.1.0 with Visual Studio 2008
- OpenCV 2.1.0 with Visual Studio 2008
- OpenCV 2.1.0 with Visual Studio 2010
- OpenCV 2.1.0 with Visual Studio 2010(1)
- OpenCV 2.1.0 with Visual Studio 2010(2)
- Building OpenCV with Visual Studio 2015
- Using OpenCV 2.4.x with Visual Studio 2010 (tutorial)
- WPF in Action with Visual Studio 2008
- Qt 4.3 with Visual Studio 2008
- Remote debugging with Visual Studio 2008
- Building Mongodb with Visual Studio 2008
- Building Mongodb with Visual Studio 2008
- opencv 与visual studio 2008/2010 配置
- Visual Studio 2008下设置OpenCV
- USING OPENCV 2.4.2 WITH VISUAL STUDIO 2012 ON WINDOWS 7 (64-BIT)
- How to build applications with OpenCV inside the Microsoft Visual Studio
- Debug VBScript with Visual Studio
- Installing FLTK with Visual Studio
- Windows XP系统IIS5.1组件 安装方法
- spring security LDAP 认证
- 视图类 文档类 框架类 应用程序类之间指针的互相获取
- 【软件自动化测试 - VBScript 4】== QTP_Add Method (Dictionary)
- 用ReportView控件展示Rdl服务器报表可行性研究
- OpenCV 2.1.0 with Visual Studio 2008
- 大白话系列之C#委托与事件讲解(序言)
- 软电话 开源的和免费的大全
- 在codeblock中使用openCV2.1
- 大白话系列之C#委托与事件讲解(一)
- 添加一个div层并在右上角有个叉叉
- Struts 中的乱码问题
- 文本居中
- 大白话系列之C#委托与事件讲解(二)