forked from uwnrg/minotaur-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagrant_setup.sh
54 lines (45 loc) · 1.46 KB
/
vagrant_setup.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
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
# Installing Git
sudo apt-get update -qq
sudo apt-get install git -y -qq
# Installing Qt
wget http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-linux-x64-5.7.0.run
chmod +x qt-opensource-linux-x64-5.7.0.run
sudo apt-get install build-essential libfontconfig1 mesa-common-dev libglu1-mesa-dev -y -qq
# Grab Qt installer script
git clone https://github.com/benlau/qtci.git
source qtci/path.env
# Extract Qt installation
extract-qt-installer qt-opensource-linux-x64-5.7.0.run /home/vagrant/Qt5.7.0
export PATH=/home/vagrant/Qt5.7.0/5.7/gcc_64/bin:$PATH
# Installing Python
sudo apt-get install python-software-properties -y -qq
sudo add-apt-repository ppa:fkrull/deadsnakes -y
sudo apt-get update -qq
sudo apt-get install python3.4 python3.4-dev -y -qq
python3.4 --version
# Install cmake
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz --no-check-certificate
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
sudo make install
cd ..
cmake --version
# Installing gcc
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update -qq
sudo apt-get install gcc-4.8 g++-4.8 -y -qq
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
gcc --version
g++ --version
# Additional dependencies
sudo apt-get install libudev-dev libxi6 libsm6 libxrender1 libegl1-mesa -y -qq
# Build and run
mkdir build
cd build
cmake ../
make
./minotaur-cpp