-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·92 lines (88 loc) · 2.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
mkdir -p build
cd build
if [[ "$OSTYPE" == "linux-gnu" ]];
then
if [[ `awk -F= '$1=="ID" { print $2 ;}' /etc/os-release` == "ubuntu" ]];
then
sudo apt update
sudo apt upgrade -y
sudo apt install -y \
cmake \
build-essential \
python3-pip \
libudev-dev \
libgl-dev \
libx11-xcb-dev \
libfontenc-dev \
libxaw7-dev \
libxcomposite-dev \
libxcursor-dev \
libxdamage-dev \
libxfixes-dev \
libxi-dev \
libxinerama-dev \
libxmu-dev \
libxmuu-dev \
libxpm-dev \
libxrandr-dev \
libxres-dev \
libxss-dev \
libxtst-dev \
libxv-dev \
libxvmc-dev \
libxxf86vm-dev \
libxcb-render-util0-dev \
libxcb-xkb-dev \
libxcb-icccm4-dev \
libxcb-image0-dev \
libxcb-keysyms1-dev \
libxcb-randr0-dev \
libxcb-shape0-dev \
libxcb-sync-dev \
libxcb-xfixes0-dev \
libxcb-xinerama0-dev \
libxcb-dri3-dev \
libxcb-util-dev \
libxcb-util0-dev
sudo pip3 install conan
conan install .. --build=missing -s compiler.libcxx=libstdc++11 -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True
cmake ..
make
cd bin
cp -r r-type_server ../../bin/linux/
cp -r r-type_client ../../bin/linux/
elif [[ `awk -F= '$1=="ID" { print $2 ;}' /etc/os-release` == "fedora" ]];
then
sudo dnf update -y
sudo dnf install -y \
cmake \
python3-pip \
libudev-devel \
libfontenc-devel \
libXaw-devel \
libXcomposite-devel \
libXdmcp-devel \
libXtst-devel \
libxkbfile-devel \
libXres-devel \
libXScrnSaver-devel \
libXvMC-devel \
xorg-x11-xtrans-devel \
xcb-util-wm-devel \
xcb-util-keysyms-devel \
xcb-util-renderutil-devel \
libXdamage-devel \
xcb-util-devel \
xkeyboard-config-devel \
systemd-devel \
libuuid-devel
sudo pip3 install conan
conan install .. --build=missing -s compiler.libcxx=libstdc++11 -c tools.system.package_manager:mode=install -c tools.system.package_manager:sudo=True
cmake ..
make
cd bin
cp -r r-type_server ../../bin/linux/
cp -r r-type_client ../../bin/linux/
fi
fi