Compare Revisions

Compiling 32-bit Firefox on a Linux 64-bit OS

Revision 345049:

Revision 345049 by Roc on

Revision 473779:

Revision 473779 by cjones on

Title:
Compiling 32-bit Firefox on a Linux 64-bit OS
Compiling 32-bit Firefox on a Linux 64-bit OS
Slug:
Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS
Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS
Tags:
"Developing Mozilla","Build documentation"
"Developing Mozilla","Build documentation"
Content:

Revision 345049
Revision 473779
nn7    <h3>
8      Instructions for Fedora 19
9    </h3>
10    <p>
11      First ensure that your cross-compiler toolchain is installe
 >d.
12    </p>
13    <pre class="brush: bash">
14sudo yum install \
15  ccache cmake gcc gcc-c++ glibc-devel.i686 \
16  libstdc++-devel libstdc++-devel.i686
17</pre>
18    <p>
19      Next, install the Gecko build depedencies.
20    </p>
21    <pre class="brush: bash">
22sudo yum install \
23  autoconf213 \
24  gtk2-devel.i686 gtk+-devel.i686 gtk+extra-devel.i686 \
25  glib-devel.i686 glib2-devel.i686 \
26  dbus-devel.i686 dbus-glib-devel.i686 \
27  alsa-lib-devel.i686 yasm-devel.i686 \
28  gstreamer-devel.i686 gstreamer-plugins-devel.i686 \
29  gstreamer-plugins-base-devel.i686 \
30  libxml2-devel.i686 \
31  freetype-devel.i686 \
32  atk-devel.i686 pango-devel.i686 fontconfig-devel.i686 \
33  cairo-devel.i686 gdk-pixbuf2-devel.i686 \
34  libX11-devel.i686 libXt-devel.i686 libXext-devel.i686 \
35  libXrender-devel.i686 libXau-devel.i686 libxcb-devel.i686
36</pre>
37    <p>
38      Finally, you need to use a .mozconfig that looks like the f
 >ollowing example.
39    </p>
40    <pre class="brush: bash">
41# Flags set for cross-compiling to x86.
42export CROSS_COMPILE=1
43export PKG_CONFIG_PATH=/usr/lib/pkgconfig
44 
45CC="ccache gcc -m32"
46CXX="ccache g++ -m32"
47AR=ar
48ac_add_options --target=i686-pc-linux
49 
50# Normal build flags.  These make a debug browser build.
51ac_add_options --enable-application=browser
52mk_add_options MOZ_MAKE_FLAGS="-s -j6"
53mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../ff-dbg
54 
55ac_add_options --enable-debug
56ac_add_options --disable-optimize
57</pre>
t8      Instructions for Fedorat59      Instructions for Fedora 17

Back to History