-
Notifications
You must be signed in to change notification settings - Fork 397
Compiling for Android
Ben Dol edited this page Apr 24, 2015
·
12 revisions
Download the following files:
- Android SDK http://developer.android.com/sdk/installing/index.html?pkg=tools
- Android NDK R10d https://developer.android.com/tools/sdk/ndk/index.html
- Android Libraries for armeabi-v7a http://goo.gl/NER92t
- Java JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Apache ANT http://ant.apache.org/bindownload.cgi
Extract and install the files downloaded.
Put the android libraries inside the android ndk folder.
Put the "libSDL2.so" file inside the android/project/libs/armeabi-v7a
- ANDROID_SDK pointing to the android sdk folder
- ANDROID_NDK pointing to the android ndk folder
- JAVA_HOME pointing to the java folder
- ANT_HOME pointing to the apache ant folder
- ANDROID_NDK
- ANDROID_SDK/platform-tools (to use adb)
- ANDROID_SDK/tools (to use android)
- JAVA_HOME/bin
- ANT_HOME/bin
git clone -b mobile_port https://github.com/edubart/otclient.git otclient-mobile
or simply
git checkout mobile_port
from within the otclient git repository.
Must connect a phone that with a armeabi-v7a processor.
Windows:
Create a script following the "compile_android.sh" logic (we can add one soon).
Linux
Run compile_android.sh script.
Lastly contribute to the project! ;)