VC8 Build Instructions
From MDC
目录 |
[编辑] Microsoft Visual C++ 8 Build Instructions
[编辑] Visual C++ 8 Express
1. Download and install Visual C++ 8 Express.
- If possible, accept the default installation paths --- this will make life easier for you.
2. Install the Platform SDK
- The needed components are Core and Web Workshop
- Again, if possible, accept the default installation paths.
3. You will need to build with the following options and/or configure settings:
- --disable-crypto: Until bug 324448 is fixed, you will either need to obtain MASM (ml.exe) from somewhere, or build with --disable-crypto
- --disable-activex, --disable-activex-scripting, --disable-xpconnect-idispatch: until bug 324162 is fixed.
- --disable-accessibility: the version of ATL that comes with the platform sdk doesn't seem to be happy with our builds. I think there's a bug open on this.
- (maybe) --disable-tests: there may be a problem with mfcembed
[编辑] Visual Studio 2005
1. Install Visual Studio 2005
- You only need the Visual C/C++ portion; you do not need to install J# etc.
- If possible, accept the default installation paths --- this will make life easier for you.
2. There is no step 2; continue to step 4.
3. How did you get to step 3? Are you not following the steps? Continue to step 4.
[编辑] Common Steps
4. Install cygwin as described in Windows Build Prerequisites
5. Pick a path to place the extra mozilla tools under (I use C:\proj; the script below assumes this location).
5. Install moztools as described in Windows Build Prerequisites; the script below assumes C:\proj\moztools
6. Set up your environment variables using vsvars32.bat, or using the following script for building within a cygwin shell:
export MOZ_TOOLS="/cygdrive/c/proj/moztools" export VSINSTALLDIR='C:\Program Files\Microsoft Visual Studio 8' export VS80COMMTOOLS='C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\' export VCINSTALLDIR='C:\Program Files\Microsoft Visual Studio 8\VC' export FrameworkDir='C:\WINDOWS\Microsoft.NET\Framework' export FrameworkVersion='v2.0.50727' export FrameworkSDKDir='C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0' export VSINSTALLDIR_cyg="/cygdrive/c/Program Files/Microsoft Visual Studio 8" export VCINSTALLDIR_cyg="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC" export DevEnvDir="$VSINSTALLDIR\\Common7\\IDE" export DevEnvDir_cyg="$VSINSTALLDIR_cyg/Common7/IDE" export MSVCDir="$VCINSTALLDIR" export MSVCDIR_cyg="$VCINSTALLDIR_cyg" if [ -d "$MSVCDIR_cyg"/PlatformSDK ] ; then PlatformSDKDir="$MSVCDir"\\PlatformSDK PlatformSDKDir_cyg="$MSVCDir_cyg"/PlatformSDK elif [ -d "/cygdrive/c/Program Files/Microsoft Platform SDK" ] ; then PlatformSDKDir='C:\Program Files\Microsoft Platform SDK' PlatformSDKDir_cyg='/cygdrive/c/Program Files/Microsoft Platform SDK' else echo Can\'t find Platform SDK\! exit fi echo Platform SDK Location: $PlatformSDKDir_cyg if [ ! -f "$MOZ_TOOLS"/lib/libIDL-0.6_s.lib ] ; then echo Can\'t find moztools\! Edit this file and check MOZ_TOOLS path. fi echo moztools Location: $MOZ_TOOLS export PATH="\ $DevEnvDir_cyg:\ $PlatformSDKDir_cyg/bin:\ $MSVCDIR_cyg/bin:\ $VSINSTALLDIR_cyg/Common7/Tools:\ $VSINSTALLDIR_cyg/Common7/Tools/bin:\ $MOZ_TOOLS/bin:\ $PATH" export INCLUDE="\ $MSVCDir\ATLMFC\INCLUDE;\ $MSVCDir\INCLUDE;\ $PlatformSDKDir\include;\ $FrameworkSDKDir\include;\ $INCLUDE" export LIB="\ $MSVCDir\ATLMFC\LIB;\ $MSVCDir\LIB;\ $PlatformSDKDir\lib;\ $FrameworkSDKDir\lib;\ $LIB"
7. Follow the usual build instructions as described in Windows Build Prerequisites for obtaining the source and setting up a mozconfig to build. If you are using the Express version of VC8, be aware of potentially needing to use the above options.
Last updated 15 Feb 2006 Copy from english version....