Bash scripts to build SFML for Android, using the latest Android NDK
Successfully building SFML requires that you have
cmake
(minimum version is 3.7.2)make
git
unzip
wget
Additional requirements to enable parallel builds (compile SFML for every ABI at the same time):
gnome-terminal
Run build-sfml.sh
followed by the absolute path to your NDK. For example, if your NDK is located at /home/test/android-ndk-r19, then you have to run ./build-sfml.sh /home/test/android-ndk-r19
.
You can install the newest version before building SFML, by executing download-ndk-and-build-sfml.sh
. You can also specify where to install ndk, by providing an absolute path to the script. For example, if you want to install it in /etc/Android, then you should run download-ndk-and-build-sfml.sh /etc/Android
. After downloading the NDK, this script will also run build-sfml.sh
and thus build SFML.
The script will download SFML to ~/SFML. For example, if your username is foo, you will be able to find the downloaded SFML repository at /home/foo/SFML.
The following scripts are created in ~/SFML/build and its subdirectories. They are also run by build-sfml.sh
when it builds SFML for the first time. You can use them to rebuild SFML in case you modify something in it.
Rebuilds SFML for all ABIs.
Rebuilds SFML for the ABI corrisponding to script's directory.