|
Roll Your Own XFT Mozilla
Xfree86-4.3 or better now has built in Xft support which greatly improve the look of fonts in KDE or Gnome when Anti-Aliased fonts are enabled.
1) Upgrade the following packages:
XFree86-4.3
XFree86-100dpi-fonts-4.3
XFree86-75dpi-fonts-4.3
XFree86-libs-4.3
XFree86-xfs-4.3
2) If you can't locate an Xft enabled version of Mozilla for your distro or if you'd rather build your own Mozilla with XFT (anti-alias fonts), just follow the instructions below after upgrading your XFree packages.
Mozilla-XFT Screenshot
3) From a console type mkdir /opt/mozilla-source, then download the latest stable Mozilla source from the link below and save to the new/opt/mozilla-source directory.
mozilla-source-1.2.1.tar.bz2
4) Type cd /opt/mozilla-source.
5) Unzip the file with:
tar xvjf ./mozilla-source-1.2.1.tar.bz2
6) Next, type:
cd mozilla
touch .mozconfig
Open the .mozconfig file you just created with your favorite text editor and add whatever options you see fit, I used:
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-optimize="-O2 -march=i686"
ac_add_options --enable-xft
Note:
Change march=i686 to the appropriate setting for your system. To disable Mail-News or Composer, add the following entries.
ac_add_options --disable-mailnews
ac_add_options --disable-composer
7) Type:
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
export MOZ_INTERNAL_LIBART_LGPL=1
Now we compile Mozilla with:
./configure
make
The make command will take a very long time, over an hour for me on a 1.4Ghz pc.
9) Normally the next step would be "make install" but we'll need to remove all the junk and keep the good stuff by typing:
cd xpinstall/packager
make
This will create a tarball in /opt/mozilla-source/mozilla/dist. Next, remove any previous versions of Mozilla and install the new Mozilla in /usr/local with:
cd /usr/local
tar xzvf /opt/mozilla-source/mozilla/dist/mozilla-i686-pc-linux-gnu.tar.gz
10) You should now be able to run Mozilla with the commands below, feel free to make or update desktop shortcuts to point to the new Mozilla. Once you determine Mozilla is running satisfactory it's safe to go ahead and delete the mozilla-source directory in /opt, don't forget to save the mozilla-i686-pc-linux-gnu.tar.gztarball first.
/usr/local/mozilla/mozilla (opens browser)
/usr/local/mozilla/mozilla -mail (opens mail-news client)
/usr/local/mozilla/mozilla -edit (opens composer)
注意,在其他的路径一样可以编译成功,但是不建议用src的rpm包编译!!! |
|