Download and decompress version 2.0.
Compilation process:
CD OpenCV-2.0.0/
Mkdir release
CD release
Cmake-D cmake_build_type = release-D cmake_install_prefix =/opt/opencv-D build_python_support = on ..
Configuration:
In. bashrc:
Export LD_LIBRARY_PATH =/opt/opencv/lib/: $ LD_LIBRARY_PATH
Otherwise, the following error occurs: Error while loading shared libraries: libcxcore. so.2.0: cannot open shared object file: no such file or directory.
This error occurs.
Compile command:
Gcc-O output source. c-I/opt/opencv/include/opencv-I/opt/opencv/include-L/opt/opencv/lib/-lcxcore-LCV-lcvaux-lhighgui-lml
In this way, # include <opencv/header. h> is required when the header file is included.
Now you can compile and run properly.
Reference:
Installation:
Http://opencv.willowgarage.com/wiki/InstallGuide
Runtime error:
Http://smsoftdev-solutions.blogspot.com/2009/06/opencv-shared-libraries-error.html
Wiki:
Http://opencv.willowgarage.com/wiki/FullOpenCVWiki