Android.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 1. Start from readme.txt
  2. step by step video tutorial:
  3. http://www.youtube.com/watch?v=d8eHHr_KHgQ
  4. 2a. Examples folder have configured android project
  5. =================================================================================================
  6. How to build. Steps:
  7. - Install JDK version 6/7
  8. - Install Android NDK (https://developer.android.com/tools/sdk/ndk/index.html) and set it up
  9. - Install Android SDK Tools (https://developer.android.com/intl/ru/sdk/index.html#Other),
  10. Launch SDK Manager and install Android SDK v16
  11. - Install apache-ant (http://ant.apache.org/bindownload.cgi)
  12. - Configure environment variables properly:
  13. NDK_ROOT points to root NDK folder
  14. example: d:\android\android-ndk-r9c\
  15. ANDROID_HOME points to root Android SDK folder
  16. example: d:/android/android-sdk/
  17. JAVA_HOME points to JDK
  18. example: c:\Program Files (x86)\Java\jdk1.6.0_26\
  19. - Add necessary paths to environment variable PATH:
  20. JDK
  21. example: "c:\Program Files (x86)\Java\jdk1.6.0_26\bin\"
  22. apache-ant
  23. example: d:\android\apache-ant\bin\
  24. NDK tools
  25. example: d:\android\android-ndk-r9c\
  26. Android SDK tools and platform-tools
  27. example: d:\android\android-sdk\platform-tools\
  28. example: d:\android\android-sdk\tools\)
  29. - Copy latest source code (and don't forget to update it if you updated SDL)
  30. from SDL/android-project/src/
  31. to oxygine-framework/oxygine/SDL/android/lib/src/
  32. - Go to oxygine-framework\examples and choose any example. For example "Demo"
  33. - Try to build and run it using these scripts located in proj.android folder*:
  34. - build native part:
  35. build.cmd
  36. - build complete application in debug mode:
  37. ant_debug.bat
  38. - install it to device and run (using adb):
  39. install.bat
  40. * there is also build-run.bat includes these 3 steps
  41. !!!note!!!:
  42. Folder containing oxygine-framework should have the exact name 'oxygine-framework'
  43. not 'oxygine-framework-master' not 'oxygine-framework.git' etc.
  44. otherwise you would see error:
  45. > Android NDK: jni/src/Android.mk: Cannot find module with tag 'oxygine-framework'
  46. 2b. You could generate your own android build config.
  47. =================================================================================================
  48. - You need installed Python 2.7
  49. - You need to run this script
  50. oxygine-framework\tools\gen_template.py
  51. example:
  52. python gen_template.py MyProject -t android -d path/to/MyProject/