1,316
edits
Praetorian (talk | contribs) |
Praetorian (talk | contribs) |
||
Line 13: | Line 13: | ||
Install the <tt>git</tt> package in order to clone the ScummVM source code repository and keep it up-to-date, and also some additional packages to build the Docker toolchain containers: | Install the <tt>git</tt> package in order to clone the ScummVM source code repository and keep it up-to-date, and also some additional packages to build the Docker toolchain containers: | ||
<code>sudo apt-get update</code> | |||
<code>sudo apt-get upgrade</code> | |||
<code>sudo apt-get install git m4 make</code> | |||
Follow the instructions on the [https://docs.docker.com/engine/install/ubuntu/ official Docker documentation page to install the Docker Engine on Linux]. We tested with Docker Engine Community Edition 19.03.12, (build 48a66213fe) using containerd.io version 1.2.13 on Linux Ubuntu x64 20.04 LTS. | Follow the instructions on the [https://docs.docker.com/engine/install/ubuntu/ official Docker documentation page to install the Docker Engine on Linux]. We tested with Docker Engine Community Edition 19.03.12, (build 48a66213fe) using containerd.io version 1.2.13 on Linux Ubuntu x64 20.04 LTS. | ||
Line 26: | Line 29: | ||
From the Linux bash shell do: | From the Linux bash shell do: | ||
<code>sudo apt-get update</code> | |||
<code>sudo apt-get upgrade</code> | |||
<code>sudo apt-get install git m4 make</code> | |||
*Important note: The instructions below assume that you are running the commands from a Linux bash shell. If you're on Windows, please make sure you '''always have Docker Desktop up and running before launching your Linux bash shell(s)'''. | *Important note: The instructions below assume that you are running the commands from a Linux bash shell. If you're on Windows, please make sure you '''always have Docker Desktop up and running before launching your Linux bash shell(s)'''. | ||
Line 36: | Line 41: | ||
From your Linux host shell do: | From your Linux host shell do: | ||
<code>mkdir -p ~/Workspace</code> | |||
<code>mkdir -p ~/Workspace/android-scummvm-bb/bshomes</code> | |||
<code>touch ~/Workspace/android-scummvm-bb/.bash_history</code> | |||
<code>sudo chmod o+rw ~/Workspace/android-scummvm-bb/.bash_history</code> | |||
Now clone the ScummVM repository: | Now clone the ScummVM repository: | ||
<code>cd ~/Workspace</code> | |||
<code>git clone https://github.com/scummvm/scummvm.git</code> | |||
Also clone the ScummVM dockerized buildbot repository and build the Docker containers: | Also clone the ScummVM dockerized buildbot repository and build the Docker containers: | ||
<code>git clone https://github.com/scummvm/dockerized-bb.git ~/Workspace/android-scummvm-bb/dockerized-bb</code> | |||
<code>cd ~/Workspace/android-scummvm-bb/dockerized-bb</code> | |||
<code>make toolchains/android</code> | |||
At this point the <code>docker images</code> command should return something like the following: | At this point the <code>docker images</code> command should return something like the following: | ||
<code>docker images</code> | |||
REPOSITORY TAG IMAGE ID CREATED SIZE | REPOSITORY TAG IMAGE ID CREATED SIZE | ||
toolchains/android latest 2005faedc472 22 minutes ago 3.9GB | toolchains/android latest 2005faedc472 22 minutes ago 3.9GB | ||
Line 62: | Line 77: | ||
Now launch the Docker container shell: | Now launch the Docker container shell: | ||
<code>docker run -v ~/Workspace/scummvm:/data/scummvm -v ~/Workspace/android-scummvm-bb/bshomes:/data/bshomes/android -v ~/Workspace/android-scummvm-bb/.bash_history:/root/.bash_history -w /data/scummvm -it toolchains/android /bin/bash</code> | |||
= Compiling = | = Compiling = | ||
Line 134: | Line 144: | ||
* <u>Target android-arm-v7a:</u> | * <u>Target android-arm-v7a:</u> | ||
<code>CXX="ccache ${ANDROID_TOOLCHAIN}/bin/aarch64-linux-android21-clang++" PKG_CONFIG_LIBDIR="${ANDROID_TOOLCHAIN}/sysroot/usr/lib/aarch64-linux-android/21/pkgconfig" PATH=${PATH}:"${ANDROID_TOOLCHAIN}/sysroot/usr/bin/aarch64-linux-android/21" make clean; ./configure --enable-verbose-build --enable-all-engines --host=android-arm64-v8a --enable-debug</code> | |||
* <u>Target android-x86</u> | * <u>Target android-x86</u> |
edits