error in compilation of libpng

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

error in compilation of libpng

Postby Sunilbabu » Wed Dec 05, 2018 1:36 am

Hi guys..
i am trying to install libpng library on Ubuntu18.04. After "make" command, i am getting this error. can anyone help me.
Thanks in advance

"make all-am
make[1]: Entering directory '/home/sunil/Build_WRF/LIBRARIES/libpng-1.2.50'
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DPNG_CONFIGURE_LIBPNG -m64 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c -o libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -DPNG_CONFIGURE_LIBPNG -m64 -MT libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c png.c -fPIC -DPIC -o .libs/libpng12_la-png.o
In file included from png.c:17:0:
png.h:536:10: fatal error: zlib.h: No such file or directory
#include "zlib.h"
compilation terminated.
Makefile:672: recipe for target 'libpng12_la-png.lo' failed
make[1]: *** [libpng12_la-png.lo] Error 1
make[1]: Leaving directory '/home/sunil/Build_WRF/LIBRARIES/libpng-1.2.50'
Makefile:366: recipe for target 'all' failed
make: *** [all] Error 2
Posts: 2
Joined: Wed Dec 05, 2018 1:12 am

Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 4 guests