Bug #490

PNG support doesn't compile on MinGW/msys

Added by Andreas Huggel over 12 years ago. Updated about 10 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:


Target version:0.12


From Udi Fuchs, also reported by Will Stokes:

I just tried to build exiv2 0.11 on mingw32 and had two problems.

The first is with zlib. I had to used the configuration option
--with-zlib=/opt/mingw32, but then the compiler still didn't find
zlib.h so I had to also use
'make CXXFLAGS=-I/opt/mingw32/include', which seems a bit annoying.

The other issue is that pngchunk.cpp uses 'uint' (twice) and it is not
defined. Replacing it with 'unsigned' solved the compilation problem,
but I'm not sure about run time issues.

Additional information:

When compiling version 0.11 on Windows with MinGW/msys, use the --without-zlib flag to the configure script to disable the newly added PNG support (which uses zlib).

PNG support is also not enabled when compiling on Windows with MSVC.


#1 Updated by Andreas Huggel over 12 years ago

r892 for the build environment related part.

#2 Updated by Andreas Huggel about 12 years ago

r995 changes uint, which is not defined on MINGW, to unsigned int.

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux