Free Visual C++, looking good, we may see alot builders soon

Discussion about official Mozilla Firefox builds
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Ooops

Post by TierMann »

I was using my old VC7 paths still. It's compiling smooth so far.

I'll post an optomized build (-O2 -G7 -arch:SSE) later if it finishes up.

. $topsrcdir/browser/config/mozconfig

GLIB_PREFIX=c:/vc7
LIBIDL_PREFIX=c:/vc7

ac_add_options --disable-debug
ac_add_options --enable-optimize="-O2 -G7 -arch:SSE"
ac_add_options --disable-shared
ac_add_options --enable-static
ac_add_options --disable-accessibility
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-tests
ac_add_options --disable-installer

I'm using the 0.8 release source just so there's no problems.
Also threw in the artwork from http://scragz.com/tech/mozilla/build-info.php

Thanks all
User avatar
Pitreck
Posts: 92
Joined: September 2nd, 2003, 5:18 am
Location: Warsaw, Poland

Post by Pitreck »

As far as i can tell there are problems with compiling with:
ac_add_options --enable-crypto

Code: Select all

configure: error: Building crypto support requires a valid version of the standalone assembler (ml.exe for MSVC). 


and
ac_add_options --enable-svg
ac_add_options --enable-svg-renderer-gdiplus

Code: Select all

checking for Gdiplus.h... configure: error: Building the SVG GDI+ renderer requires an appropriate Microsoft SDK.
Last edited by Pitreck on April 17th, 2004, 7:58 pm, edited 1 time in total.
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

chocoba65 wrote:AFAIK, you also need ML.EXE. I got it from the masm32 package.
---


That seems to work for crypto
I'll have to try an svg build and see what I get


Update:
Same problem. I lack the libraries for svg.
They'll have to be found elsewhere if you want to build with it.
They aren't in masm32, vc tools, or microsoft SDK.
User avatar
Pitreck
Posts: 92
Joined: September 2nd, 2003, 5:18 am
Location: Warsaw, Poland

Post by Pitreck »

TierMann wrote:That seems to work for crypto

Indeed, but i have another build problem :(

Code: Select all

make[4]: Entering directory `/cygdrive/c/mozilla/mozilla/nsprpub/config'
sh /cygdrive/c/mozilla/mozilla/nsprpub/build/cygwin-wrapper cl -Fonow.obj -c
 -W3 -nologo -GF -Gy -MD -Oxs -G7 -arch:SSE   -UDEBUG -U_DEBUG -UWINNT -DMOZILLA
_CLIENT=1 -DNDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWIN95=1 -D_PR_GLOBAL_THREADS_ONLY=1 -
D_X86_=1  -DFORCE_PR_LOG   /cygdrive/c/mozilla/mozilla/nsprpub/config/now.c
now.c
c:/mozilla\mozilla\nsprpub\config\now.c(43) : fatal error C1083: Cannot open inc
lude file: 'windows.h': No such file or directory
make[4]: *** [now.obj] Error 2
make[4]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub/config'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/c/mozilla/mozilla/nsprpub'
make[2]: *** [nspr] 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

Checked on MOZILLA_1_7_BRANCH, MOZILLA_1_7b_RELEASE and "main" source
On VS .NET 2003 everything was OK
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

You'll find windows.h in either Microsoft SDK\Include or in Microsoft Visual Studio .NET\Platform SDK\Include.

You just need to make sure the path to it is in your "Include" environment variable. That should get you past the problem.

(remember to restart your command prompt each time you change the variables in windows, you won't need to if you just do it from the prompt itself using the set command)

You may allready know this, but I just try the simplest things first :)
green13
Posts: 82
Joined: February 28th, 2004, 9:59 am

Post by green13 »

At first glance, this is almost too good to be true!

Let me ask the most obvious question first. If one is switching from a MingW/GCC environment to this new M$ environment, do I simply follow the existing Firefox build instructions for using MS .NET Pro/VSC++ and substitute as necessary? For example, these instructions - http://iterator.besmirched.org/mozilla/mozbuild.html
Last edited by green13 on April 18th, 2004, 9:23 am, edited 1 time in total.
User avatar
BlueFyre
Posts: 1985
Joined: February 11th, 2004, 4:33 pm

Post by BlueFyre »

That's what I did I beleive... :P My very first build was a MingW/GCC on cygwin build...
If you notice this notice you may notice that this notice is not worth noticing.
green13
Posts: 82
Joined: February 28th, 2004, 9:59 am

Post by green13 »

BlueFyre

Are you saying you went from MingW/GCC first to MS VS .NET for all of your builds. Is that correct?
User avatar
BlueFyre
Posts: 1985
Joined: February 11th, 2004, 4:33 pm

Post by BlueFyre »

What I meant is that I was compiling with MingW/GCC before I converted to MS VS .NET ...
If you notice this notice you may notice that this notice is not worth noticing.
green13
Posts: 82
Joined: February 28th, 2004, 9:59 am

Post by green13 »

BlueFrye
Which build instructions did you follow when you changed to M$ AND/OR what did you do differently b/t the 2 environments?
User avatar
BlueFyre
Posts: 1985
Joined: February 11th, 2004, 4:33 pm

Post by BlueFyre »

http://iterator.besmirched.org/mozilla/mozbuild.html

Only thing I really changed was the mozset.bat (declaring more variables) and a couple lines in .mozconfig (specifying compiler)

Also if you're planning a optimized one the optimization lines...

[Edit] Also you will need to package with your builds msvcp71.dll and msvcr71.dll
If you notice this notice you may notice that this notice is not worth noticing.
User avatar
BlueFyre
Posts: 1985
Joined: February 11th, 2004, 4:33 pm

Post by BlueFyre »

Here's my mozset.bat if that's any help

Code: Select all

@echo off
set MOZILLA_OFFICIAL=1
set BUILD_OFFICIAL=1
set MOZ_TOOLS=c:\mozilla\moztools
set GLIB_PREFIX=c:\mozilla\w32build\vc7
set LIBIDL_PREFIX=c:\mozilla\w32build\vc7
set MOZ_SRC=c:\mozilla\mozilla
call c:\"Program Files"\"Microsoft Visual Studio .NET 2003"\Common7\Tools\vsvars32.bat
set PATH=%PATH%;c:\cygwin\bin;%GLIB_PREFIX%\bin;%LIBIDL_PREFIX%\bin;%MOZ_TOOLS%\bin;
set HOME=c:\mozilla
set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot


Also removing GCC from cygwin and some other stuff was helpful because the compiler's kept on using the wrong one because they had the same file name or something...
If you notice this notice you may notice that this notice is not worth noticing.
User avatar
Fru T Bunn
Posts: 31
Joined: March 19th, 2004, 5:17 pm
Location: UK
Contact:

Post by Fru T Bunn »

I have removed %LIBIDL_PREFIX%\bin from the path as it is being repeated by %GLIB_PREFIX%\bin.

Probably nothing.
User avatar
Pitreck
Posts: 92
Joined: September 2nd, 2003, 5:18 am
Location: Warsaw, Poland

Post by Pitreck »

TierMann wrote:You'll find windows.h in either Microsoft SDK\Include or in Microsoft Visual Studio .NET\Platform SDK\Include.

You just need to make sure the path to it is in your "Include" environment variable. That should get you past the problem.

Thank you very much!
Unfortunetly i still can't build Firefox :( windows.h isn't the only needed file for me:
Microsoft SDK\include\windef.h
Microsoft SDK\include\winnt.h
Microsoft SDK\lib\uuid.lib
Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrtd.lib
Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrt.lib

I'm currently stuck on nspr4_s.lib, which i don't know where to take from :(
Last edited by Pitreck on April 19th, 2004, 3:47 am, edited 1 time in total.
User avatar
shill
Posts: 1443
Joined: December 30th, 2002, 2:00 am
Location: Behind you!
Contact:

Post by shill »

Pitreck wrote:
TierMann wrote:You'll find windows.h in either Microsoft SDK\Include or in Microsoft Visual Studio .NET\Platform SDK\Include.

You just need to make sure the path to it is in your "Include" environment variable. That should get you past the problem.

Thank you very much!
Unfortunetly i still can't build Firefox :( windows.h isn't the only needed file for me:
Microsoft SDK\include\windef.h
Microsoft SDK\include\winnt.h
Microsoft SDK\lib\msvcrt.lib
Microsoft SDK\lib\uuid.lib
Microsoft Visual Studio .NET 2003\Vc7\lib\msvcrtd.lib

I'm currently stuck on nspr4_s.lib, which i don't know where to take from :(

AFAIK, you need to install the masm32 package and copy <code>masm32\bin\LIB.EXE</code> into <code>Microsoft Visual C++ Toolkit 2003\bin</code>.
EDIT: It's still erroring out when trying to build nspr4_s.lib... but this time it's a different error
::my browser info:: | ::my PC info:: | ::my contact info::
PGP fingerprint: E09B 1202 F70E E53E 29BC 5F64 D6D5 9E19 EF92 EA51
Post Reply