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