-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (30 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: cpp
sudo: required
before_install:
- sudo apt-get update
- sudo apt-get install build-essential
- wget http://www.cmake.org/files/v3.6/cmake-3.6.3.tar.gz
- tar xf cmake-3.6.3.tar.gz
- cd cmake-3.6.3
- ./configure
- make
- sudo make install
install:
- sudo apt-get install -y build-essential
- sudo apt-get install -y git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
- sudo apt-get install -y python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
- curl -sL https://github.com/Itseez/opencv/archive/3.0.0-beta.zip > opencv.zip
- unzip opencv.zip
- cd opencv-3.0.0-beta
- mkdir build
- cd build
- cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_OPENGL=ON -D CMAKE_OSX_ARCHITECTURES=x86_64 -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_legacy=NO ..
- make
- sudo make install
- sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
- sudo ldconfig
- echo "OpenCV installed."
- cd ../..
script:
- cmake .
- make