[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Phoenix on linux/sparc



I've gotten Phoenix to compile and run fine.  Here is what I did/used to
get it to compile as of last night.  You may need to apt-get install
some dev packages.
Phoenix .6, btw, runs beautifully.

Replace processor specific flags as appropriate, and download the
mozilla source from here:
http://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.bz2

Quoting from the relevant slashdot post:

http://slashdot.org/comments.pl?sid=64544&cid=5979675

-snip-

Building from source (Score:5, Informative)  
by huhmz (216967) Alter Relationship on Saturday May 17, @09:53AM
(#5979675)   I just built Mozilla Firebird from source, actually i
downloaded the source yesterday, but didn't want to start the build that
late in the night because well... it takes a while to build ;)

The reason I wanted to build from source is that I wanted nifty anti
aliased fonts which the nightly builds doesn't offer.
So...
wget
http://64.12.168.21/pub/mozilla/nightly/latest/mozilla-source.tar.bz2
tar -xjf mozilla-source.tar.bz2
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout
mozilla/browser mozilla/toolkit

Now we are ready to choose build options.
cd mozilla
vi .mozconfig
here is what my .mozconfig contains

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --with-pthreads
ac_add_options --disable-mailnews
ac_add_options --disable-ldap
ac_add_options --enable-xft
ac_add_options --disable-jsd
ac_add_options --enable-crypto
ac_add_options --disable-accessibility
ac_add_options --disable-composer
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O3 -march=pentium3 -mfpmath=sse,387"
ac_add_options --enable-strip

All the --disable- options are beause I only want Firebird and not the
composer, mail, news etc
the --enable-xft is the important one if you want nice anti aliased
fonts.
My --enable-optimize is just some optimizations for my p4
(-march=pentium4 was buggy last time I tried). If you have an or lower
than pentium3 then choose diffrent options (man gcc) or use the more
standard "-O2"
The MOZ_PHOENIX=1 is what tells the build process to build Phoenix (well
Firebird its called now but the option is still MOZ_PHOENIX) and not the
standard mozilla browser.
To start building:
make -f client.mk build
This will take a really long time. Also the configure process might
complain that you are missing some library like Xft or libIDL, in that
case you will have to install it (apt-get install libidl0 libidl-dev)
After the build is complete all the necessary stuff is in dist/bin/ so I
copy that to /opt/firebird:
cp -r -L dist/bin/ /opt/firebird
(the -L option because the dir contains a lot of symlinks that will
break if you don't use -L)
Now you can run firebird with /opt/firebird/MozillaFirebird

I don't know if this is exactly the official way to do it but that's how
I did it.
Good luck

-snip-

Now, I used a modified .mozconfig, as follows:

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
export NODEBUG=1
mk_add_options NODEBUG=1
export MOZ_INTERNAL_LIBART_LGPL=1
mk_add_options MOZ_INTERNAL_LIBART_LGPL=1
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-optimize="-O3 -pipe -mcpu=v9 -mtune=ultrasparc"
ac_add_options --without-system-nspr
ac_add_options --without-system-zlib
ac_add_options --without-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng
ac_add_options --enable-crypto #comment to disable PSM/SSL support
ac_add_options --enable-xft
ac_add_options --enable-svg
ac_add_options --enable-js-ultrasparc
ac_add_options --enable-strip
ac_add_options --with-pthreads
ac_add_options --disable-mailnews
ac_add_options --disable-jsd
ac_add_options --disable-composer
ac_add_options --disable-dtd-debug
ac_add_options --enable-reorder
ac_add_options --disable-ldap
ac_add_options --disable-accessibility


-=-
While this compiled fine on my system (using gcc version 3.3 20030509
(Debian prerelease) )
There is a segfault problem with components/libimglib2.so
I've reported that here:
http://bugzilla.mozilla.org/show_bug.cgi?id=206881

Assuming that your mozilla compile dir is ~/mozilla
The workaround is to recompile ~/mozilla/modules/libpr0n/ by changing
~/mozilla/config/autoconf.mk MOZ_OPTIMIZE_FLAGS line to this:

MOZ_OPTIMIZE_FLAGS = -O -pipe -mcpu=v9 -mtune=ultrasparc

then doing a 
cd ~/mozilla/modules/libpr0n/
make clean ; make
cp ~/mozilla/dist/bin/components/libimglib2.so /usr/firebird/components/

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: