[MPlayer-dev-eng] Compilation with --disable-dvdread-internal (was: Segmentation fault reading a copied CSSed DVD)

Diego Biurrun diego at biurrun.de
Sat Jun 9 20:25:48 CEST 2007


On Sat, Jun 09, 2007 at 07:59:58PM +0200, Nicolas George wrote:
> Le primidi 21 prairial, an CCXV, Diego Biurrun a écrit :
> > > (BTW, current mplayer can not be built with --disable-dvdread-internal.)
> > Works fine here.
> 
> I re-tried. I can build it if I hide the dvdread directory. (And with the
> system dvdread, the segmentation fault at the start of this thread is
> fixed.)
> 
> The problem occurs while compiling stream/stream_dvd.c: this file #includes
> various dvdread/*.h, and is built with "-I..": as a consequence, it finds
> the dvdread library shipped with mplayer, which has different, incompatibles
> types.
> 
> The -I.. option is necessary for config.h and a few other files.
> 
> The exact command line used to compile stream/stream_dvd.c for me is:
> 
> 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=pentium-m
> -mtune=pentium-m -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   -c -o stream_dvd.o
> stream_dvd.c
> 
> How does it work for you?

I don't have a system headers for libdvdread and thus DVD support gets
completely disabled.

Diego



More information about the MPlayer-dev-eng mailing list