To get a successsful build, follow these instructions carefully.
The next time you build, do this:
Open your .mozconfig file with a text editor. You will need to replace the one that you got from Gemal's site with this:
Code: Select all
CC=gcc
CXX=g++
CPP=cpp
AS=as
LD=ld
LDFLAGS=-mwindows
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-composer
ac_add_options --disable-debug
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --disable-tests
ac_add_options --enable-crypto
ac_add_options --enable-strip
ac_add_options --enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help,-wallet
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
(Without preceeding spaces)
Now save the file.
Start your Windows Command Prompt (not Cygwin Bash Shell)
And do this:
Code: Select all
cd D:\mozilla
mozset.bat
cd \mozilla
make clean
This will clean out all the files from the old build, but will not delete your source, so don't worry.
After this process finishes, do not close the command window.
You are next going to type this:
Code: Select all
make -f client.mk
This will update your source tree to the latest version, and proceed to build.
After this finishes, open the Cygwin bash shell (Find it in Start > Program Files [All Programs if on Windows XP] > Cygwin).
Type in the following:
Code: Select all
cd D:/mozilla/mozilla/xpinstall/packager
make MOZ_PKG_APPNAME=MozillaFirebird MOZILLA_BIN="\$(DIST)/bin/MozillaFirebird"
What this will do is take the compiled files from D:\mozilla\mozilla\dist\bin\ and put them in a nice .zip file for you. This file will be located in D:\mozilla\mozilla\dist\.
It will also create another .zip file, located in the same place as the other, containing the GRE which you have just compiled.
I have made a batch file for the automatic building and packaging of Mozilla Firebird on Windows XP. This should work for Windows 2000, and probably Windows 95/98/ME, as well. This batch file has these requirments: 7-zip (http://www.7-zip.org), and assumes that you have set the "short-date format" to "yyyy-mm-dd" in the Control Panel, under date and time, but this is not required. It also assumes that the file that sets youe build environment variables is called mozset.bat, and is located in the directory that the script is run from (usually D:\mozilla or C:\mozilla). To get the script to output .zip files, instead of .7z files, change -t7z to -tzip, and replace the .7z extension on the filenames with .zip.
Code: Select all
call mozset.bat
cd .\mozilla
make clean
make -f client.mk
unix2dos D:\mozilla\mozilla\dist\bin\defaults\pref\*.js
cd .\dist
mkdir MozillaFirebird
move D:\mozilla\mozilla\dist\bin D:\mozilla\mozilla\dist\MozillaFirebird
copy /A D:\mozilla\mozilla\.mozconfig D:\mozilla\mozilla\dist\MozillaFirebird
cd .\MozillaFirebird
"C:\Program Files\7-zip\7z" a -r -t7z MozillaFirebird-i686-pc-cygwin-%date%.7z *
move MozillaFirebird-i686-pc-cygwin-%date%.7z D:\nilson\buildarchive
cd ..\
move MozillaFirebird\bin .\
del MozillaFirebird
cd ..\..\
(You'll need to replace "C:\Program Files\7-zip\7z" with the path to 7-zip's 7z.exe file, and replace the directory names with ones that fit your setup.)
(For all instructions, replace D:\ with the drive that you have the mozilla source on.)
Also, make sure that you read Gemal's entire page and check that all of your build programs are configured correctly.
If you want to build Mozilla or Mozilla Thunderbird, the only thing you'll have to do is change your .mozconfig file. If you are using my batch file, you'll also want to chage thr filename of the archive file created. You should not have to redownload anything.
This is a revision/expansion of an earlier set of instructions by me.