[MPlayer-users] vo_png fails to compile (latest svn trunk)
Ivo
ivop at euronet.nl
Mon Jul 16 11:12:44 CEST 2007
On Monday 16 July 2007 02:21, Robert La Ferla wrote:
> svn info
> URL: svn://svn.mplayerhq.hu/mplayer/trunk
> Revision: 23787
>
> % uname -a
> Linux tivo.lan 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT 2007
> i686 GNU/Linux
>
>
>
> cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-
> pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -
> Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=athlon-
> xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer -
> D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
> D_LARGEFILE64_SOURCE -I/usr/X11R6/include -I/usr/include/SDL -
> D_REENTRANT -I/usr/include/freetype2 -I/usr/local/include -c -o
> vo_png.o vo_png.c
> vo_png.c:35: error: 'Z_NO_COMPRESSION' undeclared here (not in a
> function)
> vo_png.c:40: error: expected specifier-qualifier-list before
> 'png_structp'
> vo_png.c: In function 'create_png':
> vo_png.c:70: error: 'struct pngdata' has no member named 'png_ptr'
> vo_png.c:71: warning: implicit declaration of function
> 'png_create_write_struct'
> vo_png.c:71: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in
> this function)
[..]
This happens because there's been added a png.h in libavcodec recently. This
patch fixes compilation.
Index: mpcommon.mak
===================================================================
--- mpcommon.mak (revision 23788)
+++ mpcommon.mak (working copy)
@@ -8,7 +8,7 @@
CFLAGS-$(LIBAVCODEC) += -I../libavcodec
CFLAGS-$(LIBAVFORMAT) += -I../libavformat
-CFLAGS += $(CFLAGS-yes) $(OPTFLAGS)
+CFLAGS += $(OPTFLAGS) $(CFLAGS-yes)
LIBS-$(MPLAYER) += $(LIBNAME_MPLAYER)
LIBS-$(MENCODER) += $(LIBNAME_MENCODER)
More information about the MPlayer-users
mailing list