forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmxe-ubuntu-install.sh
57 lines (57 loc) · 1.6 KB
/
mxe-ubuntu-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
cd ~
echo "Install any necessary libraries (Ubuntu/apt)"
echo "sudo will be asked for, please put in your password."
echo "Enter yes when asked, unless you see something wrong with the packages you're about to install."
sudo apt update && sudo apt install \
autoconf \
automake \
autopoint \
bash \
bison \
bzip2 \
flex \
g++ \
g++-multilib \
gettext \
git \
gperf \
intltool \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libltdl-dev \
libncurses5-dev \
libssl-dev \
libtool-bin \
libxml-parser-perl \
lzip \
make \
ninja-build \
openssl \
p7zip-full \
patch \
perl \
python2 \
python-is-python2 \
python3 \
python3-pip \
ruby \
sed \
unzip \
wget \
xz-utils
echo "Install meson (as sudo)"
sudo pip3 install meson
echo "Clone MXE from my source that way ARM is included :)"
git clone https://github.com/armdevvel/mxe --depth=1 armmxe
echo "cd mxe!"
cd armmxe
echo "Download LLVM-MinGW!"
mkdir usr && cd usr && wget https://github.com/armdevvel/llvm-mingw/releases/download/14.0/armv7-only-llvm-mingw-linux-x86_64.tar.xz
echo "Extract LLVM-MinGW!"
tar -xf armv7-only-llvm-mingw-linux-x86_64.tar.xz
echo "Setup known packages that work! This may take a while... Hold on tight!~"
cd .. && make libpng cmake sdl2 sdl tiff jpeg ccache lame libxml++ libxml2 libxslt libyaml libzip libwebp libusb1 sdl_image sdl_mixer sdl2_image sdl2_mixer zlib yasm dbus pcre icu4c
echo "Adding MXE to your PATH (bash)"
echo "\n" >> ~/.bashrc
echo "export PATH=/home/$USER/armmxe/usr/bin"':$PATH' >> ~/.bashrc
echo "Finished!"