Skip to content

Commit abdad14

Browse files
committed
Merge branch 'dev'
2 parents 06931c8 + fca7ba5 commit abdad14

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,39 @@ php:
1515
notifications:
1616
email: hihozhou@gmail.com
1717

18+
before_install:
19+
- sudo apt-get update
20+
install:
21+
# OpenCV dependencies - Details available at: http://docs.opencv.org/trunk/doc/tutorials/introduction/linux_install/linux_install.html
22+
- sudo apt-get install -y build-essential
23+
- sudo apt-get install -y cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
24+
- sudo apt-get install -y python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
25+
26+
# Download v3.0.0 .zip file and extract.
27+
- curl -sL https://github.com/Itseez/opencv/archive/3.2.0.zip > opencv.zip
28+
- unzip opencv.zip
29+
- cd opencv-3.2.0
30+
31+
# Create a new 'build' folder.
32+
- mkdir build
33+
- cd build
34+
35+
# Set build instructions for Ubuntu distro.
36+
- cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
37+
# Run 'make' with four threads.
38+
- make -j4
39+
40+
# Install to OS.
41+
- sudo make install
42+
# Add configuration to OpenCV to tell it where the library files are located on the file system (/usr/local/lib)
43+
- sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
44+
45+
- sudo ldconfig
46+
- echo "OpenCV installed."
47+
48+
# We need to return to the repo "root" folder, so we can then 'cd' into the C++ project folder.
49+
- cd ../../
50+
1851
#Compile
1952
before_script:
2053
- ./travis/compile.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PHP-OPENCV - PHP extension for Opencv
22

3-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg)](https://php.net/)
3+
[![Build Status](https://travis-ci.org/hihozhou/php-opencv.svg?branch=master)](https://travis-ci.org/hihozhou/php-opencv) [![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg)](https://php.net/)
44

55
## Requirements
66

travis/compile.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)