I'm trying to build libpng which has worked up to a point.
I'm using Windows XP, and have a MingW compiler. I also have MSYS installed and am using it to configure libpng.
The issue I'm having is that libpng can't find zlib. I've tried every variation under the sun and still can't get libpng to see zlib. The error at the end of the configuration process is
zlibVersion in -lz....no
z_zlibVersion in -lz....no
error: zlib not installed
The installation file tells me to do this. So I could have interpreted it wrong but I've tried everything from renaming the zlib directory to placing it in the libjpeg directory and then again in side the libjpeg/scripts directory. I've also copied the zlib.h and zconf.h file from the zlib directory and put it in the libjpeg directory but still the same error... I think I'm primarily here to find these problems. I can see allot of complaints on the internet about this but none of the answers make sense to me. Here is what the Installation file says.. Any clues as to where I'm going wrong?
If your system already has a preinstalled zlib you will still need
to have access to the zlib.h and zconf.h include files that
correspond to the version of zlib that's installed.
You can rename the directories that you downloaded (they
might be called "libpng-x.y.z" or "libpngNN" and "zlib-1.2.5"
or "zlib125") so that you have directories called "zlib" and "libpng".
Your directory structure should look like this:
.. (the parent directory)
libpng (this directory)
INSTALL (this file)
README
*.h
*.c
CMakeLists.txt => "cmake" script
configuration files:
configure.ac, configure, Makefile.am, Makefile.in,
autogen.sh, config.guess, ltmain.sh, missing, libpng.pc.in,
libpng-config.in, aclocal.m4, config.h.in, config.sub,
depcomp, install-sh, mkinstalldirs, test-pngtest.sh
contrib
gregbook
pngminim
pngminus
pngsuite
visupng
projects
visualc71
vstudio
scripts
makefile.*
*.def (module definition files)
etc.
pngtest.png
etc.
zlib
README
*.h
*.c
contrib
etc.