OpenCV 2.0 with Windows Installation
来源:互联网 发布:徐州淘宝运营 编辑:程序博客网 时间:2024/05/22 07:52
Windows Installation Notes:
The library is better to be installed to a directorywithout a space in its name, such as the default C:/OpenCV2.0 - otherwise (e.g. if you install it to C:/Program Files/OpenCV2.0) you may get compile errors. This is a limitation of the current build scripts.
Due to many technical problems the installation package does not include pre-compiled OpenCV libraries for Visual Studio users.
Instead, it includes libraries built with MinGW 4.3.3 TDM-SJLJ.
They are good enough to run the C/C++ and Python samples and tests, but for developing your OpenCV-based applications using Visual Studio (or a Borland IDE, etc.) you need to build the libraries with your compiler using CMake, as explained here:
http://opencv.willowgarage.com/wiki/InstallGuide
Procedure at a glance:
- 1. Download CMake from http://www.cmake.org/cmake/resources/software.html and install it.
- 2. Run CMake GUI tool and configure OpenCV there:
2.1. select C:/OpenCV2.0 (or the installation directory you chose)as the source directory;
2.2. choose some other directory name for the generated project files, e.g. C:/OpenCV2.0/vs2008, or D:/Work/OpenCV_MinGW etc.
2.3. press Configure button, select your preferrable build environment
2.4. adjust any options at your choice 2.5. press Configure again, then press Generate.
- 3a. In the case of Visual Studio or any other IDE, open the generated solution/workspace/project ..., e.g. C:/OpenCV2.0/vs2008/OpenCV.sln, build it in Release and Debug configurations.
- 3b. In the case of command-line Makefiles, enter the destination directoryand type "make" (or "nmake" etc.)
- 4. Add the output directories to the system path, e.g.: C:/OpenCV2.0/vs2008/bin/Debug;C:/OpenCV2.0/vs2008/bin/Release:%PATH% It is safe to add both directories, since the Debug OpenCV DLLs have the "d" suffix, which the Release DLLs do not have.
- 5. Optionally, add C:/OpenCV2.0/include/opencv to the list ofinclude directories in your IDE settings,and the
output library directories(e.g. C:/OpenCV2.0/vs2008/lib/{Debug,Release}) to the list of library paths.
- It is important to build both release and debug configurations, and link you code with the proper libraries in each configuration,
otherwise various compile-time or run-time errors are possible.
Source from OpenCV Monthly
- OpenCV 2.0 with Windows Installation
- Creating an Application Installation Package with Microsoft Windows CE 3.0
- Windows Installation
- Installation with CocoaPods
- installation failed with message
- Step-By-Step Installation of RAC with RAW Datafiles on Windows 2000
- Oracle APEX installation with ORDS
- Installation failed with message INSTALL_FAILED_OLDER_SDK.
- Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS.
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS
- Linux 编程经典书籍推荐
- 顯式調用DLL
- s求数组的连续最小区域
- 开机自动启动 Ubuntu iBus 输入法
- Total Commander常用快捷键
- OpenCV 2.0 with Windows Installation
- Volume Shadow Copy Service error: Error calling a routine on the Shadow Copy Provider {f5dbcc43-b847-494e-8083-f030501da611}
- ASP循环输出表格行tr的方法
- 求数组中所有小于100 的下标
- 开源网站
- 基于Zlib算法的流压缩、字符串压缩源码
- 数值积分
- 创建日志时发生:Requested registry access is not allowed(不允许所请求的注册表访问权)
- 目标文件格式分析工具: ar,nm,objdump,objcopy,readelf