-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_mlx.sh
executable file
·59 lines (51 loc) · 2.35 KB
/
install_mlx.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
# **************************************************************************** #
# #
# ::: :::::::: #
# install_mlx.sh :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lcouto <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/15 16:47:21 by lcouto #+# #+# #
# Updated: 2021/02/15 20:38:26 by lcouto ### ########.fr #
# #
# **************************************************************************** #
#!/bin/bash
#Install MiniLibX dependencies.
apt-get install -y gcc \
make \
libxext-dev \
libxrandr-dev \
libx11-dev \
libbsd-dev \
libssl-dev
#Go to MiniLibX folder.
cd ./libs/minilibx-linux/
#Compile MiniLibX.
make
#Create folder for MiniLibX manual
mkdir -p /usr/local/man/man1
sudo cp man/man1/* /usr/local/man/man1/
#INstall MiniLibX
sudo cp libmlx.a /usr/local/lib/
sudo cp mlx.h /usr/local/include/
sudo cp mlx_int.h /usr/local/include/
echo "
/
/
xxX###xx /
::XXX /
xxXX::::::###XXXXXx/#####
:::XXXXX::::::XXXXXXXXX/ ####
xXXX//::::::://///////:::::::::::/##### # ##########
XXXXXX//:::::://///xXXXXXXXXXXXXXXX/# ####### ### ###
XXXX :://///XXXXXXXXX######X/####### # ### #
XXXX ::////XXXXXXXXX#######/ # # #### # #
XXXX/: ::////XXXXXXXXXX#####/ # ######### ##
XXX//::::::////XXXXXXXXXXXXXX/########### # #
X::::::::////XXXXXXXXXXXX/ # # # ##
::::////XXXXXXXXXX/################## ###
::::://XXXXXX/# # # #######
::::::::/################
/
/
/ MiniLibX installed! Now go render something!"