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