Building Mozilla Thunderbird and Mozilla Firebird on Windows
Thursday July 17th, 2003
Henrik Gemal writes: "I'm a Mozilla fan! And being able to build Mozilla Thunderbird and/or Mozilla Firebird on my Windows XP machine sounded cool. I didn't have Microsoft Visual C++ so I needed to build without any tools from Microsoft, aside from Windows XP of couse.
"So here we go: Build Mozilla Thunderbird and/or Mozilla Firebird in 14 easy steps!"
#1 Great Instruction!!
Thursday July 17th, 2003 6:56 AM
That's a great instruction!
#2 Now I can make the leap!
Thursday July 17th, 2003 7:22 AM
Thanks for that Henrik. I've been wanting to make the leap to start building mozilla myself, but without Visual C++, I wasn't sure where to start and was a bit scared to just go for it myself.
With these instructions, I can finally start hacking at the code myself! Thanks a lot!
#3 Cygwin is good byt Mingw is better
Thursday July 17th, 2003 7:39 AM
Yes this is very good idea. But I do not like Cygwin. Has anyone good experience with compiling Firebird or Mozilla with Mingw http://www.mingw.org/ ?
#4 Re: Cygwin is good byt Mingw is better
Thursday July 17th, 2003 7:50 AM
er... the instructions posted do use the Mingw compiler.
Cygwin is needed for various other bits - Cygwin is also used for compiling with Mozilla's primary compiler, MSVC++.
Getting it to work without cygwin would be quite a challenge. I'm not sure Mingw comes with stuff like Perl and CVS, which are needed by the Mozilla build scripts.
#5 Re: Re: Cygwin is good byt Mingw is better
Thursday July 17th, 2003 8:14 AM
Mingw has different philosophy than Cygwin and I like it much better. It is better incorporated to the system as ordinary application. And because perl, cvs, python etc. has also windows version (which are working without Cygwin), there is no problem use them with mingw. But probably there will be neccessary some new #ifdef #endif statements in the source code, like in any multiplatform application which can be compiled with cygwin, mingw and also VC++.
#7 Re: Re: Cygwin is good byt Mingw is better
Thursday July 17th, 2003 8:43 AM
Mozilla moved away from having #ifdefs and alternative files in favour of having a single build process which works on Linux, Mac OS X, other types of *nix and Windows. If you introduce #ifdefs, it means that multiple changes are necessary when the build files are updated.
However, if somebody wanted to create an alternative set of build files which used Mingw and alternative CVS, Perl, etc, tools, I'm sure that could be done. As I said, it would probably prove to be something of a challenge...
#6 gemal gets a gold star
Thursday July 17th, 2003 8:35 AM
Thank God someone finally did this! Anybody know if we can expect to see primary support for GCC/Cygwin/Mingw in the future and get Microsofts name off our web page?
#15 Re: gemal gets a gold star
Thursday July 17th, 2003 9:00 PM
Well, making mozilla win32 build be built with gcc was in the Bugzilla bug report for a long time, it goes way back to around 10,000 or 13,000, something around that. Then the bug report was closed a couple of months ago since there was a need to buried a lengthly bug report since GCC/Mwing start working. Then a couple of new bug report was filed related to this along the way. It have been a work in progress but it's ready for anyone to build it or hack into it.
#23 Why don't we use OpenWatcom then?
Monday July 21st, 2003 6:57 AM
Don't kwnow now, but back them, they where the compilers to beat, and very platform independent ... can check www.openwatcom.org
#21 Re: gemal gets a gold star
Friday July 18th, 2003 6:49 AM
Probably never, since VC++ generates better and faster code. It's definitely good that you can compile with a free compiler, since that opens development up to everyone, but official builds will continue to be made with the Microsoft compiler.
#8 Yikes !!!
Thursday July 17th, 2003 9:15 AM
To summarize, I'll need nearly 4GB of spare HDD space, spend 2 hours downloading the source, and 4 hours building it? Forget it! I think I'll just stick with downloading binaries, and leave the building work to others . . . !
#9 Re: Yikes !!!
Thursday July 17th, 2003 10:12 AM
I don't know why they don't have a CVS checkout that will skip the Seamonkey stuff that you don't need.
#13 Re: Re: Yikes !!!
Thursday July 17th, 2003 2:04 PM
there is really relatively little seamonkey stuff
#10 Compiling without Cygwin
Thursday July 17th, 2003 11:27 AM
Why is it that most software that originated (or is built concurently) on *Nix, requires Cygwin or Mingw to build on Windows with gcc?
This is not a flame, I am just curious.
#11 Re: Compiling without Cygwin
Thursday July 17th, 2003 11:53 AM
Cygwin basically provides the ability to run unix style command prompt under windows, as gcc doesn't work with windows command prompt (dos) and doesn't have a windows version basically.
#20 Re: Compiling without Cygwin
Friday July 18th, 2003 6:07 AM
IIRC, software needs cygwin to build when it's using unix style api's as cygwin comes with a dll that provides a unix api on top of windows, whereas mingw provides a set of compilers and header files for createing 'real' windows apps - ie apps that are using the native windows api as oppossed to the unix api.
#12 you should use --enable-optimize for firebird
Thursday July 17th, 2003 2:03 PM
or else it is liable to crash
#14 Thank you!!!
Thursday July 17th, 2003 4:54 PM
Finally!! We can all compile Mozilla. :)
I always thought it sucked that you needed a Microsoft product to compile a open source program.
So this is wonderful news! Thank you so much for this...
With that... I'm off to go compile a big lizard! :)
Thursday July 17th, 2003 9:09 PM
I'm at step 12 without a hitch! (Now just need to pull the source and build it) Awesome step-by-step introduction. Thanks a ton.
#17 Re: Woot!
Thursday July 17th, 2003 10:57 PM
CVS checkout was less than 30min. for me. Did encounter the 'midl' build failure, Gemal already has an answer for that on the build instruction page.
#18 compile to cygwin's x11 version
Thursday July 17th, 2003 11:21 PM
How easy would Firebird be to compile to run inside Cygwin's X11 server, as opposed to as a Windows app?
#19 Compiling current CVS
Friday July 18th, 2003 1:10 AM
current CVS is somewhat broken, but the nice folks on forums have found a workaround.
http://forums.mozillazine.org/viewtopic.php?t=16105 # configure # make export in * mozilla/toolkit * mozilla/browser * mozilla/xpinstall # make
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030717 Mozilla Firebird/0.6
Sunday July 20th, 2003 5:21 AM
These instructions work for Mozilla itself! Just get rid of the MOZ_THUNDERBIRD stuff. And I recommend you remove the --enable-necko-protocols line, as it leaves you without about:mozilla!
#24 God Damnit
Sunday January 2nd, 2005 9:34 PM
Finally after hours of trying to get it to build, there's coding errors. What a lovely waste of time!
#25 broken build
Friday July 1st, 2005 5:06 AM
Can someone give me some advice. I'm a bit of a newbie to this building stuff. I'm following build instructions for mozilla Thunderbird, but it just doesn't work.
i get to the bit where it says ---> to run - type:
cd c:\mozilla\mozilla\thunderbird\bin\ thunderbird.exe -console
this directory does not exist. there is no thunderbird folder. I guess that means me make has not completed. but it appears to finish without errors....