]> git.saurik.com Git - wxWidgets.git/blob - src/png/projects/cbuilder5/libpng.readme.txt
Cast to void* before casting to Node** to make the compiler do no strict-aliasing...
[wxWidgets.git] / src / png / projects / cbuilder5 / libpng.readme.txt
1 Project files to build libpng using Borland C++ Builder v5.0
2
3 In order to build and use libpng, please follow these steps:
4
5 1). Install zlib in a directory at the same level with libpng.
6
7 2). In a console window, go to the zlib directory and type:
8 make -f win32\Makefile.bor
9 After performing this step, you should have a file named
10 zlib.lib in the zlib directory.
11
12 3). Add the following conditional define to your project:
13 PNG_USE_DLL
14
15 4). Add libpng.lib or libpngstat.lib to the project.
16 Build the project.
17
18 5). If the build fails, add the paths to png.h and zlib.h to
19 your include path, and restart the build.
20
21 By default, the libpng project uses zlib as a static library. If
22 you wish to use zlib as a DLL, please read the important notes from
23 the zlib DLL FAQ, found inside the zlib distribution.
24
25 See the libpng documentation for instructions on how to use the code.