Install issue from source with png missing and then another build warning

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
Joshva
Posts: 7
Joined: 2016-03-31T19:58:32-07:00
Authentication code: 1151

Install issue from source with png missing and then another build warning

Post by Joshva »

Firstly, massive thanks to anyone who responds and helps. Thank you


I am running on Centos on AWS EC2. Yum only has this version of ImageMagick available: 6.7.8-9 2016-06-22 Q16

I had numerous issues with this version and so I have tried to update to the latest: ImageMagick 7.0.2-2 Q16 x86_64 2016-07-03

I first tried to install via the instructions here: http://www.imagemagick.org/script/install-source.php

... but the png dependency was missing.

So I then tried the following:

Code: Select all

wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -vxf ImageMagick.tar.gz
sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
cd ImageMagick
./configure --without-x
make
sudo make install
During the make, I noticed the following warnings listed below. They are png related. I tested several PNG's after and they all seemed to work. Is this an issue i should be concerned about?


coders/png.c: In function ‘ReadOnePNGImage’:
coders/png.c:2276:8: warning: passing argument 3 of ‘png_set_keep_unknown_chunks’ discards ‘const’ qualifier from pointer target type [enabled by default]
png_set_keep_unknown_chunks(ping, 1, mng_iCCP, 1);
^
In file included from /usr/include/libpng12/png.h:538:0,
from coders/png.c:103:
/usr/include/libpng12/png.h:2587:25: note: expected ‘png_bytep’ but argument is of type ‘const png_byte *’
extern PNG_EXPORT(void, png_set_keep_unknown_chunks) PNGARG((png_structp
^
/usr/include/libpng12/pngconf.h:1542:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^
coders/png.c:2287:3: warning: passing argument 3 of ‘png_set_keep_unknown_chunks’ discards ‘const’ qualifier from pointer target type [enabled by default]
png_set_keep_unknown_chunks(ping, 2, mng_vpAg, 1);
^
In file included from /usr/include/libpng12/png.h:538:0,
from coders/png.c:103:
/usr/include/libpng12/png.h:2587:25: note: expected ‘png_bytep’ but argument is of type ‘const png_byte *’
extern PNG_EXPORT(void, png_set_keep_unknown_chunks) PNGARG((png_structp
^
/usr/include/libpng12/pngconf.h:1542:58: note: in definition of macro ‘PNG_EXPORT’
# define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
^
Post Reply