Mobile/Fennec/Android OtherBuildEnvs

From MozillaWiki
< Mobile‎ | Fennec
Jump to: navigation, search

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.