Linux compiled OpenCV library [go]

Source: Internet
Author: User
Tags eclipse org

Download source code

Download OpenCV source code from http://sourceforge.net/projects/opencvlibrary, download the file as opencv-1.0.0.tar.gz (if other version, the file name corresponding changes, it is recommended to download the latest version).

Edit

Unzip the file
Tar zxvf opencv-1.0.0.tar.gzcd opencv-1.0.0
Edit

Check the software configuration
$./configurechecking build system Type ... i686-pc-linux-gnuchecking host system type ... i686-pc-linux-gnuchecking  Target system type ... i686-pc-linux-gnuchecking for a bsd-compatible install .../usr/bin/install-cchecking whether build Environment is sane ... yeschecking for gawk ... ... General configuration ================================================ compiler:g++ cxxflags:-WALL-FN O-rtti-pipe-o3-g-march=i686-ffast-math-fomit-frame-pointer Install Path:/usr/localhighgui Configuration = = = ============================================= windowing System--------------use CARBON/MAC OS x:no use GT K + 2.x:yes Use Gthread:yes Image I/O---------------------use Libjpeg:y            Es use Zlib:yes use Libpng:yes use Libtiff:yes use Libjasper: Yes use Libilmimf:no Video I/O---------------------use QuickTime/ Mac OS x:no use Xine:no with Ffmpeg:yes use dc1394 & raw1394:yes use V4l:yes use V4l2:yeswrappers for other languages ================================== ======= SWIG Python noadditional build Settings =========================== ================= Build Demo Apps Yesnow run make ...

If the above output is present, the software required to compile the OPENCV is basically installed and can proceed to the next step. If you are prompted that the required software is not installed, please install and run the./configure command until you are prompted to "now run make ...". Description of some libraries: libjasper-the JasPer JPEG-2000 Runtime Library

Note: Configure files have been omitted from the opencv2.2, can be installed by CMake, reference http://www.samontab.com/web/2010/04/installing-opencv-2-1-in-ubuntu/

Edit

Compiling OPENCV
Make

2012-11-14 the current newer opencv2.3.1, installed with CMake, in the centos6.2 system, recommend this document: http://my.oschina.net/douzhenjia/blog/32683. In addition, the current Linux C + + program development, can also be developed as under the VS2008, using the Eclipse CDT, which can be downloaded directly from the Eclipse org website, without the installation directly can run the embedded CDT eclipse. As for Eclipse's OPENCV compilation environment setting, this document is recommended: http://www.cnblogs.com/shihty/archive/2012/10/24/2737552.html. With these 3 things, you'll be happy to start your OPENCV trip!

Edit

Installing OPENCV

Execute with Root user

Make install

2012-11-14 at present the newer opencv2.3.1, installs with the CMake, in the centos6.2 system, recommends this document: http://my.oschina.net/douzhenjia/blog/32683; In addition, the current Linux C + + program development, can also be developed as under the VS2008, using the Eclipse CDT, which can be downloaded directly from the Eclipse org website, without the installation directly can run the embedded CDT eclipse. As for Eclipse's OPENCV compilation environment settings, this document is recommended: http://www.cnblogs.com/shihty/archive/2012/10/24/2737552.html; With these 3 things, you'll be happy to start your OPENCV trip! Edit

Edit

Update the Dynamic Connection library

Use the root user to perform the following actions

Add path/usr/local/lib to file/etc/ld.so.conf, and then run the command

Ldconfig
Edit

Test the installation package

To test whether the installation was successful, you can use the following command line to compile the drawing.c example in the source package: (in version 1.0, under directory sample/c)

g++ ' pkg-config opencv--libs--cflags OpenCV ' Drawing.c-o drawing

After successful compilation you should be able to execute ./drawing See the results of the Highgui Output window.

Linux compiled OpenCV library [go]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.