We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4
OPENCV 2.
1 INSTALLATION GUIDELINES
1. Run ‘CMake 2.8’ installation file
2. Click ‘Next’ & accept the license agreement 3. Choose ‘Add CMake to the system PATH for all users’ for the install options
4. Continue with the installation
5. Repeat the same process for OpenCV 2.1 installation *Remark: choose full installation 6. Run ‘CMake (cmake-gui)’ 7. Enter the file paths as shown below
8. Click ‘Configure’ & choose the setting as shown below
9. Click ‘Configure’ *Remark: a red screen will appear in the program window 10. Check ‘BUILD_EXAMPLES, BUILD_PACKAGE, BUILD_TESTS, INSTALL_C_EXAMPLES, OPENCV_BUILD_3RDPARTY_LIBS’ boxes *Remark: do not uncheck other checked boxes 11. Click ‘Configure’ *Remark: the red screen will disappear 12. Click ‘Generate’ & close the program window once the process is successfully done 13. Run ‘Microsoft Visual C++ 2008 Express Edition’ & open ‘OpenCV’ in C:\OpenCV2.1\VS2008 14. Choose ‘Debug’ as shown below & build the solution 15. Make sure there’s ZERO ‘failed’ after the solution has been build 16. Repeat step 14 – 15 for ‘Release’ as shown below
are created in this directory - C:\OpenCV2.1\VS2008\lib\Debug 18. Verify ‘cv210.lib, cvaux210.lib, highgui210.lib, cxcore210.lib, ml210.lib etc’ are created in this directory - C:\OpenCV2.1\VS2008\lib\Release 19. Add ‘;C:\OpenCV2.1\VS2008\lib\Debug;C:\OpenCV2.1\VS2008\lib\Release’ to ‘Variable value’ in ‘Path’ in ‘Environment Variables’ under ‘System Properties’ *Remark: copy & add the line at the back, do not replace everything 20. In ‘Microsoft Visual C++ 2008 Express Edition’, go to ‘Tools’ – ‘Options’ – ‘Projects and Solutions’ – ‘VC++ Directories’ & select ‘Include files’ & add this path: C:\OpenCV2.1\include\opencv 21. For ‘Library files’, add: C:\OpenCV2.1\VS2008\lib\Release C:\OpenCV2.1\VS2008\lib\Debug 22. For ‘Source files’, add: C:\OpenCV2.1\VS2008\src\ml\ml.dir\Release C:\OpenCV2.1\VS2008\src\ml\ml.dir\Debug C:\OpenCV2.1\VS2008\src\highgui\highgui.dir\Release C:\OpenCV2.1\VS2008\src\highgui\highgui.dir\Debug C:\OpenCV2.1\VS2008\src\cxcore\cxcore.dir\Release C:\OpenCV2.1\VS2008\src\cxcore\cxcore.dir\Debug C:\OpenCV2.1\VS2008\src\cvaux\cvaux.dir\Release C:\OpenCV2.1\VS2008\src\cvaux\cvaux.dir\Debug C:\OpenCV2.1\VS2008\src\cv\cv.dir\Release C:\OpenCV2.1\VS2008\src\cv\cv.dir\Debug C:\OpenCV2.1\VS2008\src
23. Remember to add this (cv210.lib cvaux210.lib highgui210.lib cxcore210.lib
ml210.lib) to ‘Additional Dependencies’ in ‘Input’ under ‘Linker’ whenever you create C++ project which need to use OpenCV