[MPlayer-users] Compilation problem

Frederick Bruckman fredb at immanent.net
Wed Jul 2 19:23:17 CEST 2003


On Wed, 2 Jul 2003, Timo Gerke wrote:

> If I try to compile MPlayer (latest from CVS)
> I'm always getting following compilation error:
>
> gcc -c -O4 -m3dnow -march=k6-2 -mcpu=k6-2 -pipe -ffast-math \
> -fomit-frame-pointer -D_REENTRANT
> -D_LARGEFILE_SOURCE \ -D_FILE_OFFSET_BITS=64 -I. -Inative -I..
> -I../libmpdemux -I../loader \
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
> \ -D_GNU_SOURCE -o
> ad_ffmpeg.o ad_ffmpeg.c
> ad_ffmpeg.c: In function `init':
> ad_ffmpeg.c:70: error: structure has no member named `fourcc'
> make[1]: *** [ad_ffmpeg.o] Fehler 1
> make[1]: Leaving directory `/home/tgerke/src/mplayer/libmpcodecs'
> make: *** [libmpcodecs/libmpcodecs.a] Fehler 2
>
> I also checked out latest ffmpeg/libavcodec and latest
> a52dec/liba52.

Are you sure you have the latest MPlayer CVS, and not some other CVS?
"fourc" was removed from line 70 of ad_ffmpeg.c in MPlayer's CVS, way
back in March of this year:


    cvs diff -r1.12 -r1.13 ad_ffmpeg.c
    Index: ad_ffmpeg.c
    ===================================================================
    RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_ffmpeg.c,v
    retrieving revision 1.12
    retrieving revision 1.13
    diff -u -r1.12 -r1.13
    --- ad_ffmpeg.c 28 Dec 2002 00:40:11 -0000      1.12
    +++ ad_ffmpeg.c 8 Mar 2003 02:05:14 -0000       1.13
    @@ -67,7 +67,7 @@
	    lavc_context->bit_rate = sh_audio->wf->nAvgBytesPerSec * 8;
	    lavc_context->block_align = sh_audio->wf->nBlockAlign;
	 }
    -    lavc_context->fourcc = sh_audio->format;
    +    lavc_context->codec_tag = sh_audio->format; //FOURCC
	 lavc_context->codec_id = lavc_codec->id; // not sure if required, imho not --A'rpi

	 /* alloc extra data */


Adding "-m3dnow" to your build options does you no good, by the way.
What that does is make visible certain functions in lib_gcc, none of
which are used by MPlayer in any case. MPlayer's 3DNow inline assy
optimizations are enabled by setting TARGET_3DNOW=yes in "config.mak",
which should happen automatically.

Frederick



More information about the MPlayer-users mailing list