0% found this document useful (0 votes)
64 views4 pages

Opencv 2.1 Installation Guidelines

Uploaded by

Jason Teo
Copyright
© Attribution Non-Commercial (BY-NC)
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
0% found this document useful (0 votes)
64 views4 pages

Opencv 2.1 Installation Guidelines

Uploaded by

Jason Teo
Copyright
© Attribution Non-Commercial (BY-NC)
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

17. Verify ‘cv210d.lib, cvaux210d.lib, highgui210d.lib, cxcore210d.lib, ml210d.lib etc’


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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy