Idiots guide to compiling Firebird?!

Discussion about official Mozilla Firefox builds
irchs
Posts: 47
Joined: June 2nd, 2003, 3:39 pm
Location: monkey land
Contact:

Idiots guide to compiling Firebird?!

Post by irchs »

Is there one?! :)
C}{$
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

What OS?

For Windows, this thread may be useful: http://forums.mozillazine.org/viewtopic.php?t=16657

You also need to follow all the instructions on this site: http://gemal.dk/mozilla/build.html.

That shoudl have you up and running. You have to be able to follow instructions pretty well, though. BTW, you should use the .mozconfig in the thread I mentioned.
User avatar
steeler_fan
Posts: 1189
Joined: June 15th, 2003, 11:00 am
Location: Pixburgh
Contact:

Post by steeler_fan »

nilson wrote:BTW, you should use the .mozconfig in the thread I mentioned.


Yeah, the .mozconfig from Gemal's site didn't seem to work, but nilson's finally did compile (for me anyways)

Anyway, good luck on compiling Firebird (It really is easy once you do it for the first time)
Neil
Zeron
Posts: 1067
Joined: March 6th, 2003, 3:33 pm
Contact:

Post by Zeron »

How about one for Linux?
User avatar
Hooded One
Posts: 1591
Joined: February 5th, 2003, 11:42 am
Location: San Francisco, CA
Contact:

Post by Hooded One »

Yes... I have been trying to make my own XFT build, and it appeared to compile... but the executable just tells me "couldn't find the program MozillaFirebird-bin"
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
SuSE Linux 9.2, Kernel 2.6.8, KDE 3.3.2
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

Zeron wrote:How about one for Linux?

Here's the start. To check out the source file necessary for building Firebird in addition, do the following in your $HOME/.mozconfig file:

Code: Select all

export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1

Here's my sample .mozconfig file.

HTH
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
User avatar
DamianMoran
Posts: 726
Joined: January 30th, 2003, 10:14 pm

Post by DamianMoran »

Ok, I am up to step 12:

Now you are ready to pull the source. This will take a long time! It took me around 2 hours!
cd c:\mozilla\mozilla\
make -f client.mk pull_all

And get error: "make" is not recognised as an internal or external command etc.

I have followed all steps, except 7:

Since we're on a Windows platform we have to convert the Netscape wintools header files into Unix format. Start a Command Prompt and do:
cd c:\mozilla\moztools\include\
c:\mozilla\cygwin\bin\dos2unix.exe *.h
cd libIDL\
c:\mozilla\cygwin\bin\dos2unix.exe *.h

Because that exe does not exist, cygwin did not pull it. Does that have anything to do with my error?
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

I got that same problem...You have to run the cygwin setup again and re-pull those files.
You'll also need to run mozset.bat BEFORE you do any make commands.
User avatar
DamianMoran
Posts: 726
Joined: January 30th, 2003, 10:14 pm

Post by DamianMoran »

Grr... cygwin won't pull any new files, even after I delete the dirs.

And I did run mozset.bat, which is strange.

EDIT: Ok, managed to smack the installer around.. downloading files.
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

If you close the command promt, then you have to run mozset.bat again. When it sets the Environment Veriables, they only last for the session of the consle window.
User avatar
DamianMoran
Posts: 726
Joined: January 30th, 2003, 10:14 pm

Post by DamianMoran »

Right.. after installing again and making sure it grabbed all the sections gemal.dk mentions, dos2unix is still not there; plus it had a few errors during the last stage of installation.

I tried running mozset.bat again right before going to mozilla\mozilla and trying to pull source, but same result.
User avatar
DizzyWeb
Posts: 637
Joined: March 27th, 2003, 9:56 am

Post by DizzyWeb »

Well, without dos2unix it really will never ever work. It will always break.
The author can never, in no way, be held responsible for any harm caused, mental or physical, by reading this post.
markf_home
Posts: 2
Joined: June 1st, 2003, 12:49 pm

Post by markf_home »

DamianMoran wrote:Right.. after installing again and making sure it grabbed all the sections gemal.dk mentions, dos2unix is still not there; plus it had a few errors during the last stage of installation.


1. dos2unix is in cygutils, you need to install that
2. make is in the dev section of cygwin install, install that too.

once you've installed cygutils, you can go to /usr/doc/cygutils-1.1.4 (or whatever version you installed, it'll be /usr/doc/cygutils-x.y.z) and read the file PROGLIST, which tells you it has dos2unix (as well as lots of other conversion utils).

mark fisher
User avatar
DamianMoran
Posts: 726
Joined: January 30th, 2003, 10:14 pm

Post by DamianMoran »

Ok, I solved the problem by getting *ALL* of cygwin which took ages. Now I am wondering how to optimise for AMD/Athlon chips?
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

First you should attempt a build before optimising.

I guess you are using MingW/Cygwin/GCC. I'm not sure if optimising is possible with this.
Post Reply