]>
Commit | Line | Data |
---|---|---|
b32b8144 | 1 | Building instructions for the DLL versions of Zlib 1.2.11 |
7c673cae FG |
2 | ======================================================== |
3 | ||
4 | This directory contains projects that build zlib and minizip using | |
5 | Microsoft Visual C++ 9.0/10.0. | |
6 | ||
7 | You don't need to build these projects yourself. You can download the | |
8 | binaries from: | |
9 | http://www.winimage.com/zLibDll | |
10 | ||
11 | More information can be found at this site. | |
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | Build instructions for Visual Studio 2008 (32 bits or 64 bits) | |
18 | -------------------------------------------------------------- | |
b32b8144 | 19 | - Decompress current zlib, including all contrib/* files |
7c673cae FG |
20 | - Compile assembly code (with Visual Studio Command Prompt) by running: |
21 | bld_ml64.bat (in contrib\masmx64) | |
22 | bld_ml32.bat (in contrib\masmx86) | |
23 | - Open contrib\vstudio\vc9\zlibvc.sln with Microsoft Visual C++ 2008 | |
24 | - Or run: vcbuild /rebuild contrib\vstudio\vc9\zlibvc.sln "Release|Win32" | |
25 | ||
26 | Build instructions for Visual Studio 2010 (32 bits or 64 bits) | |
27 | -------------------------------------------------------------- | |
b32b8144 | 28 | - Decompress current zlib, including all contrib/* files |
7c673cae FG |
29 | - Open contrib\vstudio\vc10\zlibvc.sln with Microsoft Visual C++ 2010 |
30 | ||
31 | Build instructions for Visual Studio 2012 (32 bits or 64 bits) | |
32 | -------------------------------------------------------------- | |
b32b8144 | 33 | - Decompress current zlib, including all contrib/* files |
7c673cae FG |
34 | - Open contrib\vstudio\vc11\zlibvc.sln with Microsoft Visual C++ 2012 |
35 | ||
b32b8144 FG |
36 | Build instructions for Visual Studio 2013 (32 bits or 64 bits) |
37 | -------------------------------------------------------------- | |
38 | - Decompress current zlib, including all contrib/* files | |
39 | - Open contrib\vstudio\vc12\zlibvc.sln with Microsoft Visual C++ 2013 | |
40 | ||
41 | Build instructions for Visual Studio 2015 (32 bits or 64 bits) | |
42 | -------------------------------------------------------------- | |
43 | - Decompress current zlib, including all contrib/* files | |
44 | - Open contrib\vstudio\vc14\zlibvc.sln with Microsoft Visual C++ 2015 | |
45 | ||
7c673cae FG |
46 | |
47 | Important | |
48 | --------- | |
49 | - To use zlibwapi.dll in your application, you must define the | |
50 | macro ZLIB_WINAPI when compiling your application's source files. | |
51 | ||
52 | ||
53 | Additional notes | |
54 | ---------------- | |
55 | - This DLL, named zlibwapi.dll, is compatible to the old zlib.dll built | |
56 | by Gilles Vollant from the zlib 1.1.x sources, and distributed at | |
57 | http://www.winimage.com/zLibDll | |
58 | It uses the WINAPI calling convention for the exported functions, and | |
59 | includes the minizip functionality. If your application needs that | |
60 | particular build of zlib.dll, you can rename zlibwapi.dll to zlib.dll. | |
61 | ||
62 | - The new DLL was renamed because there exist several incompatible | |
63 | versions of zlib.dll on the Internet. | |
64 | ||
65 | - There is also an official DLL build of zlib, named zlib1.dll. This one | |
66 | is exporting the functions using the CDECL convention. See the file | |
67 | win32\DLL_FAQ.txt found in this zlib distribution. | |
68 | ||
69 | - There used to be a ZLIB_DLL macro in zlib 1.1.x, but now this symbol | |
70 | has a slightly different effect. To avoid compatibility problems, do | |
71 | not define it here. | |
72 | ||
73 | ||
74 | Gilles Vollant | |
75 | info@winimage.com | |
b32b8144 FG |
76 | |
77 | Visual Studio 2013 and 2015 Projects from Sean Hunt | |
78 | seandhunt_7@yahoo.com |