love-android-sdl2 0.10.1 working build setup
Posted: Wed Jul 27, 2016 4:00 pm
I have used and tested the following to build on Linux (Mint 17.3)
Hopefully it will be of some use to others and should be possible to translate to Windows, I assume same versions will work ok there.
I have installed tool versions independent of existing system installs, I use a shell script to set the needed variables.
Create folder ANDROID
Download the following packages and unzip them to the ANDROID folder
Java JDK 7u79
http://www.oracle.com/technetwork/java/ ... 80260.html
Apache Ant 1.9.7
https://ant.apache.org/bindownload.cgi
Andorid NDK r12b
https://developer.android.com/ndk/downloads/index.html
Android SDK r23.0.3
https://developer.android.com/studio/index.html
love-android-sdl2
https://bitbucket.org/MartinFelis/love- ... 0.10.1.zip
or use git:
Run Android SDK, download and install:
Android SDK Platform-tools
Android SDK Built-tools v23.03
Android 6 (API 23) SDK Platform
Android Support Repository v35
Create some symbolic links for ease of admin:
Set environment variables:
Fix 4.8 - 4.9:
Build Love SDL:
Build Game APK:
Create assets folder
Place love file in assets folder
apk should be located at
I'll test the setup with Windows and add how to generate key and create a release ask shortly.
_____________________________________________________________________________
Reference:
https://bitbucket.org/MartinFelis/love- ... id_-_Linux
https://bitbucket.org/MartinFelis/love- ... _Packaging
Hopefully it will be of some use to others and should be possible to translate to Windows, I assume same versions will work ok there.
I have installed tool versions independent of existing system installs, I use a shell script to set the needed variables.
Create folder ANDROID
Code: Select all
mkdir $HOME/ANDROID
Java JDK 7u79
http://www.oracle.com/technetwork/java/ ... 80260.html
Apache Ant 1.9.7
https://ant.apache.org/bindownload.cgi
Andorid NDK r12b
https://developer.android.com/ndk/downloads/index.html
Android SDK r23.0.3
https://developer.android.com/studio/index.html
love-android-sdl2
https://bitbucket.org/MartinFelis/love- ... 0.10.1.zip
or use git:
Code: Select all
git clone https://bitbucket.org/MartinFelis/love-android-sdl2
Code: Select all
$HOME/ANDROID/android_SDK/tools/android
Android SDK Built-tools v23.03
Android 6 (API 23) SDK Platform
Android Support Repository v35
Create some symbolic links for ease of admin:
Code: Select all
cd $HOME/ANDROID
ln -s ./jdk1.7.0_79 java_JDK
ln -s ./android-sdk-linux android_SDK
ln -s ./android-ndk-r12b android_NDK
Code: Select all
export JAVA_HOME=$HOME/ANDROID/java_JDK
export ANDROID_SDK=$HOME/ANDROID/android_SDK
export ANDROID_NDK=$HOME/ANDROID/android_NDK
export ANDROID_SWT=/usr/share/java
export ANDROID_HOME=$ANDROID_SDK
export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_NDK
export ANT=$HOME/ANDROID/apache-ant-1.9.7/bin/
Code: Select all
cd $HOME/ANDROID/android_NDK/toolchains
ln -s ./arm-linux-androideabi-4.9 arm-linux-androideabi-4.8
Code: Select all
cd $HOME/ANDROID/love-android-sdl2
$android_NDK/ndk-build --jobs 3
Create assets folder
Code: Select all
mkdir $HOME/ANDROID/love-android-sdl2/assets
Code: Select all
$ANT/ant debug
Code: Select all
$HOME/ANDROID/love-android-sdl2/bin/love_android_sdl2-debug.apk
_____________________________________________________________________________
Reference:
https://bitbucket.org/MartinFelis/love- ... id_-_Linux
https://bitbucket.org/MartinFelis/love- ... _Packaging