2020-05-10 10:03:04 -04:00
|
|
|
# Docker setup
|
|
|
|
docker run --rm --privileged multiarch/qemu-user-static:register
|
|
|
|
docker run -it --name build_arm32v7 arm32v7/ubuntu:14.04 /bin/bash
|
|
|
|
|
2020-01-24 14:17:29 -05:00
|
|
|
sudo apt-get update && \
|
|
|
|
sudo apt-get install build-essential software-properties-common -y && \
|
|
|
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
|
2020-01-26 10:42:01 -05:00
|
|
|
sudo apt-get update && \
|
2020-01-24 14:17:29 -05:00
|
|
|
sudo apt-get install gcc-9 g++-9 -y && \
|
|
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \
|
2020-05-10 10:03:04 -04:00
|
|
|
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-9 60 --slave /usr/bin/c++ c++ /usr/bin/c++-9 # This fails for some reason
|
2020-01-26 10:42:01 -05:00
|
|
|
|
2020-05-10 10:03:04 -04:00
|
|
|
# Sometimes its required to build from source: (Not required for ubuntu 14.04)
|
2020-01-26 10:42:01 -05:00
|
|
|
https://raw.githubusercontent.com/darrenjs/howto/master/build_scripts/build_gcc_9.sh
|
2020-01-24 14:17:29 -05:00
|
|
|
|
2020-05-10 10:03:04 -04:00
|
|
|
apt-get install -y autoconf git wget libssl-dev realpath libsqlite3-dev libmysqlclient-dev libpcre3-dev
|
2020-01-24 14:17:29 -05:00
|
|
|
|
2020-01-26 10:42:01 -05:00
|
|
|
wget https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3.tar.gz && tar xvf cmake-3.16.3.tar.gz && \
|
|
|
|
cd cmake-3.16.3 && ./configure --parallel=16 && \
|
|
|
|
make -j16 && make install && \
|
2020-01-24 14:17:29 -05:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
git config --global credential.helper store
|
|
|
|
|
|
|
|
# Patchelf
|
2020-01-25 08:23:31 -05:00
|
|
|
wget http://nixos.org/releases/patchelf/patchelf-0.10/patchelf-0.10.tar.bz2 && \
|
|
|
|
tar xf patchelf-0.10.tar.bz2 && \
|
|
|
|
cd patchelf-0.10 && \
|
|
|
|
./configure && \
|
2020-01-24 14:17:29 -05:00
|
|
|
make install
|
|
|
|
|
|
|
|
# Create TeaSpeak
|
|
|
|
git clone https://git.did.science/WolverinDEV/TeaSpeak-Parent.git server && cd server && \
|
|
|
|
git submodule update --init --recursive
|
|
|
|
./libraries/build.sh
|
|
|
|
|
|
|
|
|
2020-05-10 10:03:04 -04:00
|
|
|
# External prebuild libraries
|
|
|
|
# ------------ OpenSSL -------------
|
|
|
|
git clone https://github.com/openssl/openssl.git && cd openssl && \
|
|
|
|
git checkout OpenSSL_1_1_1-stable && \
|
|
|
|
mkdir build && cd build && \
|
|
|
|
../config --prefix=`pwd`/../out && \
|
|
|
|
make -j30 && \
|
|
|
|
make install
|
2020-01-24 14:17:29 -05:00
|
|
|
|
2020-05-10 10:03:04 -04:00
|
|
|
# Build MySQL
|
|
|
|
cmake ../ -DOPENSSL_ROOT_DIR=../../server/libraries/openssl-prebuild/linux_arm32v7/ -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost/ -DCMAKE_INSTALL_PREFIX=../out
|