Mobile/Fennec/Android OtherBuildEnvs: Difference between revisions

Jump to navigation Jump to search
no edit summary
(rip out outdated mozconfig)
No edit summary
Line 1: Line 1:
==Ubuntu==
=== Quick Script ===
  sudo apt-get update
  sudo apt-get install sun-java6-jdk mercurial ccache
  sudo apt-get build-dep firefox
  wget http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
  tar -xjf android-ndk-r6-linux-x86.tar.bz2
  wget http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
  tar -xzf android-sdk_r12-linux_x86.tgz
  # go get lunch, this will take a while
  ./android-sdk-linux_x86/tools/android update sdk -u      (note: Google changed recently such that logins are required for various unneeded parts. Drop the |update sdk -u| bits to get a GUI.)
  ./android-sdk-linux_x86/tools/android update adb
=== Explained ===
==== Install Java ====
First install the Sun Java jdk6, which the Android SDK depends on. If you're on Ubuntu, you'll need to [https://help.ubuntu.com/community/Repositories/Ubuntu#Adding_Canonical_Partner_Repositories|enable the partners repo] to get it.
  sudo apt-get update
  sudo apt-get install sun-java6-jdk
==== Install Gecko Requirements ====
Then install the usual stuff needed for a firefox build, you probably already have it
  sudo apt-get install mercurial ccache
  sudo apt-get build-dep firefox
==== Install Android NDK====
Download and extract the NDK. NDK revs 4-7 have been tested and confirmed to work.  Builders currently use r5c.
  wget http://dl.google.com/android/ndk/android-ndk-r5c-linux-x86.tar.bz2
  tar -xjf android-ndk-r5c-linux-x86.tar.bz2
==== Install Android SDK ====
You should just install the latest sdk, we set the API level in our manifest files. The sdk download will take a while, make sure you have a decent internet connection and go get coffee, or maybe lunch.
  wget http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
  tar -xzf android-sdk_r12-linux_x86.tgz
  ./android-sdk-linux_x86/tools/android update sdk -u
  ./android-sdk-linux_x86/tools/android update adb
==RedHat==
==RedHat==
=== Fedora 13 ===
=== Fedora 13 ===
Line 56: Line 21:


If you're running Fedora 14 x64, in addition to the Fedora 13 requirements above, you may also need to install some or all of zlib-devel.i686 glibc.i686 glibc-devel.i686 libstdc++.i686
If you're running Fedora 14 x64, in addition to the Fedora 13 requirements above, you may also need to install some or all of zlib-devel.i686 glibc.i686 glibc-devel.i686 libstdc++.i686
==Windows==
==Mac OSX==
WARNING: If you are targeting Gingerbread, OS X Lion cannot be used to build Android itself. You will need to build Android itself with debugging symbols to be able to debug Fennec.
Set up a regular Firefox build environment as explained [https://developer.mozilla.org/en/Mac_OS_X_Build_Prerequisites here] (go up to and including step 3 on that page).
Install the latest versions of the Android [http://developer.android.com/sdk/index.html SDK] and [http://developer.android.com/sdk/ndk/index.html NDK] for Mac OS X.
Once you've unzipped the Android SDK, you'll need to install the Platform SDK using it:
./android-sdk-macosx/tools/android update sdk -u
./android-sdk-macosx/tools/android update adb
Alternatively, you can launch *tools/android* for a GUI which will show you all the available options.
You will need to add one extra line to your [[Mobile/Fennec/Android#Setup_Fennec_mozconfig|mozconfig]]:
ac_add_options --disable-crashreporter
because the crashreporter tools do not cross-compile well.
Confirmed users
586

edits

Navigation menu