Add libpng upgrade example for MSW.
This commit is contained in:
@@ -125,3 +125,22 @@ versions there.
|
|||||||
Notice that config.h generated by libpng configure is not used, we build it
|
Notice that config.h generated by libpng configure is not used, we build it
|
||||||
without -DHAVE_CONFIG_H as it works just fine without it on any ANSI C system
|
without -DHAVE_CONFIG_H as it works just fine without it on any ANSI C system
|
||||||
(i.e. anywhere by now).
|
(i.e. anywhere by now).
|
||||||
|
|
||||||
|
|
||||||
|
Example updating libpng files under MSW:
|
||||||
|
Since configure looked for zlib, the following 2 steps were also needed:
|
||||||
|
a) get zlib source code (www.zlib.net) to a separate location;
|
||||||
|
b) in zlib root dir run: mingw32-make -fwin32/Makefile.gcc
|
||||||
|
(will generate zlib1.dll)
|
||||||
|
1) get libpng source code (libpng.sourceforge.net) to a separate location;
|
||||||
|
2) in libpng root dir run:
|
||||||
|
configure --with-libpng-prefix=wx_
|
||||||
|
Alternatively, if configure still cannot find zlib, run:
|
||||||
|
export CPPFLAGS="-I zlib-root-dir"
|
||||||
|
export LDFLAGS="-L zlib-root-dir"
|
||||||
|
configure --with-libpng-prefix=wx_
|
||||||
|
3) in libpng root dir run:
|
||||||
|
mingw32-make png.lo
|
||||||
|
(will generate pnglibconf.h and pngprefix.h, among others)
|
||||||
|
4) copy files from libpng root dir and scripts subfolder to src/png, updating old files only (other new files were not needed);
|
||||||
|
5) commit the changes.
|
||||||
|
Reference in New Issue
Block a user