[MPlayer-dev-eng] Compilation with --disable-dvdread-internal (was: Segmentation fault reading a copied CSSed DVD)
Nicolas George
nicolas.george at ens.fr
Sat Jun 9 19:59:58 CEST 2007
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?
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070609/f80de7e8/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list