canmove, Confirmed users
1,584
edits
No edit summary |
|||
Line 1: | Line 1: | ||
==Building Fennec and XULRunner== | == Building [[Fennec]] and [[XULRunner]] == | ||
=== Install and run Scratchbox (Maemo only) === | === Install and run Scratchbox (Maemo only) === | ||
Line 9: | Line 9: | ||
'''NOTE 2:''' When you are logged in to scratchbox, you are chroot'ed. This means that /scratchbox/users/YOUR_NAME/home/YOUR_NAME matches to your home directory inside of scratchbox which is /home/YOUR_NAME | '''NOTE 2:''' When you are logged in to scratchbox, you are chroot'ed. This means that /scratchbox/users/YOUR_NAME/home/YOUR_NAME matches to your home directory inside of scratchbox which is /home/YOUR_NAME | ||
=== Install build dependencies === | === Install build dependencies (non-Maemo) === | ||
If you are | If you are ''not'' building for Maemo/Scratchbox, follow the [https://developer.mozilla.org/En/Simple_Firefox_build "Installing build tools" instructions] for your platform. | ||
=== Pull the code from Mercurial === | === Pull the code from Mercurial === | ||
Line 55: | Line 55: | ||
See [https://developer.mozilla.org/en/Configuring_Build_Options Configuring Build Options] for more information about customizing your build settings. | See [https://developer.mozilla.org/en/Configuring_Build_Options Configuring Build Options] for more information about customizing your build settings. | ||
=== | === Build Fennec and XULRunner === | ||
In the mozilla-central directory: | In the mozilla-central directory: | ||
<pre> | <pre> | ||
Line 62: | Line 62: | ||
The build will appear in ../mobilebase (or whatever MOZ_OBJDIR is set to in your mozconfig). | The build will appear in ../mobilebase (or whatever MOZ_OBJDIR is set to in your mozconfig). | ||
== Running Fennec | |||
== Running Fennec == | |||
=== Desktop === | |||
<pre> | |||
cd ../mobilebase/mobile/dist/bin | |||
./fennec | |||
</pre> | |||
You may want to add the $MOZ_OBJDIR/mobile/dist/bin directory to your shell's $PATH so you can just type "fennec" anywhere. | |||
=== Maemo === | |||
If you did the above in a [[Mobile/Build/cs2007q3|Maemo Scratchbox]] for the CHINOOK_ARMEL target, you can run the build on the N800/N810 device. | If you did the above in a [[Mobile/Build/cs2007q3|Maemo Scratchbox]] for the CHINOOK_ARMEL target, you can run the build on the N800/N810 device. | ||
Create a Fennec tarball: | Create a Fennec tarball: | ||
<pre> | |||
cd ../mobilebase/mobile/ | cd ../mobilebase/mobile/ | ||
make package | make package | ||
</pre | </pre> | ||
You'll now have a tarball in mobilebase/mobile/dist/ named fennec-0.3.en-US.linux-arm.tar.bz2. Copy it to your device (you'll probably want to run bunzip2 on it first, since Maemo doesn't include it). | You'll now have a tarball in mobilebase/mobile/dist/ named fennec-0.3.en-US.linux-arm.tar.bz2. Copy it to your device (you'll probably want to run bunzip2 on it first, since Maemo doesn't include it). | ||
Line 76: | Line 87: | ||
Extract and launch from a command line (X Terminal) on the device: | Extract and launch from a command line (X Terminal) on the device: | ||
<pre> | |||
tar xf fennec-0.3.en-US.linux-arm.tar | |||
cd fennec | |||
./fennec | |||
</pre | </pre> | ||
==Building Fennec with the Gecko SDK== | ==Building Fennec with the Gecko SDK== |