Microsoft Visual C++ toolkit build instructions

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
Post Reply
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

Packages needed:

-Cygwin with the base packages described here.

-Microsoft SDK (only installs from IE) http://www.microsoft.com/msdownload/pla ... sdkupdate/

-Microsoft .Net framework 1.1 (chances are you have it. it's available from windows update if not)

-Microsoft .NET Framework 1.1 SDK (here)

-Microsoft Visual C++ Toolkit 2003 ( http://msdn.microsoft.com/visualc/vctoolkit2003/ )

-Masm32v8+ from http://www.masm32.com

-Moztools and VC7.1 compiled versions of GLIB and LibIdl found on the mozilla win32 build page
------------------------------------------------------------------

Install all of these to their default directories.
(moztools to c:\moztools and the gblib and libidl to c:\VC7)

Set up your environment as seen on page 1 of this thread.

Grab a mozilla/firefox/thunderbird source from either ftp or cvs.

Unpack it (or check it out) to c:\ to create c:\mozilla

Create a mozconfig file or copy mine into c:\mozilla.

Apply the patch seen above to remove IE Profile Migration.

Open a command prompt or cygwin prompt.

Change directories to c:\mozilla and type make -f client.mk build

This should get you somewhere :>

It's not user-friendly, but it sure is cheap

That's about all I can think of to get it going.
Anything extra for installing and configuring moztools is allready on the mozilla win32 build page.
I think what I'm gonna do is make up a web page with the instructions.
It gets kinda chaotic in forums since I can't format as well.
Malakai
Posts: 172
Joined: July 15th, 2003, 3:11 pm
Location: Florida
Contact:

Post by Malakai »

Can you make a quick patchfile to disable the ie profile import thing?

I've had thunderbird going for the last hour, no problems so far (with the free tools).

EDIT: Unless I just have to comment out the WIN_XP include part, which I can do myself. I don't know how to read that patch style code (yet).
Malakai
Posts: 172
Joined: July 15th, 2003, 3:11 pm
Location: Florida
Contact:

Post by Malakai »

Thunderbird build failed, it was almost done.

Code: Select all

g:\mozilla\mozilla\mailnews\addrbook\src\nsWabAddressBook.h(42) : fatal error C1
083: Cannot open include file: 'wab.h': No such file or directory
make[5]: *** [nsAbWinHelper.obj] Error 2
make[5]: Leaving directory `/cygdrive/g/mozilla/mozilla/mailnews/addrbook/src'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/g/mozilla/mozilla/mailnews/addrbook'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/g/mozilla/mozilla/mailnews'
make[2]: *** [tier_97] Error 2
make[2]: Leaving directory `/cygdrive/g/mozilla/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/g/mozilla/mozilla'
make: *** [build] Error 2

G:\mozilla\mozilla>


I can't find that include file anywhere.

In the source file the error takes place in, the headers listed are:

Code: Select all

#include "nsWabAddressBook.h"
#include "nsAbUtils.h"
#include "nsAutoLock.h"
#include "prlog.h"


I have all of them, I don't see why it's failing.

edit: the header file nswabaddressbook.h needs
#include <wab.h>

I'll try searchign for it. My paths are set up identically to tiermann.

It's a no go, I don't have wab.h installed anywhere on my system.
sasquatch
Posts: 6022
Joined: November 25th, 2003, 8:56 am

Post by sasquatch »

TierMann wrote:...

Woot! ...


I always wondered, and have to ask, what does "Woot!" mean anyhow? Is this a foreign language version of "whoopie" or "yahoo"?

;-)
sasquatch
Posts: 6022
Joined: November 25th, 2003, 8:56 am

Post by sasquatch »

TierMann wrote:...

I think what I'm gonna do is make up a web page with the instructions.
It gets kinda chaotic in forums since I can't format as well.


That would be great!

Flesh out each step with details, and I'll give it a whirl.

Thanks!
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

Latest news...
Don't use -GL for now with toolkit.
I forgot to add this info in here.
Thanks moox: http://forums.mozillazine.org/viewtopic.php?t=71319

sasquatch wrote:
TierMann wrote:...

Woot! ...


I always wondered, and have to ask, what does "Woot!" mean anyhow? Is this a foreign language version of "whoopie" or "yahoo"?

;-)


I dunno. I picked that up playing muds.
I think it's the war cry of the geek. Or the mating call.
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

Malakai wrote:edit: the header file nswabaddressbook.h needs
#include <wab.h>

I'll try searchign for it. My paths are set up identically to tiermann.

It's a no go, I don't have wab.h installed anywhere on my system.


C:\Program Files\Microsoft SDK\include\Wab.h
is what I came up with.

Try to make sure you have all Microsoft Platform SDK packages installed.
http://www.microsoft.com/msdownload/pla ... /sdkupdate (from IE)
User avatar
moox
Posts: 923
Joined: February 29th, 2004, 1:07 am
Location: Wish I were in Alaska...

Post by moox »

I think what I'm gonna do is make up a web page with the instructions.
It gets kinda chaotic in forums since I can't format as well.


I will likely do something similar this weekend, if I can find the time!
aebrahim
Posts: 1234
Joined: November 10th, 2002, 2:47 am
Location: Hong Kong
Contact:

Post by aebrahim »

TierMann wrote:Packages needed:

-Microsoft .Net framework 1.1 (chances are you have it. it's available from windows update if not)

-Microsoft Visual C++ Toolkit 2003 ( http://msdn.microsoft.com/visualc/vctoolkit2003/ )

I'm pretty sure that the .NET Framework is included in the Toolkit 2003 installer.
hvymtl
Posts: 168
Joined: October 2nd, 2003, 7:17 am
Location: Brasilia, Brazil

Post by hvymtl »

aebrahim wrote:I'm pretty sure that the .NET Framework is included in the Toolkit 2003 installer.


Indeed.

From the VC++ Toolkit website.

The Microsoft Visual C++ Toolkit 2003 includes the core tools developers need to compile and link C++-based applications for Windows and the .NET Common Language Runtime:

* Microsoft C/C++ Optimizing Compiler and Linker. These are the same compiler and linker that ship with Visual Studio .NET 2003 Professional!
* C Runtime Library and the C++ Standard Library, including the Standard Template Library. These are the same static-link libraries included with Visual Studio.
* Microsoft .NET Framework Common Language Runtime. Visual C++ can optionally build applications that target the Common Language Runtime (CLR).
* Sample code. The toolkit includes four samples designed to showcase the powerful new features of the 2003 version, including new optimization capabilities, features to improve code-security and robustness, enhanced ISO C++ standards support, and the ability to use the .NET Framework library and target the CLR.
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

HTML version now available

Post by TierMann »

This will be a little easier to read/follow.

http://tiermann.freehosting.net

It includes the patch for IE migration, and other tips/steps we've come up with.
It covers Mozilla, Firefox and Thunderbird
User avatar
Waldo
Posts: 596
Joined: July 29th, 2003, 8:21 am
Location: Cambridge, MA
Contact:

Post by Waldo »

I just filed bug 241528 - Fix IE profile migration to work with free MS VC toolkit - to Bugzilla. Perhaps someone here can help with a patch for the Mozilla tree? (I do know what's used here won't work, by the way.)
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

Awesome :>
Thanks. It's got my vote :P

I was thinking about posting a bug, but it's a rough one to tackle since both VC retail and free tools use cl.
You can't just check for it like you could with mingw.

A proper fix would be a mozconfig option like ac_add_options --disable-migration=IE,Opera,Whatever.
That would also help any future environments having trouble with it.
I don't think it's too much to ask since both VC++ Toolkit and MingW can't use it.

And yeah, there's no way the hack I have here could possibly go into the tree.
It's just a quick fix.
Malakai
Posts: 172
Joined: July 15th, 2003, 3:11 pm
Location: Florida
Contact:

Post by Malakai »

TierMann wrote:
Malakai wrote:edit: the header file nswabaddressbook.h needs
#include <wab.h>

I'll try searchign for it. My paths are set up identically to tiermann.

It's a no go, I don't have wab.h installed anywhere on my system.


C:\Program Files\Microsoft SDK\include\Wab.h
is what I came up with.

Try to make sure you have all Microsoft Platform SDK packages installed.
http://www.microsoft.com/msdownload/pla ... /sdkupdate (from IE)



Cool, the header was in the internet SDK.
User avatar
TierMann
Posts: 184
Joined: March 29th, 2004, 10:18 am
Location: Sitting here, posting to fourms.
Contact:

Post by TierMann »

:)
Let me know if you get a finished build.
Post Reply