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