compiling mplayer - libpng undefined references

Sylvain Petreolle spetreolle@yahoo.fr
Sun Jul 7 17:00:00 GMT 2002


Hi,

I'm trying to compile mplayer, a GPL video player.
(http://mplayerhq.hu)

Enabling the gui makes uses of png library.
I have the following packages installed :
(from cygcheck)
  171k 2002/05/07 C:\cygwin\bin\cygpng10.dll - os=4.0
img=1.0 sys=4.0
                  "cygpng10.dll" v0.0 ts=2002/5/7
20:53
  175k 2002/05/24 C:\cygwin\bin\cygpng12.dll - os=4.0
img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2002/5/24
4:22
libpng10            1.0.13-3
libpng10-devel      1.0.13-3
libpng12            1.2.3-1
libpng12-devel      1.2.3-1

When linking, ld complains about undefined references
:
Gui/libgui.a(png.o)(.text+0x31):png.c: undefined
reference to `png_check_sig'
Gui/libgui.a(png.o)(.text+0x108):png.c: undefined
reference to `png_get_rowbytes
'
Gui/libgui.a(png.o)(.text+0x15e):png.c: undefined
reference to `png_get_rowbytes
'
Gui/libgui.a(png.o)(.text+0x1a9):png.c: undefined
reference to `png_get_PLTE'


in /usr/include/libpng12/png.h, I see :
   png_uint_32 rowbytes;    /* bytes needed to hold an
untransformed row */
which is part of png_info struct.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



More information about the Cygwin-xfree mailing list