Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 27 and Version 28 of BuildingWinNSS


Ignore:
Timestamp:
Mar 12, 2010, 6:59:37 AM (14 years ago)
Author:
bviktor
Comment:

some supplementary info about the gcc failure and x64 build; mingw installer is outdated; cosmetics

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWinNSS

    v27 v28  
    1111 1. '''Get NSS:'''  Download [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_5_RTM/src/nss-3.12.5-with-nspr-4.8.2.tar.gz NSS with NSPR 3.12.5]. Extract it to `c:\devel\pidgin-devel\win32-dev`.
    1212 1. '''Get MozillaBuild:'''  Download [http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.4.exe MozillaBuild 1.4] and install it to `c:\devel\mozilla-build`.
    13  1. '''Get MinGW''':  This assumes that you have MinGW working as described in the [wiki:BuildingWinPidgin#Themanualway Pidgin Building Instructions] (in short, you need [https://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/ MinGW] installed with at least gcc).
     13 1. '''Get MinGW''':  This assumes that you have MinGW working as described in the [wiki:BuildingWinPidgin#Themanualway Pidgin Building Instructions].
    1414
    15 == Choose build flavour ==
     15== Choose build configuration ==
    1616
    1717The 3 most important options are:
     
    2121
    2222You can toggle them with environmental variables. Here's the matrix:
    23    {{{
    24 #!comment
    25 || ||BUILD_OPT=0||BUILD_OPT=0||BUILD_OPT=1||BUILD_OPT=1||
    26 || ||USE_DEBUG_RTL=0||USE_DEBUG_RTL=1||USE_DEBUG_RTL=0||USE_DEBUG_RTL=1||
    27 ||OS_TARGET=WIN95||WIN954.0_DBG.OBJ||WIN954.0_DBG.OBJD||WIN954.0_OPT.OBJ||N/A||
    28 ||OS_TARGET=WINNT||WINNT6.1_DBG.OBJ||WINNT6.1_DBG.OBJD||WINNT6.1_OPT.OBJ||N/A||
    29    }}}
    3023   {{{
    3124#!rst
     
    4639The default values are 0 for numerical variables and current OS for OS_TARGET. So on Windows 7 with no values set you'll end up building WINNT6.1_DBG.OBJ.
    4740
    48 Pick the desired configuration (in other words, cell), and set the environmental variables with `set`. Example:
     41Pick the desired configuration (in other words, cell), and set the environmental variables. In the Windows command prompt you can do this with `set`. Example:
    4942   {{{
    5043set BUILD_OPT=1
     
    138131}}}
    139132
    140 The build will likely not complete successfully (it will bail out building `.../cmd/bltest`).  If it gets that far, it has built the various libraries successfully.
     133The build will likely not complete successfully due to hardcoded library paths and other problems in the build system (it will bail out building `.../cmd/bltest`).  If it gets that far, it has already built the various libraries successfully.
    141134
    142 The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.5-with-nspr-4.8.2\mozilla\dist`. The contents of `private` and `public` are the same across all flavours so they can be distributed separately.
     135The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.5-with-nspr-4.8.2\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately.
    143136
    144137== Build x64 NSS ==
     
    150143  * Visual C++ Compilers
    151144  * Win32 Development Tools
    152  1. Start `Microsoft Windows SDK v7.0/CMD Shell` from the Start Menu. Don't be bothered by the message about target, it won't affect this build. If it really annoys you, you can tweak it with `setenv` (query flags with `setenv /?`).
     145 1. Start `Microsoft Windows SDK v7.0/CMD Shell` from the Start Menu. Target should be x64 (that's the default). If, for some reason, it's x86, set it with
     146   {{{
     147setenv /x64
     148   }}}
     149   Other options won't affect this build.
    153150 1. Find a way to include `moztools\bin` and `msys\bin` in PATH.
    154  1. Set build flavour as before, and additionally add the following:
     151 1. Set build configuration as before, and additionally add the following:
    155152   {{{
    156153set USE_64=1
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!