I've faced the same problem with compiling libpng with MinGW (the only difference is that I build shared library). My research showed me the source of problem: Command gcc -E -DHAVE_CONFIG_H -I. -Ilibpng -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.26' -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE pnglibconf.c > pnglibconf.tf1 create the same file 'pnglibconf.tf1' as on Linux but with CRLF line endings 2. In file 'srcipts/dfn.awk' which is executed with command gawk...
I've faced the same problem with compiling libpng with MinGW (the only difference is that I build shared library). My research showed me the source of problem: Command gcc -E -DHAVE_CONFIG_H -I. -Ilibpng -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.26' -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE pnglibconf.c > pnglibconf.tf1 create the same file 'pnglibconf.tf1' as on Linux but with CRLF line endings 2. In file 'srcipts/dfn.awk' which is executed with command gawk...
I've faced the same problem with compiling libpng with MinGW (the only difference is that I build shared library). My research showed me the source of problem: Command gcc -E -DHAVE_CONFIG_H -I. -Ilibpng -DPNGLIB_LIBNAME='PNG16_0' -DPNGLIB_VERSION='1.6.26' -DSYMBOL_PREFIX='' -DPNG_NO_USE_READ_MACROS -DPNG_BUILDING_SYMBOL_TABLE pnglibconf.c > pnglibconf.tf1 create the same file 'pnglibconf.tf1' as on Linux but with CRLF line endings 2. In file 'srcipts/dfn.awk' which is executed with command gawk...