Mobile/Fennec/Android: Difference between revisions

→‎Mac OS X: I removed the whole wget section and changed wget to curl -O instead. less steps.
m (Emphasize that to run mochitests, you need the device and the host to be on the same network.)
(→‎Mac OS X: I removed the whole wget section and changed wget to curl -O instead. less steps.)
Line 116: Line 116:


To set up a build environment on Mac OS X, you first need to install XCode and a few supplementary build tools via a package manager. To do this, follow steps 1 and 2 of the [https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites Mac OS X Build Prerequisites page]. Once you have completed steps 1 and 2, come back here and continue with the instructions below.
To set up a build environment on Mac OS X, you first need to install XCode and a few supplementary build tools via a package manager. To do this, follow steps 1 and 2 of the [https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Mac_OS_X_Prerequisites Mac OS X Build Prerequisites page]. Once you have completed steps 1 and 2, come back here and continue with the instructions below.
After installing XCode make sure you also have wget installed. If wget is not a recognized command in terminal follow these steps to install it:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz
tar -xzvf wget-1.14.tar.gz
cd wget-1.14
./configure --with-ssl=openssl
make
sudo make install
which wget #Should output: /usr/local/bin/wget


===== Other packages =====
===== Other packages =====
Line 140: Line 130:
Download and extract the [http://developer.android.com/sdk/ndk/ Android NDK]. The NDKs with 64-bit toolchains (x86_64) are recommended because linking Firefox requires a lot of memory. The supported NDK version right now is <b>r8e</b>. Installing newer versions <i>will</i> break your builds (see {{bug|951968}} and {{bug|994859}} for some examples).
Download and extract the [http://developer.android.com/sdk/ndk/ Android NDK]. The NDKs with 64-bit toolchains (x86_64) are recommended because linking Firefox requires a lot of memory. The supported NDK version right now is <b>r8e</b>. Installing newer versions <i>will</i> break your builds (see {{bug|951968}} and {{bug|994859}} for some examples).


  wget http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
  curl -O http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2
  tar -xjf android-ndk-r8e-darwin-x86_64.tar.bz2
  tar -xjf android-ndk-r8e-darwin-x86_64.tar.bz2


Confirmed users
971

edits