Project

General

Profile

Bug #490

PNG support doesn't compile on MinGW/msys

Added by Andreas Huggel about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
build
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

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:

Workaround:
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).

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

History

#1

Updated by Andreas Huggel about 15 years ago

r892 for the build environment related part.

#2

Updated by Andreas Huggel almost 15 years ago

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

Also available in: Atom PDF