Mobile/Fennec/Android OtherBuildEnvs: Difference between revisions

From MozillaWiki
< Mobile‎ | Fennec
Jump to navigation Jump to search
(Created page with "==Ubuntu== === Quick Script === sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk mercurial ccache sudo apt-get build...")
 
 
(26 intermediate revisions by 12 users not shown)
Line 1: Line 1:
==Ubuntu==
==RedHat==
=== Quick Script ===
=== Fedora ===
   sudo add-apt-repository ppa:ferramroberto/java
 
   sudo apt-get update
yum install \
   sudo apt-get install sun-java6-jdk mercurial ccache
  cvs zip gcc-c++ glib2-devel gtk2-devel fontconfig-devel libnotify-devel \
   sudo apt-get build-dep firefox
   alsa-lib-devel libXt-devel freetype-devel pkgconfig \
   dbus-glib-devel curl-devel autoconf213 xorg-x11-proto-devel libX11-devel \
   libXau-devel libXext-devel wireless-tools-devel glibc-static yasm
 
Install java: [http://owldevx.wordpress.com/2010/07/06/installing-jdk-in-fedora-13/ http://owldevx.wordpress.com/2010/07/06/installing-jdk-in-fedora-13/]
(See this [http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/ http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/] for F15)
 
Then install Android sdk and ndk :
  wget http://dl.google.com/android/android-sdk_r18-linux.tgz
   tar xzf android-sdk_r18-linux.tgz
   wget http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
   wget http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
   tar -xjf 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
   ./android-sdk-linux_86/tools/android update sdk
  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
  ./android-sdk-linux_x86/tools/android update adb


=== Explained ===
=== Fedora 14 x64 ===
==== Install Java ====
 
First install the Sun Java jdk6, which the Android SDK depends on If you're on Ubuntu 11.04, you'll need to use an addtional repo (ppa) as its not available in the partners repo yet. Others report success using the Maverick partners repo to get it.
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
  sudo add-apt-repository ppa:ferramroberto/java
 
  sudo apt-get update
== Using brew ==
  sudo apt-get install sun-java6-jdk
 
==== Install Gecko Requirements ====
If you're using the brew package management system to install the Android NDK and SDK, you may end up with a build error where the build cannot find the tools/ folder from your SDK. See {{bug|791060}} for details on why this might happen, as well as a workaround.
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, 5 and 6 have been tested and confirmed to work.
  wget http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
  tar -xjf android-ndk-r6-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==
==Windows==
==Mac OSX==

Latest revision as of 01:29, 28 March 2013

RedHat

Fedora

yum install \
 cvs zip gcc-c++ glib2-devel gtk2-devel fontconfig-devel libnotify-devel \
 alsa-lib-devel libXt-devel freetype-devel pkgconfig \
 dbus-glib-devel curl-devel autoconf213 xorg-x11-proto-devel libX11-devel \
 libXau-devel libXext-devel wireless-tools-devel glibc-static yasm

Install java: http://owldevx.wordpress.com/2010/07/06/installing-jdk-in-fedora-13/ (See this http://blog.randell.ph/2011/05/29/fedora-15-prepost-installation-setup/ for F15)

Then install Android sdk and ndk :

 wget http://dl.google.com/android/android-sdk_r18-linux.tgz
 tar xzf android-sdk_r18-linux.tgz
 wget http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2
 tar xjf android-ndk-r6-linux-x86.tar.bz2
 ./android-sdk-linux_86/tools/android update sdk

Fedora 14 x64

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

Using brew

If you're using the brew package management system to install the Android NDK and SDK, you may end up with a build error where the build cannot find the tools/ folder from your SDK. See bug 791060 for details on why this might happen, as well as a workaround.