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.
- 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
-
|
v27
|
v28
|
|
| 11 | 11 | 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`. |
| 12 | 12 | 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]. |
| 14 | 14 | |
| 15 | | == Choose build flavour == |
| | 15 | == Choose build configuration == |
| 16 | 16 | |
| 17 | 17 | The 3 most important options are: |
| … |
… |
|
| 21 | 21 | |
| 22 | 22 | You 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 | | }}} |
| 30 | 23 | {{{ |
| 31 | 24 | #!rst |
| … |
… |
|
| 46 | 39 | The 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. |
| 47 | 40 | |
| 48 | | Pick the desired configuration (in other words, cell), and set the environmental variables with `set`. Example: |
| | 41 | Pick the desired configuration (in other words, cell), and set the environmental variables. In the Windows command prompt you can do this with `set`. Example: |
| 49 | 42 | {{{ |
| 50 | 43 | set BUILD_OPT=1 |
| … |
… |
|
| 138 | 131 | }}} |
| 139 | 132 | |
| 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. |
| | 133 | The 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. |
| 141 | 134 | |
| 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. |
| | 135 | 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 configurations so they can be distributed separately. |
| 143 | 136 | |
| 144 | 137 | == Build x64 NSS == |
| … |
… |
|
| 150 | 143 | * Visual C++ Compilers |
| 151 | 144 | * 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 | {{{ |
| | 147 | setenv /x64 |
| | 148 | }}} |
| | 149 | Other options won't affect this build. |
| 153 | 150 | 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: |
| 155 | 152 | {{{ |
| 156 | 153 | set 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!