Skip to content

Latest commit

 

History

History
81 lines (73 loc) · 1.36 KB

README.md

File metadata and controls

81 lines (73 loc) · 1.36 KB

flutter_liblelantus

Android

cd scripts/android
./install_ndk.sh
./build_all.sh

Libraries will be output to scripts/android/build

iOS

cd scripts/ios
./build_all

Libraries will be output to scripts/ios/build

Windows

Install dependencies

Run scripts/windows/mxedeps.sh to install MXE and its dependencies, or use the commands below:

sudo apt-get install p7zip-full \
  autoconf \
  automake \
  autopoint \
  bash \
  bison \
  bzip2 \
  cmake \
  flex \
  gettext \
  git \
  g++ \
  gperf \
  intltool \
  libffi-dev \
  libtool \
  libtool-bin \
  libltdl-dev \
  libssl-dev \
  libxml-parser-perl \
  make \
  openssl \
  patch \
  perl \
  pkg-config \
  python \
  ruby \
  scons \
  sed \
  unzip \
  wget \
  xz-utils \
  g++-multilib \
  libc6-dev-i386 \
  lzip \
  gcc-mingw-w64-x86-64 \
  g++-mingw-w64-x86-64

mkdir -p ~/development
cd ~/development
git clone https://github.com/mxe/mxe.git
cd mxe
make cc cmake MXE_TARGETS='x86_64-w64-mingw32.static'
if ! [[ $PATH == *"/mxe"* ]]; then
  echo 'export PATH="$HOME/development/mxe/usr/bin:$PATH"' >> ~/.bashrc  # Prepend to PATH
  source ~/.bashrc
fi
make cmake cmake-conf MXE_TARGETS='x86_64-w64-mingw32.static'

Build

cd scripts/windows
./build_all.sh

(may need to alter permissions like with chmod +x *.sh)

Libraries will be output to scripts/windows/build