gleitz/npiet

PNG support(1.13e)

Closed this issue · 1 comments

after

./configure running make outputs:

gcc -g -o npiet npiet.o -lgd -lpng -lz -lm
gcc -g -o npiet-foogol npiet-foogol.o -lgd -lpng -lz -lm

but upon running npiet I get this header:
npiet v1.3e (without GD support, without GIF support, without PNG support)

./configure returns:

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking gif_lib.h usability... no
checking gif_lib.h presence... no
checking for gif_lib.h... no
checking for main in -lgd... yes
checking for main in -lpng... yes
checking for main in -lgif... no
checking for main in -lz... yes
checking for main in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h

I downloaded it ran ./configure; make; sudo make install on the files in this tar.gz http://prdownloads.sourceforge.net/libpng/libpng-1.6.35.tar.gz?download and it compiled with png support it seems it was a bug in libpng-dev in the Ubuntu 18.04.1 LTS(Bionic)