Skip to content

Commit

Permalink
install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ebemunk committed Apr 30, 2014
1 parent d9c5632 commit 18f8ccf
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 0 deletions.
62 changes: 62 additions & 0 deletions install_scripts/centos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
#provision a clean centos installation

sudo su

#update list first
yum -y update

#install wget
yum -y install wget

#fetch boost 1.55.0 and compile
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
tar --bzip2 -xf boost_1_55_0.tar.bz2
cd boost_1_55_0
./bootstrap.sh --with-libraries=system,filesystem,program_options
./b2 install --prefix=/usr

#install opencv dependencies
yum install -y cmake gtk2-devel python-dev numpy libjpeg-devel libpng-devel libtiff-devel libjasper-devel

#fetch opencv 2.4.9 and compile
cd ..
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download -O opencv-2.4.9.zip
unzip opencv-2.4.9.zip
cd opencv-2.4.9
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr \
-D BUILD_opencv_flann=OFF \
-D BUILD_opencv_features2d=OFF \
-D BUILD_opencv_calib3d=OFF \
-D BUILD_opencv_ml=OFF \
-D BUILD_opencv_video=OFF \
-D BUILD_opencv_objdetect=OFF \
-D BUILD_opencv_contrib=OFF \
-D BUILD_opencv_nonfree=OFF \
-D BUILD_opencv_gpu=OFF \
-D BUILD_opencv_legacy=OFF \
-D BUILD_opencv_photo=OFF \
-D BUILD_opencv_python=OFF \
-D BUILD_opencv_stitching=OFF \
-D BUILD_opencv_ts=OFF \
-D BUILD_opencv_videostab=OFF \
-D BUILD_opencv_apps=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
..
make -j2
make install
#update libs
ldconfig

#good to compile from this point
cd ../..
git clone https://github.com/ebemunk/phoenix.git
cd phoenix
#comment out the WIN variable in makefile
sed -i '38 s/^/#/' Makefile
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
make
62 changes: 62 additions & 0 deletions install_scripts/ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
#provision a clean ubuntu installation

sudo su

#update list first
apt-get update

#install boost dependencies
apt-get install -y build-essential

#fetch boost 1.55.0 and compile
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
tar --bzip2 -xf boost_1_55_0.tar.bz2
cd boost_1_55_0
./bootstrap.sh --with-libraries=system,filesystem,program_options
./b2 install

#install opencv dependencies
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

#fetch opencv 2.4.9 and compile
cd ..
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download -O opencv-2.4.9.zip
unzip opencv-2.4.9.zip
cd opencv-2.4.9
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D BUILD_opencv_flann=OFF \
-D BUILD_opencv_features2d=OFF \
-D BUILD_opencv_calib3d=OFF \
-D BUILD_opencv_ml=OFF \
-D BUILD_opencv_video=OFF \
-D BUILD_opencv_objdetect=OFF \
-D BUILD_opencv_contrib=OFF \
-D BUILD_opencv_nonfree=OFF \
-D BUILD_opencv_gpu=OFF \
-D BUILD_opencv_legacy=OFF \
-D BUILD_opencv_photo=OFF \
-D BUILD_opencv_python=OFF \
-D BUILD_opencv_stitching=OFF \
-D BUILD_opencv_ts=OFF \
-D BUILD_opencv_videostab=OFF \
-D BUILD_opencv_apps=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
..
make -j2
make install

#update libs
ldconfig

#good to compile from this point
cd ../..
git clone https://github.com/ebemunk/phoenix.git
cd phoenix
#comment out the WIN variable in makefile
sed -i '38 s/^/#/' Makefile
make

0 comments on commit 18f8ccf

Please sign in to comment.