|
|
@@ -10,7 +10,6 @@ How to build. Steps:
|
|
|
- Install Android NDK (https://developer.android.com/tools/sdk/ndk/index.html) and set it up
|
|
|
- Install Android SDK Tools (https://developer.android.com/intl/ru/sdk/index.html#Other),
|
|
|
Launch SDK Manager and install Android SDK v16
|
|
|
-- Install apache-ant (http://ant.apache.org/bindownload.cgi)
|
|
|
|
|
|
- Configure environment variables properly:
|
|
|
NDK_ROOT points to root NDK folder
|
|
|
@@ -23,8 +22,6 @@ How to build. Steps:
|
|
|
- Add necessary paths to environment variable PATH:
|
|
|
JDK
|
|
|
example: "c:\Program Files (x86)\Java\jdk1.6.0_26\bin\"
|
|
|
- apache-ant
|
|
|
- example: d:\android\apache-ant\bin\
|
|
|
NDK tools
|
|
|
example: d:\android\android-ndk-r9c\
|
|
|
Android SDK tools and platform-tools
|
|
|
@@ -36,15 +33,21 @@ How to build. Steps:
|
|
|
to oxygine-framework/oxygine/SDL/android/lib/src/
|
|
|
|
|
|
- Go to oxygine-framework\examples and choose any example. For example "Demo"
|
|
|
-- Try to build and run it using these scripts located in proj.android folder*:
|
|
|
- - build native part:
|
|
|
- build.cmd
|
|
|
- - build complete application in debug mode:
|
|
|
- ant_debug.bat
|
|
|
- - install it to device and run (using adb):
|
|
|
- install.bat
|
|
|
+- Try to build and run it using shell/batch scripts located in proj.android folder*:
|
|
|
+ - build-run.bat
|
|
|
+ * or ./build-run.sh for unix
|
|
|
+
|
|
|
+ build-run.bat includes 4 steps:
|
|
|
+ 1. build C++ code using android-ndk:
|
|
|
+ ndk-build NDK_MODULE_PATH=../../../../
|
|
|
+ 2. build android aplication using gradle and android-sdk:
|
|
|
+ gradlew assembleDebug
|
|
|
+ 3. intall android application to connected android device:
|
|
|
+ adb install -r build/outputs/apk/proj.android-debug.apk
|
|
|
+ 4. run installed application on android:
|
|
|
+ adb shell am start -n org.oxygine.Demo/org.oxygine.Demo.MainActivity
|
|
|
+ * if you have any problems with build check each step manually
|
|
|
|
|
|
- * there is also build-run.bat includes these 3 steps
|
|
|
|
|
|
|
|
|
!!!note!!!:
|