Linspire 5.0 firefox build

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Linspire 5.0 firefox build

Susan Tiner
Hello,

I just successfully built/launched a cvs branch HEAD (sources pulled
10/29/2005) firefox (v1.6a1) on a Linspire 5.0 PC. It wasn't simple, so
I thought I'd share the procedure in case some else finds it helpful.

I am a new Linux user working with a brand new Linux box. I am also new
to Mozilla. I have C++ and Java software development experience on Windows.

Thanks.

    -Susan Tiner


machine details
---------------

Operating System: Linspire 5.0
Basic System: Intel CPU 865H chipset
CPU: Intel Celeron D LGA775 2.66GHz 533FSB Socket T
RAM: 512MB DDR400(1 DIMM)

packages
--------

I obtained these from www.linspire.com via the CNR utility. I installed
libs-static-dev, and libx11 to correct a "missing -lXt" configuration
error, but it didn't fix the problem. Installing libxt-dev fixed the
error. The packages are listed in order by most recently installed.

libxt-dev
xlibs-static-dev
libpango1.0-dev
libx11-dev
libpng12-dev
libjpeg62-dev
libtiff4-dev
pkg-config
g++-3.4
GNU C
gcc-3.4
cvs

libraries built from scratch
----------------------------

The libraries are listed in order by most recently built,
to the best of my recollection (I should have taken notes).

To build glib and gtk+, I used the instructions at

http://cryptnet.net/fdp/gtk/local_install.html

I had tried building gtk+ myself before following these instructions,
but got the error:

pkg-config --modversion glib-2.0' returned 2.6.6, but GLIB (2.4.8)***
was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib.

I found a news post stating that this happens when the built version
conflicts with the system version. The recommendation (in the post) was
to uninstall the old glib, but I couldn't uninstall the system glib
without also uninstalling lots of dependent packages.

The remedy per instructions is to install gtk+ in a separate directory
(/home/gtk/local), then, adjust env variables to point to this area.

gtk+-2.8.6
glib-2.8.3
cairo-1.0.0
pango-1.10.1
atk-1.10.1
expat-1.95.8
fontconfig-2.3.90
freetype-2.1.10

.mozconfig
----------
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ffox-debug
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft

building firefox
----------------

sdtpc:~# cvs -d :pserver:[hidden email]:/cvsroot login
Logging in to :pserver:[hidden email]:2401/cvsroot
CVS password: anonymous
sdtpc:~# cvs -d :pserver:[hidden email]:/cvsroot co
mozilla/client.mk
sdtpc:~# cd ~/mozilla
sdtpc:~/mozilla# make -f client.mk checkout MOZ_CO_PROJECT=browser
sdtpc:~/mozilla# make -f client.mk build

Fixed configuration errors by installing packages and building
libraries  listed above.

launching firefox
-----------------
Once the build succeeded, I tried launching firefox but it wouldn't launch.

I did

sdtpc:~# cd ~/mozilla/ffox-debug/dist/bin
sdtpc:~/mozilla/ffox-debug/dist/bin# ./firefox -g

to display the LD_LIBRARY_PATH and SHLIB_PATH values, then

sdtpc:~/mozilla/ffox-debug/dist/bin# emacs ./run-mozilla.sh

to add /home/gtk/local/lib to these paths.
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds