-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (57 loc) · 1.48 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: cpp
os:
- linux
sudo: required
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- build-essential
- cmake
- cmake-data
- git
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- python-dev
- python-numpy
- libtbb2
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libjasper-dev
- libdc1394-22-dev
- unzip
#env: GCC_VERSION=5 CPP=11 COMPILER=g++-5 CXX=g++-5 CC=gcc-5
install:
- sudo apt-get install -y libtiff5 libtiff5-dev
# - sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
# - sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++
- git clone https://github.com/Itseez/opencv.git
- cd opencv
- mkdir build
- cd build
- cmake ..
- make -j8
- sudo make -j8 install
- export OPENCV_DIR=/usr/local/lib
- cd ../../build
- wget https://github.com/livecv/livecv-deploy-kit/archive/master.zip
- unzip master.zip
- mv livecv-deploy-kit-master/* .
- wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run
- sudo chmod 777 qt-opensource-linux-x64-5.7.0.run
- ./qt-opensource-linux-x64-5.7.0.run --script resources/install-qt.qs --verbose --silent -platform minimal
- export QTDIR=/opt/qt/5.7/gcc_64
script:
- ls
- python3 livecv_build.py .. gcc_64
- ls
- find .
- python3 livecv_deploy.py .. gcc_64