Compiling GM on Debian 8 with libpng16

Matthias Schmitt <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
Hello,

I am trying to compile GraphicsMagick 1.3.21 on Debian 8. I use a manually compiled PNG library (1.6.17) with which I link. Compiling and linking works fine. Configure tells me

  Option            Configure option           	Configured value
  -----------------------------------------------------------------
  PNG               --with-png=yes          	yes (-lpng16)

  LDFLAGS  = -fPIC -L/MyPath/applications/graphicsmagick/lib -L/MyPath/applications/graphicsmagick/lib
  LIBS     = -ljbig -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng16 -lbz2 -lxml2 -lz -lm -lpthread

Please note, that my manually compiled PNG library resides in /MyPath/applications/graphicsmagick/lib.

When I am running tests, all tests with PNG and MNG fail with a segmentation fault. I have a theory why: the Debian system has already a libpng library. When I am running "ldconfig -p | grep libpng” I get:

  libpng12.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libpng12.so.0
  libpng12.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpng12.so.0

When running “make” GraphicsMagick is linked with the following parameters (shortened for readability)

libtool: link: gcc -std=gnu99 -fPIC -I/MyPath/applications/graphicsmagick/include -Wall -pthread -fPIC -fPIC -o utilities/.libs/gm utilities/gm.o … -lpng12 … /MyPath/applications/graphicsmagick/lib/libpng16.so … 

Could it be, that the -lpng12 parameter refers to the libpng12 library? If yes, then this might be in conflict mit my  libpng16 library. When looking into configure and configure.ac I can see switches for different libpng library versions, but the highest handled version I could see is version 15. Is there something missing for compiling with libpng16 or have I misunderstood something?

Thank you

Best regards

Matthias Schmitt

magic moving pixel s.a.
23, Avenue Grande-Duchesse Charlotte
L-3441 Dudelange
Luxembourg
Phone: +352 54 75 75
http://www.mmp.lu





------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.