1+ #! /bin/bash
2+ # provision a clean ubuntu installation
3+
4+ sudo su
5+
6+ # update list first
7+ apt-get update
8+
9+ # install boost dependencies
10+ apt-get install -y build-essential
11+
12+ # fetch boost 1.55.0 and compile
13+ wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2/download -O boost_1_55_0.tar.bz2
14+ tar --bzip2 -xf boost_1_55_0.tar.bz2
15+ cd boost_1_55_0
16+ ./bootstrap.sh --with-libraries=system,filesystem,program_options
17+ ./b2 install
18+
19+ # install opencv dependencies
20+ apt-get install -y git cmake libgtk2.0 libgtk2.0-dev pkg-config python-dev python-numpy libjpeg-dev libpng-dev libtiff-dev libjasper-dev unzip
21+
22+ # fetch opencv 2.4.9 and compile
23+ cd ..
24+ wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download -O opencv-2.4.9.zip
25+ unzip opencv-2.4.9.zip
26+ cd opencv-2.4.9
27+ mkdir release
28+ cd release
29+ cmake -D CMAKE_BUILD_TYPE=RELEASE \
30+ -D CMAKE_INSTALL_PREFIX=/usr/local \
31+ -D BUILD_opencv_flann=OFF \
32+ -D BUILD_opencv_features2d=OFF \
33+ -D BUILD_opencv_calib3d=OFF \
34+ -D BUILD_opencv_ml=OFF \
35+ -D BUILD_opencv_video=OFF \
36+ -D BUILD_opencv_objdetect=OFF \
37+ -D BUILD_opencv_contrib=OFF \
38+ -D BUILD_opencv_nonfree=OFF \
39+ -D BUILD_opencv_gpu=OFF \
40+ -D BUILD_opencv_legacy=OFF \
41+ -D BUILD_opencv_photo=OFF \
42+ -D BUILD_opencv_python=OFF \
43+ -D BUILD_opencv_stitching=OFF \
44+ -D BUILD_opencv_ts=OFF \
45+ -D BUILD_opencv_videostab=OFF \
46+ -D BUILD_opencv_apps=OFF \
47+ -D BUILD_TESTS=OFF \
48+ -D BUILD_PERF_TESTS=OFF \
49+ ..
50+ make -j2
51+ make install
52+
53+ # update libs
54+ ldconfig
55+
56+ # good to compile from this point
57+ cd ../..
58+ git clone https://github.com/ebemunk/phoenix.git
59+ cd phoenix
60+ # comment out the WIN variable in makefile
61+ sed -i ' 38 s/^/#/' Makefile
62+ make
0 commit comments