-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
42 lines (41 loc) · 2.31 KB
/
install.sh
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
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:mc3man/trusty-media
sudo echo "deb http://us.archive.ubuntu.com/ubuntu trusty main universe" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y install git libopencv-dev ffmpeg python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose python-shapely python-skimage python-pip build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev libtbb-dev libeigen3-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils libgtk2.0-dev libboost-all-dev doxygen unzip mercurial vim cmake-curses-gui sqlite3 sqlite3-doc libsqlite3-dev libcppunit-dev libcppunit-doc cmake-qt-gui python-sklearn
wget -O OpenCV-2.4.10.zip http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/opencv-2.4.10.zip/download
unzip OpenCV-2.4.10.zip
rm OpenCV-2.4.10.zip
cd opencv-2.4.10
rm -rf build
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
sudo make install
sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf'
sudo ldconfig
mkdir ~/Traffic
cd ~/Traffic
hg clone https://[email protected]/trajectories/trajectorymanagementandanalysis
cd trajectorymanagementandanalysis/trunk/src/TrajectoryManagementAndAnalysis/
cmake .
make TrajectoryManagementAndAnalysis
cd ~/Traffic/
hg clone https://bitbucket.org/santosfamilyfoundation/trafficintelligence
cd trafficintelligence/c
sed -i "3s,.*,TRAJECTORYMANAGEMENT_DIR=${HOME}/Traffic/trajectorymanagementandanalysis/trunk/src/TrajectoryManagementAndAnalysis," Makefile
make feature-based-tracking
make tests
cd ~/Traffic/trafficintelligence
make doc
sudo make install
echo 'export PYTHONPATH=$PYTHONPATH:/home/vagrant/Traffic/trafficintelligence/python' | sudo tee -a ~/.bashrc
sudo echo 'export PYTHONPATH=$PYTHONPATH:/home/vagrant/TrafficCloud' | sudo tee -a ~/.bashrc
. ~/.bashrc
sudo ln /dev/null /dev/raw1394
cd
git clone https://github.com/santosfamilyfoundation/SantosCloud.git
sudo pip install cvutils
cd SantosCloud
sudo pip install -r requirements.txt