[MPlayer-cvslog] r23793 - trunk/mpcommon.mak

Aurelien Jacobs aurel at gnuage.org
Mon Jul 16 23:51:23 CEST 2007


On Mon, 16 Jul 2007 23:16:55 +0200
Diego Biurrun <diego at biurrun.de> wrote:

> On Mon, Jul 16, 2007 at 11:12:11PM +0200, Aurelien Jacobs wrote:
> > On Mon, 16 Jul 2007 22:13:25 +0200 (CEST)
> > diego <subversion at mplayerhq.hu> wrote:
> > 
> > > Log:
> > > Reorder CFLAGS, fixes compilation after addition of png.h to FFmpeg.
> > 
> > It seems it don't fix anything...
> 
> Hmm, it sure works for me...
> 
> > Here is what I get with latest svn:
> > 
> > cc -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/include/directfb -I/usr/include  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2 -I../libavcodec -I../libavformat    -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'
> 
> Where is your png.h?

/usr/include/png.h which is a symlink to /usr/include/libpng12/png.h.
I tried to change the order of the -I parameters but that don't seem to have
any effect. Only removing -I../libavcodec fixes the error...

If it helps, it's with gcc-4.1.2 on debian sid amd64.

Aurel



More information about the MPlayer-cvslog mailing list