Mobile/Fennec/Android: Difference between revisions

update NDK download instructions
No edit summary
(update NDK download instructions)
Line 23: Line 23:


* Standard [https://developer.mozilla.org/En/Linux_Build_Prerequisites Linux build environment] or [https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites Mac OS X build environment]
* Standard [https://developer.mozilla.org/En/Linux_Build_Prerequisites Linux build environment] or [https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites Mac OS X build environment]
* [http://developer.android.com/sdk/ndk/index.html Android r3 NDK]
* [http://ftp.mozilla.org/pub/mozilla.org/mobile/source/ Android NDK] - This version is based on the original [http://developer.android.com/sdk/ndk/ Android NDK], modified to include C++ standard libraries and sys/queue.h.
* [http://developer.android.com/sdk/ Android SDK]
* [http://developer.android.com/sdk/ Android SDK]


Line 35: Line 35:
   wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz
   wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz
   tar xjf android-sdk_r06-linux_86.tgz
   tar xjf android-sdk_r06-linux_86.tgz
   wget http://crystax.net/data/android-ndk-r4-linux-x86-crystax-1.tar.bz2
   wget http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2
   tar xjf android-ndk-r4-linux-x86-crystax-1.tar.bz2
   tar xjf http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2
   .android-sdk-linux_86/tools/android update sdk
   .android-sdk-linux_86/tools/android update sdk


Line 43: Line 43:
Download the SDK and NDK:
Download the SDK and NDK:


  wget http://dl.google.com/android/android-sdk_r05-linux_86.tgz
  wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz
  wget http://dl.google.com/android/ndk/android-ndk-r3-linux-x86.zip
  wget http://ftp.mozilla.org/pub/mozilla.org/mobile/source/android-ndk-r4c-0moz3.tar.bz2


Then unpack them:
Then unpack them:


  unzip android-ndk-r3-linux-x86.zip
  tar xvfj android-ndk-r4c-0moz3.tar.bz2
  tar xvfz android-sdk_r05-linux_86.tgz
  tar xvfz android-sdk_r06-linux_86.tgz


Install Java runtime and JDK:
Install Java runtime and JDK:
Line 77: Line 77:
   
   
  # Add the correct paths here:
  # Add the correct paths here:
  ac_add_options --with-android-ndk="CHANGE/PATH/TO/android-ndk-r3"
  ac_add_options --with-android-ndk="CHANGE/PATH/TO/android-ndk-r4"
  ac_add_options --with-android-sdk="CHANGE/PATH/TO/android-sdk-linux_86/platforms/android-8"
  ac_add_options --with-android-sdk="CHANGE/PATH/TO/android-sdk-linux_86/platforms/android-8"
  ac_add_options --with-android-tools="CHANGE/PATH/TO/android-sdk-linux_86/tools"
  ac_add_options --with-android-tools="CHANGE/PATH/TO/android-sdk-linux_86/tools"
Line 156: Line 156:
Debugging with gdbserver requires root access.  If you have not rooted your phone, search the web for instructions for your particular device.
Debugging with gdbserver requires root access.  If you have not rooted your phone, search the web for instructions for your particular device.


If you do not already have gdbserver on your device (use <tt>adb shell gdbserver</tt> to check), you can push a pre-built version from the NDK.  The Crystax NDK package does not seem to include gdbserver, but the Google NDK does.
If you do not already have gdbserver on your device (use <tt>adb shell gdbserver</tt> to check), you can push a pre-built version from the NDK.


  adb push /PATH/TO/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/gdbserver /data/local
  adb push /PATH/TO/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/gdbserver /data/local
canmove, Confirmed users
1,584

edits