[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: png support broken?
From: |
Werner LEMBERG |
Subject: |
Re: png support broken? |
Date: |
Wed, 24 Sep 2003 00:26:59 +0200 (CEST) |
> After evaluating (auto-image-file-mode t) I can view PNG images
> using
>
> today's CVS snapshot, Tue, 2003 Sep 23 12:14 UTC
> GNU Emacs 21.3.50.86 (i686-pc-linux-gnu, GTK+ Version 2.2.1)
> kernel 2.4.21,
> libpng10.so.0.1.0.15
> [I also have libpng12.so.0.1.2.5
> but not its related png.h and pngconf.h files
> for which ./configure checks]
>
> started with
>
> /usr/local/bin/emacs -q --no-site-file --eval '(blink-cursor-mode 0)'
I've now found out (with ldd) that I wasn't using libpng12 at all!
I've the following libraries of libpng in /usr/lib:
libpng.so -> libpng.so.2
libpng.so.1 -> libpng.so.1.0.89
libpng.so.1.0.89
libpng.so.2 -> libpng.so.2.1.0.12
libpng.so.2.1.0.12
And I have this in /usr/local/lib:
libpng.so -> libpng.so.3
libpng.so.3 -> libpng.so.3.1.2.5
libpng.so.3.1.2.5
libpng12.so -> libpng12.so.0
libpng12.so.0 -> libpng12.so.0.1.2.5
libpng12.so.0.1.2.5
I always thought that by default gcc searches /usr/local/include for
include files and /usr/local/lib for library files besides the
standard /usr/include and /usr/lib, respectively (I don't have the
environment variables INCLUDE_PATH and LIBRARY_PATH set). So I wonder
why gcc is using libpng.so.2 and not libpng.so.3? What am I doing
wrong?
After using LDFLAGS=/usr/local/lib during configuration my emacs is
finally linked to libpng.so.3.
Werner