| 1 |
Before you begin: If you're building a Linux Mozilla tree for embedding |
|---|
| 2 |
into an app for redistribution - for example if you're Linden Lab - |
|---|
| 3 |
then you should read README-linux-linden.txt first for some preconfiguration |
|---|
| 4 |
info which ensures that the Mozilla you build will be binary-compatible with |
|---|
| 5 |
the widest range of x86 Linux versions. |
|---|
| 6 |
|
|---|
| 7 |
1. BUILDING A LLMOZLIB-COMPATIBLE MOZILLA |
|---|
| 8 |
========================================= |
|---|
| 9 |
|
|---|
| 10 |
You can skip this part if you already have a llmozlib-compatible mozilla build |
|---|
| 11 |
(say, in libraries/i686-linux) and just want to hack on llmozlib itself. |
|---|
| 12 |
|
|---|
| 13 |
0. Edit build_mozilla/linux-libxul-bits/mozconfig: |
|---|
| 14 |
* Change GCC_VERSION if desired |
|---|
| 15 |
1. cd build_mozilla |
|---|
| 16 |
2. ./linux-checkout_patch_build.sh |
|---|
| 17 |
[If prompted for a password, simply press return] |
|---|
| 18 |
|
|---|
| 19 |
This will check an appropriate source tree out of the Mozilla CVS repository, |
|---|
| 20 |
patch it with our custom modifications and build it according to our desired |
|---|
| 21 |
configuration. May take an hour or two to run. |
|---|
| 22 |
|
|---|
| 23 |
3. cd .. |
|---|
| 24 |
4. ./copy_products_linux.sh |
|---|
| 25 |
|
|---|
| 26 |
This copies the parts of the built Mozilla tree that we care about, into |
|---|
| 27 |
libraries/i686-linux/* |
|---|
| 28 |
|
|---|
| 29 |
2. BUILDING LLMOZLIB |
|---|
| 30 |
==================== |
|---|
| 31 |
|
|---|
| 32 |
0. Edit build-linux-llmozlib.sh |
|---|
| 33 |
* Change CXX as you see fit. |
|---|
| 34 |
1. ./build-linux-llmozlib.sh |
|---|
| 35 |
|
|---|
| 36 |
This simple builder-script will build the libllmozlib.a library. |
|---|
| 37 |
|
|---|
| 38 |
3. BUILDING THE TEST APPLICATIONS |
|---|
| 39 |
================================= |
|---|
| 40 |
|
|---|
| 41 |
This is an optional step. |
|---|
| 42 |
|
|---|
| 43 |
The main test application (and the only one regularly tested under Linux) |
|---|
| 44 |
is uBrowser, which is a simple web browser which can be interacted with |
|---|
| 45 |
on a 3D surface in OpenGL. It requires the GLUI library which can be |
|---|
| 46 |
downloaded from http://glui.sourceforge.net/ |
|---|
| 47 |
|
|---|
| 48 |
0. Edit tests/ubrowser.llmozlib/ubrowser-linux-build.sh |
|---|
| 49 |
* Change CXX if appropriate. |
|---|
| 50 |
1. cd tests/ubrowser.llmozlib/ |
|---|
| 51 |
2. ./browser-linux-build.sh |
|---|
| 52 |
|
|---|
| 53 |
This simple builder-script will build the 'ubrowser' program. To run: |
|---|
| 54 |
|
|---|
| 55 |
3. cd ../../libraries/i686-linux/runtime_release |
|---|
| 56 |
4. LD_LIBRARY_PATH=`pwd` ../../../tests/ubrowser.llmozlib/ubrowser |
|---|
| 57 |
|
|---|