Re: Compiling GM on Debian 8 with libpng16

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Fri, 15 May 2015, Matthias Schmitt wrote:
>
> 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?

Using a different libpng than the system natively provides can be a 
bit of work.  Any libraries that GraphicsMagick depends on, and which 
also depend on libpng (e.g. libfreetype) need to be built to use your 
desired libpng, or excluded from the build. You will likely need to 
specify a linker run-path to assure that the correct libraries are 
used and without possibly breaking existing applications on your 
system.

Use 'ldd -v' to check each shared library for what it is dynamically 
linked with.

Try

   ldd -v `which gm`

to get a full summary.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
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.