[MPlayer-users] Problems compiling GUI (png-dev libraries installed)
Nathan Hollingsworth
nate at penguinmail.com
Tue Mar 26 19:22:01 CET 2002
Hey,
I'm having problems compiling MPlayer (20020325) on Debian (potato) with
the --enable-gui option.
Here is what I see whenever running configure:
<snip>
Checking for DVB ... no
Checking for PNG support ... no
Checking for JPEG support ... yes
<snip>
Checking for select ... yes
Checking for streaming ... yes
Checking for GUI ... yes
Error: PNG support required for GUI compilation
configure.log shows:
<snip>
============ Checking for PNG support ============
#include <png.h>
#include <string.h>
int main(void) {
printf("png.h : %s\n", PNG_LIBPNG_VER_STRING);
printf("libpng: %s\n", png_get_libpng_ver(NULL));
return (strcmp(PNG_LIBPNG_VER_STRING, png_get_libpng_ver(NULL)));
}
gcc /tmp/mplayer-conf-1089381533-11513.c -o
/tmp/mplayer-conf-1018195175-11513.o -lpng -lz -lm
/tmp/mplayer-conf-1089381533-11513.c: In function `main':
/tmp/mplayer-conf-1089381533-11513.c:6: warning: passing arg 2 of
`strcmp' makes pointer from integer without a cast
/tmp/cciT3ofg.o: In function `main':
/tmp/cciT3ofg.o(.text+0x24): undefined reference to `png_get_libpng_ver'
/tmp/cciT3ofg.o(.text+0x44): undefined reference to `png_get_libpng_ver'
collect2: ld returned 1 exit status
ldd /tmp/mplayer-conf-1018195175-11513.o
ldd: can't open /tmp/mplayer-conf-1018195175-11513.o (No such file or
directory)
Result is: no
<snip>
I have the following packages installed:
nate at vigilante:~$ dpkg -l libpng2 libpng2-dev
||/ Name Version Description
+++-===============-=======================-========================
ii libpng2 1.0.5-1 PNG library - runtime
ii libpng2-dev 1.0.5-1 PNG library - development
I have seen a few post like this in the archives but the resolution was
always to install png2-dev package. But as you can see I have it
installed.
I have also notice that the configure script detects the png
headers/libraries a different way than 0.60. I am able compile 0.60
with the --enable-gui flags without any problems with my current setup.
Thanks in advance to anyone that has any suggestions,
-Nate
More information about the MPlayer-users
mailing list