IM 7.0.2 on Debian. Couldn't find a libpng :(

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Denis77
Posts: 2
Joined: 2017-01-03T09:35:56-07:00
Authentication code: 1151

IM 7.0.2 on Debian. Couldn't find a libpng :(

Post by Denis77 »

Hi ALll!

I've searched any solutions on forum and at all via google, but.... :(

I've installed delegates for JPG, TIFF, PNG from ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/. Then, I've made many attempts to install IM on Debian but IM does not find delegate for PNG!!!
result of ./configure --with-png=yes:

Code: Select all

PNG               --with-png=yes		no
DELEGATES       = mpeg jbig jpeg tiff x
I've installed libpng-1.6.26, make chect - OK

locate libpng:

Code: Select all

/usr/local/bin/libpng-config
/usr/local/bin/libpng16-config
/usr/local/include/libpng16
/usr/local/include/libpng16/png.h
/usr/local/include/libpng16/pngconf.h
/usr/local/include/libpng16/pnglibconf.h
/usr/local/lib/libpng.a
/usr/local/lib/libpng.la
/usr/local/lib/libpng.so
/usr/local/lib/libpng16.a
/usr/local/lib/libpng16.la
/usr/local/lib/libpng16.so
/usr/local/lib/libpng16.so.16
/usr/local/lib/libpng16.so.16.26.0
/usr/local/lib/pkgconfig/libpng.pc
/usr/local/lib/pkgconfig/libpng16.pc
/usr/local/share/man/man3/libpng.3
/usr/local/share/man/man3/libpngpf.3
Where is my mistake? Help, please!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM 7.0.2 on Debian. Couldn't find a libpng :(

Post by fmw42 »

libpng seems to require zlib. Was that already installed?
Denis77
Posts: 2
Joined: 2017-01-03T09:35:56-07:00
Authentication code: 1151

Re: IM 7.0.2 on Debian. Couldn't find a libpng :(

Post by Denis77 »

I've checked for zlib - it's absences. Ok, I've installed it.

Code: Select all

-rw-r--r--  1 root staff 458118 янв  3 20:41 libpng16.a
-rwxr-xr-x  1 root staff    939 янв  3 20:41 libpng16.la
lrwxrwxrwx  1 root staff     19 янв  3 20:41 libpng16.so -> libpng16.so.16.26.0
lrwxrwxrwx  1 root staff     19 янв  3 20:41 libpng16.so.16 -> libpng16.so.16.26.0
-rwxr-xr-x  1 root staff 285728 янв  3 20:41 libpng16.so.16.26.0
lrwxrwxrwx  1 root staff     10 янв  3 20:41 libpng.a -> libpng16.a
lrwxrwxrwx  1 root staff     11 янв  3 20:41 libpng.la -> libpng16.la
lrwxrwxrwx  1 root staff     11 янв  3 20:41 libpng.so -> libpng16.so
-rw-r--r--  1 root staff 144006 янв  3 20:37 libz.a
lrwxrwxrwx  1 root staff     13 янв  3 20:37 libz.so -> libz.so.1.2.8
lrwxrwxrwx  1 root staff     13 янв  3 20:37 libz.so.1 -> libz.so.1.2.8
-rwxr-xr-x  1 root staff 113264 янв  3 20:37 libz.so.1.2.8
Then, I've re-installed libpng and did IM/configure:
DELEGATES = mpeg jbig jpeg tiff x
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM 7.0.2 on Debian. Couldn't find a libpng :(

Post by fmw42 »

Look in the install folder from libpng and find the config.log file and see what errors is says happened.

What do you get from

Code: Select all

convert -version
for your delegates?

You seem to be missing most of the delegates? Did you install IM from source or from some distro binary? If you install from source you will need to check each delegate's install to be sure there are no errors, which usually mean that some other subordinate delegate was needed. This can go on and on until you install the needed delegates in the correct order. So best if you can install from some binary.

Sorry, but I am not an expert on Linux installs.
Post Reply