-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall_ubuntu1604.sh
executable file
·49 lines (40 loc) · 1.12 KB
/
install_ubuntu1604.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
#!/bin/bash
# Update and upgrade first
sudo apt-get update
sudo apt-get -y upgrade
# Remove all traces of previous SFML installation
sudo apt-get remove libsfml-dev
sudo rm -rf /usr/local/share/SFML
sudo rm -rf /usr/local/include/SFML
sudo rm -rf /usr/local/lib/*sfml*
sudo rm -rf /usr/share/SFML
sudo rm -rf /usr/include/SFML
sudo rm -rf /usr/lib/*sfml*
# Basic things
sudo apt-get -y install build-essential mc cmake git software-properties-common python-software-properties libboost-dev libgtest-dev wget aria2 clang
# Set up gtest
cd /usr/src/gtest/
sudo cmake .
sudo make
sudo cp *.a /usr/lib
# Prepare to install SFML
sudo apt-get -y install libxrandr-dev libopenal-dev libfreetype6 libfreetype6-dev libflac-dev libogg-dev libvorbis-dev libopenal-dev libudev-dev libsndfile-dev libjpeg-dev libglew-dev
export CC=clang
export CXX=clang++
cd ~
aria2c https://www.sfml-dev.org/files/SFML-2.4.2-sources.zip
unzip SFML-2.4.2-sources.zip
cd SFML-2.4.2
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
cd ~
rm -rf Graph
git clone http://www.github.com/mraggi/Graph
cd Graph
mkdir build
cd build
cmake ..
make