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 15, 2010, 3:11:45 AM (14 years ago)
- Author:
-
bviktor
- Comment:
-
add note about wdk howto and remove x64 howto since it's needless and is covered in wdk howto anyway
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v28
|
v29
|
|
5 | 5 | NSS stands for [http://www.mozilla.org/projects/security/pki/nss/ Network Security Services]. NSS is required to use SSL in Pidgin. NSS depends on NSPR and a [https://wiki.mozilla.org/NSS_Shared_DB shared database] (SQLite since [http://www.mozilla.org/projects/security/pki/nss/nss-3.12/nss-3.12-release-notes.html NSS 3.12]), but you don't have to worry about these, there's and NSS with NSPR package which is compact thus it contains all sources required to build NSS. |
6 | 6 | |
7 | | '''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can build NSS completely with [http://www.microsoft.com/downloads/details.aspx?FamilyId=F3FBB04E-92C2-4701-B4BA-92E26E408569&displaylang=en#filelist Microsoft Visual C++ 2008 Express Edition SP1]. This isn't covered in this tutorial but it's basically the same. However, if you build NSS with Visual C++, you must instruct your users to install the [http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en Microsoft Visual C++ 2008 SP1 Redistributable Package] or include it in the installer of your application (if permitted). Note that you cannot use NSS with Pidgin if it is built with Visual C++, as the mingw GCC and Visual C++'s compiler link against different, incompatible C libraries. |
| 7 | '''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can, however, build NSS completely with the Windows Driver Kit. For the instructions, see [http://nss.daydreamer.nu/?q=node/3 Building with WDK]. |
8 | 8 | |
9 | 9 | == Prerequisites == |
… |
… |
|
134 | 134 | |
135 | 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. |
136 | | |
137 | | == Build x64 NSS == |
138 | | |
139 | | Currently it's not possible to build NSS x64 with GCC. You can make an x64 build of NSS only with Visual C++ yet. Since x64 tools aren't available in Visual C++ Express, you have to install the Windows SDK instead, which is a superset of Visual C++ Express in means of command line tools. |
140 | | |
141 | | 1. Download [http://www.microsoft.com/downloads/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505&displaylang=en Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1]. Install (at least) the following components: |
142 | | * Windows Headers and Libraries |
143 | | * Visual C++ Compilers |
144 | | * Win32 Development Tools |
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. |
150 | | 1. Find a way to include `moztools\bin` and `msys\bin` in PATH. |
151 | | 1. Set build configuration as before, and additionally add the following: |
152 | | {{{ |
153 | | set USE_64=1 |
154 | | }}} |
155 | | 1. Start compiling: |
156 | | {{{ |
157 | | make nss_build_all |
158 | | }}} |
159 | | 1. Instruct your users to download and install the [http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ba9257ca-337f-4b40-8c14-157cfdffee4e Microsoft Visual C++ 2008 SP1 x64 Redistributable Package] or include it in the installer of your application (if permitted). |
160 | | |
161 | | Note that it's not possible to use a 64-bit version of NSS with Pidgin on Windows. Normally you wouldn't need to do this. This section is here only as reference for the future. Pidgin is a 32-bit application, thus cannot interact with 64-bit libraries. |
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!