Firefox build instructions

Discussion about official Mozilla Firefox builds
Post Reply
infiniteedge
Posts: 73
Joined: October 19th, 2003, 10:52 am

ms vs .net 2003

Post by infiniteedge »

im pretty new at this, but ive got a copy of ms vs .net 2003 that i'd like to put to use. pretty much all of the build instruction here cover cygwin, gcc, or vc 7 compilers. if someone can pretty much hold my hand through my first build on .net 2003 i'll put out a build every few days, bug-permitting.
catchwreka
Posts: 119
Joined: December 6th, 2003, 9:20 pm
Location: New Zealand

Post by catchwreka »

The site below provides information on building on .NET 2003. If that isn't explanation enough, ask more questions :D

http://iterator.besmirched.org/mozilla/mozbuild.html
pjm
Posts: 1
Joined: January 22nd, 2004, 3:53 pm

atlbase.h error due to bad INCLUDE envvar

Post by pjm »

for the record, here's a problem I ran into and resolved:

MSVC 6 / Win2K:

Code: Select all

make[1]: Entering directory `/cygdrive/e/work/mozilla/obj-i686-pc-cygwin/js/src/xpconnect/src'
nsScriptError.cpp
Building deps for /cygdrive/e/work/mozilla/js/src/xpconnect/src/nsScriptError.cpp
/cygdrive/e/work/mozilla/build/cygwin-wrapper cl -FonsScriptError.obj -c -DOSTYPE=\"WINNT5.0\"
[ ... lots of switches ... ]
/cygdrive/e/work/mozilla/js/src/xpconnect/src/nsScriptError.cpp
nsScriptError.cpp
e:/work/mozilla/js/src/xpconnect/src/xpcprivate.h(125) : fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
make[1]: *** [nsScriptError.obj] Error 2

It turns out this was because I had a bunch of cygwin-style colon-separated paths in my INCLUDE envvar:

Code: Select all

INCLUDE="/e/msvc/VC98/ATL/INCLUDE:/e/msvc/VC98/INCLUDE:/e/msvc/VC98/MFC/INCLUDE:
E:\\msvc\\VC98\\atl\\include;E:\\msvc\\VC98\\mfc\\include;E:\\msvc\\VC98\\include;"

Only the Windows-style semicolon-separated paths are necessary.

Because this envvar is not actually passed on the command line, there is no need to put in cygwin-style pathnames. It is instead used internally by cl.exe.

hopefully this will help someone out in the future.
FinFangFun
Posts: 121
Joined: August 19th, 2003, 11:57 am
Contact:

Post by FinFangFun »

I can't find where to download cvs so i can download from the tree.
I found a wincvs but it does not have a comand prompt option i think
catchwreka
Posts: 119
Joined: December 6th, 2003, 9:20 pm
Location: New Zealand

Post by catchwreka »

FinFangFun wrote:I can't find where to download cvs so i can download from the tree.
I found a wincvs but it does not have a comand prompt option i think


Homepage: http://www.cvshome.org/dev/codewindow.html

Direct download: http://ftp.cvshome.org/release/binary/win32/cvs-1-11-9.zip
zipfruder
Posts: 6
Joined: March 25th, 2003, 10:32 pm

Post by zipfruder »

nm.

if gcc segfaults, you know your on unstable.
FinFangFun
Posts: 121
Joined: August 19th, 2003, 11:57 am
Contact:

Post by FinFangFun »

Thanks , was being dumb with cvs ...
Instaled it with cygwin now ...
I download firebird tarball from maxheadroom what is the comand I should use so cvs update both mozilla and firebird needed files ?

This is my .mozconfig btw , does it look ok ?

Code: Select all

GLIB_PREFIX=c:/mozilla/w32build/vc7
LIBIDL_PREFIX=c:/mozilla/w32build/vc7
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-composer
ac_add_options --disable-profilesharing
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-shared
ac_add_options --disable-installer
ac_add_options --enable-static
ac_add_options --enable-crypto
ac_add_options --enable-optimize="-Oxs -G7 -arch:SSE"
ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices,inspector


Yeah , I will be using Vs.net 2003

[EDITED] I foudn the following comand to update my tree
make -f mozilla/client.mk checkout MOZ_CO_FLAGS=-PA
Is this command right ?
Why the heck its taking huge amounts of my upload bandwitth ? (15kb/s)

[EDITED2]
Disregards this update , because i fixed the erros :) guess i need a little more sleep :)

[EDITED3]
Uhuuuu , my firebird is runnign fine :)
Posting from it.
I still wanna know the best comand to update my tree , if my .mozconfig is good
Wich files do I have to edit in order to be able to show my name and build type in the about ?
Is there any .log file to see how long did it take to built ? i could not find it ...
@waldo My .mozconfig have all the things from the ben "official" build with some option i got over !iterator! site
Last edited by FinFangFun on January 24th, 2004, 10:38 pm, edited 3 times in total.
User avatar
Waldo
Posts: 596
Joined: July 29th, 2003, 8:21 am
Location: Cambridge, MA
Contact:

Post by Waldo »

FinFangFun wrote:This is my .mozconfig btw , does it look ok ?

You'd probably be better off using more of the default options instead of manually reconfiguring everything...see the section in Ben Goodger's instructions on creating a .mozconfig.
Chasm
Posts: 32
Joined: February 3rd, 2003, 3:13 pm
Location: North Carolina

Free .NET!

Post by Chasm »

Lots of people seem to be interested in building with VS .NET, and many people don't know that you can actually get the command-line tools for free!

http://msdn.microsoft.com/library/defau ... mework.asp
(Note that whatever version of the .NET SDK you compile with must match the framework on your system)
Chasm
Posts: 32
Joined: February 3rd, 2003, 3:13 pm
Location: North Carolina

Post by Chasm »

ok, I tried building it, I'm following the 14 steps at http://texturizer.net/firebird/build.html and then I went to gemal's site when I got the midl error, then eventually I went to http://home.earthlink.net/~nilsoncain/t ... ebird.html . I'm using gcc, running win XP pro out of the box, athlon 1.2 GHz, 512 ram. I get the following error after a while (half an hour?)

c:/mozilla/mozilla/gfx/src/windows/nsRenderingContextWin.cpp: In member function 'void nsRenderingContextWin::InitBidiInfo()';
c:/mozilla/mozilla/gfx/src/windows/nsRenderingContextWin.cpp:2947: cannot convert 'UINT[2]' to 'WCHAR*' in assignment
make[5]: *** [nsRenderingContextWin.o] Error 1
make[5]: Leaving directory '/cygdrive/c/mozilla/mozilla/gfx/src/windows'
make[4]: *** [libs] Error 2
make[4]: Leaving directory '/cygdrive/c/mozilla/mozilla/gfx/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory '/cygdrive/c/mozilla/mozilla/gfx'
make[2]: *** [tiers_9] Error 2
make[2]: Leaving directory '/cygdrive/c/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory '/cygdrive/c/mozilla/mozilla'
make: *** [build] Error 2

and my .mozconfig

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-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-optimize
ac_add_options --enable-extensions=cookie,xml-rpc,xmlextras,p3p,pref,transformiix,universalchardet,typeaheadfind,webservices
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1

please help!!!

EDIT: Building from a tarball from Oct 8, 2003 (I think it was the 0.7 release)
User avatar
Jimmy_C
Posts: 186
Joined: November 10th, 2002, 5:20 pm
Location: Penn Hills, PA

To Branch or not to Branch? That is the question...

Post by Jimmy_C »

How do I tell whether or not I am building from the branch or trunk code? Note that I already downloaded the source via CVS via <a href="http://daihard.home.comcast.net/firebird/build.html">Daihard's tutorial</a> (awesome instructions, BTW) and a modified .mozconfig file.
Linux user since Nov. 31, 2003!
catchwreka
Posts: 119
Joined: December 6th, 2003, 9:20 pm
Location: New Zealand

Re: To Branch or not to Branch? That is the question...

Post by catchwreka »

Jimmy_C wrote:How do I tell whether or not I am building from the branch or trunk code? Note that I already downloaded the source via CVS via <a href="http://daihard.home.comcast.net/firebird/build.html">Daihard's tutorial</a> (awesome instructions, BTW) and a modified .mozconfig file.


Daihard's tutorial is for a trunk build. Details on how to build a branch build are located one page back in this thread.
User avatar
D503
Posts: 665
Joined: August 1st, 2003, 5:27 am
Location: Adelaide, Australia
Contact:

Post by D503 »

I'm confused. Do I need cgywin to build or can I just use MinGW? If so what files from mingw.org do I need?
I've downloaded wintools.zip and will download firefox-source-0.8.tar.bz2 as I'm on dial-up and cvs isn't a good option for me.
I want to build an optimised AMD K6-2 build using:
#AMD K6-2
ac_add_options --enable-optimize="-march=k6-2 -pipe -mmmx -m3dnow -ffast-math -ffloat-store -fforce-addr -ftracer -Os"

The build system I will use is a Celeron 1.8 ghz, 256mb ram, winxp pro, laptop (hey its beats building on the AMD K6-2 ;-p )

I wish the build instructions were a little more clearer for dolts like me :-)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

Weblog
Unofficial Builds
Muzik
User avatar
Christopher
Posts: 249
Joined: April 14th, 2003, 10:45 am
Location: Stockholm, Sweden
Contact:

Post by Christopher »

Hmm.. Are there any "help me, i don't nearly understand a thing" build instructions for OS X and Xcode?
sasquatch
Posts: 6022
Joined: November 25th, 2003, 8:56 am

Post by sasquatch »

go here: http://www.mozillazine.org/

and read the directions in the box on the top left of the page.
Post Reply