lets-eat-gary Posted July 14, 2005 Report Share Posted July 14, 2005 Hi. Are there any good guides to installing firefox from source? I have recently learnt how to recompile the kernel and I figured as I use firefox every single day it was worth compiling. I have tried to follow the guide on the firefox website but it failed. Any pointers would be great. Cheers Moved from 'Software' to 'Terminal Shell Commands, Kernel and Programming' - Artificial Intelligence Quote Link to comment Share on other sites More sharing options...
daniewicz Posted July 14, 2005 Report Share Posted July 14, 2005 I have built firefox in the past using these instructions: # Extract: tar xvjf firefox-1.0-source.tar.bz2 # Change your current working directory to the new one: cd mozilla/ # There you should create a file .mozconfig # Compile the sourcecode: gmake -f client.mk build (or gmake -f client.mk build > filename.txt 2>&1 || exit to write compiler screen output to a file) # Once the build has finished, you can find the finished product in ~/mozilla/dist/bin. A typical .mozconfig looks like this: . $topsrcdir/browser/config/mozconfig 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-xft ac_add_options --disable-freetype2 ac_add_options --enable-default-toolkit=gtk2 ac_add_options --enable-static ac_add_options --disable-shared ac_add_options --enable-optimize="-O2 -march=athlon-xp -mfpmath=sse -msse -mmmx -m3dnow" My experience has always been that my builds are slower than the executable version downloaded directly from the firefox website. I played around with compiler optimization flags, but never could achieve the speeds of the executable version as measured by a benchmark called the Scragz test (search the MozillaZine forum). As an aside, the firefox included with Mandrake as an rpm was always slower than the executable from firefox as well. Quote Link to comment Share on other sites More sharing options...
lets-eat-gary Posted July 15, 2005 Author Report Share Posted July 15, 2005 Thanks for the advice daniewicz. I had noticed that the binary downloaded from mozilla.org was faster than RPMS in mandrake, suse, etc. I shall have an attempt to install from source. Cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.