Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Detailed installation OpenCV2.3.1 under CentOS 6.5     - Linux Study of --CentOS create local yum repository (Linux)

- SpringMVC garbage processing (Programming)

- Linux process management related content (Linux)

- Open container cluster management system architecture and components introduced Kubernetes (Server)

- Remote database using RMAN recovery test (RAC return to single-instance database) (Database)

- Linux commands with browsing and downloading files (Linux)

- How to set the default Fedora from the command line (Linux)

- Use PuTTY to access the virtual machine Linux under Windows xp (Programming)

- MySQL Authorized a recovered (Database)

- shell script: the number of characters in the text to print no more than 6 words (Programming)

- Ten SCP transfer command example (Linux)

- Detailed Linux network security policies and protection measures (Linux)

- Teach you how to synchronize Microsoft OneDrive in Linux (Linux)

- Deep understanding of C # generics (Programming)

- Linux how to view your JDK installation (Linux)

- Boost-- time and date - (1) timer library introduction (Programming)

- Oracle ordinary users show parameter method (Database)

- Scope of variables in Object-C (Programming)

- Simple and fast sorting (Programming)

- Linux iptables firewall settings to use (Linux)

  Detailed installation OpenCV2.3.1 under CentOS 6.5
  Add Date : 2017-08-31      
  Linux version installed is CentOS 6.5, select the OpenCV 2.3.1. Not very new versions. Because the installation OpenCV2.4.9 time, make the process a problem.

One: Install dependencies

Dependencies using yum install on it, you need to install the following package:

yum install cmake gcc gcc-c ++ gtk + -devel gimp-develgimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devellibpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-develjasper-devel jasper-utils swig python libtool nasm

Two: generate make files and install

Opencv2.3.1 can download (link http://opencv.org/ this time inexplicable jump to the official website URL) on the official website, if necessary, you can contact me.

Specific steps:

(1) cdopencv2.3.1


// Here may suggest line44 error into Cmakelist.txt, comment out the line 44

// NOTE NO spaces behind + is essential.

(3) cmake

(4) sudo makeinstall

Three: Configure

New File /etc/ld.so.conf.d/opencv.conf

Add / usr / local / lib in the file

After Saving the configuration


// Because in ld.so.conf file contains all the files came /etc/ld.so.conf.d/*.conf

Four: the environment variable configuration

sudo vim / etc / bashrc

PKG_CONFIG_PATH = $ PKG_CONFIG_PATH: / usr / local / lib / pkgconfig


After saving execution

source / etc / bashrc

Five. Testing the installation

cd OpenCV-2.3.1 / samples / c

chmod + xbuild_all.sh


After the implementation of the compiler

./facedetectcascade="/usr/local/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml"--scale=1.5 lena.jpg

If successfully installed, then, lena face will be a blue circle

Six: eclipe for c / c ++ and opencv small test case

(1) Eclipse for c / c ++ Download https://www.eclipse.org/downloads/ (eclipse then I knew that there are so many versions, so be strong)

After decompression can be opened with ./eclipse. Of course, before you open the machine needs to be installed on the jdk. Root user can execute:

vi / etc / profile followed by:

export JAVA_HOME = / usr / java / jdk1.8.0_20

export PATH = $ JAVA_HOME / bin /: $ PATH

exportCLASSPATH =:. $ JAVA_HOME / lib / dt.jar: $ JAVA_HOME / lib / tools.jar

And then source / etc / profile on it. Java -version can be used to test whether the installation was successful

(1) eclipse opencv configuration and simply the next, and the next is very similar to Windows

Click Project> properties> C / C ++ Build> Settings> GCCC ++ Complier> includes write:

/ Usr / local / include

/ Usr / local / include / opencv

/ Usr / local / include / opencv2

In the GCC C ++ Linker> Libraries>

Libraries: fill in the corresponding .so file. Note that libopencv_imgproc.so just fill opencv_imgproc it.

Library search path: / usr / local / lib

Seven: installed opencv2.4.9 problems

When the process make the following errors occur:

Building CXX object modules / ocl / CMakeFiles / opencv_ocl.dir / src / hog.cpp.o

c ++: Internal error: Killed (program cc1plus)

Please submit a full bug report.

See < http://bugzilla.RedHat.com/bugzilla> forinstructions.

make [2]: *** [modules / ocl / CMakeFiles / opencv_ocl.dir / src / hog.cpp.o] Error 1

make [1]: *** [modules / ocl / CMakeFiles / opencv_ocl.dir / all] Error 2

make: *** [all] Error 2

Here I search the Internet the next, may be caused by insufficient memory, because I was on a virtual machine testing.
- IBM Data Studio to create objects using ---- double quotes / sensitive issues and the table / column renaming (Database)
- Ubuntu users Steam controller does not work solutions (Linux)
- Android webView URL redirects affect goBack () (Programming)
- Linux redirection and piping (Linux)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- Taught you how to install Ubuntu Linux (Linux)
- To read the Linux ext3 / ext4 format partitions under Windows system software (Linux)
- Linux platform Oracle MySQL connection (Database)
- Linux environment SSH login password instead of using the RSA Certificate (Linux)
- Linux settings Java_home (Linux)
- Sort search algorithm Java - application examples with recursive dichotomy (Programming)
- How to use tmpfs in RHEL / CentOS 7.0 (Linux)
- Use py2exe to generate exe files Python script (Programming)
- Zabbix monitoring disk IO status (Server)
- Installation of network monitoring ntopng under CentOS 6.4 (Linux)
- Merge sort Java implementation (Programming)
- Install Oracle 11g illustrations and dependent libraries under SUSE11 (Database)
- Linux system started to learn: how to view the Linux thread of a process (Linux)
- RedHat Linux source code package installation process (Linux)
- Using nmcli commands to manage network in RedHat / CentOS 7.x (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.