User Tools

Site Tools


proton:android_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
proton:android_setup [2012/08/02 01:02] jakeproton:android_setup [2013/01/20 12:00] seth
Line 2: Line 2:
  
 ====Compiling for Android from Windows==== ====Compiling for Android from Windows====
-**NEW:**  3/12/2012 - Proton no longer requires Cygwin to be install to compile android apps on Windows!+**NOTE:**  12/28/2012 - Proton doesn't work with the latest Android SDK out of the box, there are some minor changes required. The changes are described [[http://www.rtsoft.com/forums/showthread.php?5604-build-bat-failed-on-Windows-using-ndk-r8b-sdk-20-0-1&p=25039&viewfull=1#post25039|here by ccthien]] or you can try to download the [[http://www.rtsoft.com/forums/showthread.php?5604-build-bat-failed-on-Windows-using-ndk-r8b-sdk-20-0-1&p=24890&viewfull=1#post24890|older sdk]].  Seth plans on updating the examples to build with the latest SDKs soonish.
  
 Originally the Android platform was crippled by requiring all "app" code to be written in Java. Originally the Android platform was crippled by requiring all "app" code to be written in Java.
Line 66: Line 66:
   * In Settings->Applications->Development enable "USB debugging"   * In Settings->Applications->Development enable "USB debugging"
   * After plugging in your phone, in the Win device manager it will probably say "no drivers installed" - click update driver and install them   * After plugging in your phone, in the Win device manager it will probably say "no drivers installed" - click update driver and install them
-  * Typing "abd devices" should show your plugged in phone as a device now.  If so, congrats, you got this far!+  * Typing "adb devices" should show your plugged in phone as a device now.  If so, congrats, you got this far!
  
  
Line 82: Line 82:
  
   * Install [[http://ant.apache.org/bindownload.cgi|Ant]], grab the latest .zip (v1.8.3 at this time) and unzip it to somewhere.   * Install [[http://ant.apache.org/bindownload.cgi|Ant]], grab the latest .zip (v1.8.3 at this time) and unzip it to somewhere.
-  * Add the ant directory to your windows path.  Verify it's working by typing "ant" in a dos prompt, it should do something other than "bad command or file error".+  * Add the ant directory to your windows path.  Verify it's working by typing "ant" in a dos prompt, it should do something other than "bad command or file error"NOTE - the path you add needs to go to the Binaries directory, not just the root ant dir - E.g. C:\Android\apache-ant-1.8.4\bin
   * Download the [[http://developer.android.com/sdk/ndk/index.html|Android NDK]] and unzip it somewhere.  Again, put it somewhere with no spaces in the filenames if possible.  (Not "Program Files"!)   * Download the [[http://developer.android.com/sdk/ndk/index.html|Android NDK]] and unzip it somewhere.  Again, put it somewhere with no spaces in the filenames if possible.  (Not "Program Files"!)
   * Make sure that the environmental variable ANT_HOME exists and is set to your ant path.  (ie, c:\pro\ant)   * Make sure that the environmental variable ANT_HOME exists and is set to your ant path.  (ie, c:\pro\ant)
Line 148: Line 148:
   * Want to clone one of the example apps to be the starting place of a new app? Then read the tutorial on [[:proton_vsrename|how to create a new project by copying from a Proton sample app]].   * Want to clone one of the example apps to be the starting place of a new app? Then read the tutorial on [[:proton_vsrename|how to create a new project by copying from a Proton sample app]].
   * Want to compile faster?  Change call ndk-build in build_prepare.bat to call ndk-build -j8 (or lower than eight if you don't have 8 threads on your multicore cpu)   * Want to compile faster?  Change call ndk-build in build_prepare.bat to call ndk-build -j8 (or lower than eight if you don't have 8 threads on your multicore cpu)
- 
proton/android_setup.txt · Last modified: 2017/05/22 08:33 by seth