ImageMagick 7 png missing

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
beppecosta
Posts: 5
Joined: 2016-11-02T09:06:34-07:00
Authentication code: 1151

ImageMagick 7 png missing

Post by beppecosta »

I'm trying to update from IM 6.5.9-0 to 7.0.3 building from sources.
Configure, make and install run fine.

At end convert -version says:

Version: ImageMagick 7.0.3-4 Q16 powerpc 2016-10-28

But when I try to convert from png I get the error that png delegates are missing.

I've installed again the libpng and ran IM config with these parameters:

export PKG_CONFIG_PATH=/QOpenSys/usr/local/lib/pkgconfig
GNUMAKE=gmake ./configure --build=powerpc-ibm-aix5.1.0.0
CC='/QOpenSys/gcc40/usr/local/bin/gcc'
CXX='/QOpenSys/gcc40/usr/local/bin/g++'
--prefix=/QOpenSys/usr/local --without-perl --enable-static --disable-shared
--without-threads --disable-dependency-tracking --without-x --enable-delegate-build
CPPFLAGS='-I/QOpenSys/usr/local/include' LDFLAGS='-L/QOpenSys/usr/local/lib'

But at end of configure I always see :

PNG --with-png=yes no
DELEGATES = mpeg jpeg ps tiff

Configure.log

-------------------------------------------------------------
configure:33402: checking for PNG
configure:33461: result: no
configure:33471: result:
configure:33719: result:
-------------------------------------------------------------


Thanks for help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick 7 png missing

Post by magick »

The ImageMagick configure scripts requires libpng.pc in your PKG_CONFIG_PATH path to discover and validate the PNG delegate library.
beppecosta
Posts: 5
Joined: 2016-11-02T09:06:34-07:00
Authentication code: 1151

Re: ImageMagick 7 png missing

Post by beppecosta »

Hi,

the libpng.pc is in the path:

cd /QOpenSys/usr/local/lib/pkgconfig
$
ls
freetype2.pc ImageMagick.pc libxml-2.0.pc MagickWand.pc
GraphicsMagick.pc libpng12-old.pc MagickCore-7.Q16HDRI.pc Wand.pc
GraphicsMagickWand.pc libpng16.pc MagickCore.pc zbar.pc
ImageMagick-7.Q16HDRI.pc libpng.pc MagickWand-7.Q16HDRI.pc


The libpng.pc contains:

prefix=/QOpenSys/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/libpng16

Name: libpng
Description: Loads and saves PNG files
Version: 1.6.24
Libs: -L${libdir} -lpng16
Libs.private: -lz -lm
Cflags: -I${includedir}
Djidiouf
Posts: 8
Joined: 2016-10-31T06:06:48-07:00
Authentication code: 1151

Re: ImageMagick 7 png missing

Post by Djidiouf »

Can you add the flag --enable-shared in your configure command?

Code: Select all

./configure --enable-shared

From your output, it doesn't seem to be enabled.
beppecosta
Posts: 5
Joined: 2016-11-02T09:06:34-07:00
Authentication code: 1151

Re: ImageMagick 7 png missing

Post by beppecosta »

I've tried what you suggested:
Shared libraries --enable-shared=yes yes

But png is still not available:
PNG --with-png=yes no
DELEGATES = mpeg jpeg ps tiff
beppecosta
Posts: 5
Joined: 2016-11-02T09:06:34-07:00
Authentication code: 1151

Re: ImageMagick 7 png missing

Post by beppecosta »

I've tried the previous version 6.9: Again the png is missing.

Note that configure script gives an error on both 7.0 and 6.9:
./configure[10482]: syntax error at line 10489 : `;' unexpected
Original Line 10489
for flag in ; do
maybe should be
for flag in $acx_pthread_flags; do

-
Apart from this, in the meanwhile I've tried with older 6.8.8-9.
This configures and gets png:

checking for PNG support ...
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for LIBPNG17 support ... no
checking for LIBPNG16 support ... yes
checking for png_get_io_ptr in -lpng16... yes
checking for png_image_free in -lpng16... yes
checking if png16 package is complete... yes


therefore I keep this one until there are some other suggestion on configure 7.0.

convert -version
Version: ImageMagick 6.8.8-9 Q16 powerpc 2016-11-07 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC
Delegates: jng jpeg png tiff xml zlib


Testsuite summary for ImageMagick 6.8.8
=======================================
# TOTAL: 40
# PASS: 40
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
Post Reply