configure: error: png library not found
Posted: 14.01.2003, 13:45
Hi y'all -
For some weird reason I'm having a little trouble compiling Celestia 1.2.5 on my Slackware 9b Linux system. I have GCC 3.2.1. It's an AMD Athlon 650 with a NVidia GeForce2 MX DDR.
I used "./configure --prefix=/usr --with-kde" and I get:
...
...
checking for png_create_info_struct in -lpng... no
configure: error: png library not found
I've got libpng-1.2.5 installed and working with everything else.
The config.log shows:
----<clip>-----
...
...
configure:29411: checking for png_create_info_struct in -lpng
configure:29444: gcc -z combreloc -o conftest -ansi -W -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -I/usr/X11R6/include -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -DQT_THREAD_SUPPORT -D_REENTRANT -z combreloc conftest.c -lpng -ljpeg -lglut -lGLU -lGL -lSM -lICE -lm -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11 -lm >&5
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
configure:29447: $? = 1
configure: failed program was:
#line 29418 "configure"
----<clip>-----
When I ls -l /usr/lib/libpng* I see
-rw-r--r-- 1 root root 196822 Oct 13 19:17 /usr/lib/libpng12.a
lrwxrwxrwx 1 root root 13 Dec 14 10:10 /usr/lib/libpng12.so -> libpng12.so.0
lrwxrwxrwx 1 root root 19 Dec 14 10:10 /usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.5
-rwxr-xr-x 1 root root 188567 Oct 13 19:17 /usr/lib/libpng12.so.0.1.2.5
lrwxrwxrwx 1 root root 10 Dec 14 10:10 /usr/lib/libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 11 Dec 14 10:10 /usr/lib/libpng.so -> libpng.so.3
lrwxrwxrwx 1 root root 18 Dec 14 10:02 /usr/lib/libpng.so.2 -> libpng.so.2.1.0.12
-rwxr-xr-x 1 root root 168880 Jun 2 2002 /usr/lib/libpng.so.2.1.0.12
lrwxrwxrwx 1 root root 17 Dec 14 10:10 /usr/lib/libpng.so.3 -> libpng.so.3.1.2.5
-rwxr-xr-x 1 root root 173400 Jun 2 2002 /usr/lib/libpng.so.3.1.2.1
-rwxr-xr-x 1 root root 188567 Oct 13 19:17 /usr/lib/libpng.so.3.1.2.5
What could be wrong?
Thanks
Chuck
For some weird reason I'm having a little trouble compiling Celestia 1.2.5 on my Slackware 9b Linux system. I have GCC 3.2.1. It's an AMD Athlon 650 with a NVidia GeForce2 MX DDR.
I used "./configure --prefix=/usr --with-kde" and I get:
...
...
checking for png_create_info_struct in -lpng... no
configure: error: png library not found
I've got libpng-1.2.5 installed and working with everything else.
The config.log shows:
----<clip>-----
...
...
configure:29411: checking for png_create_info_struct in -lpng
configure:29444: gcc -z combreloc -o conftest -ansi -W -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -I/usr/X11R6/include -O2 -Wall -ffast-math -fexpensive-optimizations -fomit-frame-pointer -DQT_THREAD_SUPPORT -D_REENTRANT -z combreloc conftest.c -lpng -ljpeg -lglut -lGLU -lGL -lSM -lICE -lm -L/usr/X11R6/lib -lXmu -lXi -lXext -lX11 -lm >&5
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflate'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflate'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateInit_'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `crc32'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateInit2_'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateReset'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateReset'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `inflateEnd'
/usr/lib/gcc-lib/i386-slackware-linux/3.2.1/../../../libpng.so: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
configure:29447: $? = 1
configure: failed program was:
#line 29418 "configure"
----<clip>-----
When I ls -l /usr/lib/libpng* I see
-rw-r--r-- 1 root root 196822 Oct 13 19:17 /usr/lib/libpng12.a
lrwxrwxrwx 1 root root 13 Dec 14 10:10 /usr/lib/libpng12.so -> libpng12.so.0
lrwxrwxrwx 1 root root 19 Dec 14 10:10 /usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.5
-rwxr-xr-x 1 root root 188567 Oct 13 19:17 /usr/lib/libpng12.so.0.1.2.5
lrwxrwxrwx 1 root root 10 Dec 14 10:10 /usr/lib/libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 11 Dec 14 10:10 /usr/lib/libpng.so -> libpng.so.3
lrwxrwxrwx 1 root root 18 Dec 14 10:02 /usr/lib/libpng.so.2 -> libpng.so.2.1.0.12
-rwxr-xr-x 1 root root 168880 Jun 2 2002 /usr/lib/libpng.so.2.1.0.12
lrwxrwxrwx 1 root root 17 Dec 14 10:10 /usr/lib/libpng.so.3 -> libpng.so.3.1.2.5
-rwxr-xr-x 1 root root 173400 Jun 2 2002 /usr/lib/libpng.so.3.1.2.1
-rwxr-xr-x 1 root root 188567 Oct 13 19:17 /usr/lib/libpng.so.3.1.2.5
What could be wrong?
Thanks
Chuck