[MPlayer-users] Few compilation issues after trying to build today ...

Jean-Yves Avenard jyavenard at gmail.com
Thu Jan 21 10:12:20 CET 2010


Hi

Trying to re-compile from SVN like I've been doing for a long time ,
I've had a few hickups..

I build using the following command line (standard ubuntu packages),
on a Ubuntu 9.10 machine
./configure --enable-runtime-cpudetection --prefix=/usr
--confdir=/etc/mplayer --mandir=/usr/share/man
--win32codecsdir=/usr/lib/win32 --enable-largefiles --enable-smb
--enable-ftp --enable-cdparanoia --enable-radio --enable-lirc
--enable-joystick --enable-xf86keysym --disable-tremor-internal
--enable-musepack --enable-speex --enable-libvorbis --enable-mad
--enable-mp3lib --enable-theora --enable-libdv --enable-libmpeg2
--enable-tv-v4l2 --enable-alsa --enable-ossaudio --enable-esd
--enable-pulse --enable-nas --enable-xinerama --enable-menu
--enable-xv --enable-vm --enable-gl --enable-xmga --enable-mga
--enable-3dfx --enable-tdfxfb --enable-sdl --enable-aa --enable-caca
--enable-dxr3 --enable-xvmc --with-xvmclib=XvMCW --enable-ggi
--enable-fbdev --disable-ivtv --enable-freetype --enable-gif
--enable-png --enable-jpeg --enable-liblzo --enable-fribidi
--enable-ladspa --enable-vdpau --enable-ass --enable-debug=3
--enable-gui --enable-mencoder

1- H264_DXVA2
I had to comment this line in libavcodec/allcodecs.c
--- mplayer-1.0-svn29964~/libavcodec/allcodecs.c        2010-01-21
01:42:44.000000000 +0100
+++ mplayer-1.0-svn29964/libavcodec/allcodecs.c 2010-01-21
04:36:25.000000000 +0100
@@ -55,7 +55,7 @@

     /* hardware accelerators */
     REGISTER_HWACCEL (H263_VAAPI, h263_vaapi);
-    REGISTER_HWACCEL (H264_DXVA2, h264_dxva2);
+        // REGISTER_HWACCEL (H264_DXVA2, h264_dxva2);
     REGISTER_HWACCEL (H264_VAAPI, h264_vaapi);

For some reasons; it doesn't automatically detect that H264_DXVA2
shouldn't be included (it's a Windows only)
Error is:
cc -DHAVE_AV_CONFIG_H -I.. -I..  -Wundef -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -W -Wall
-O2 -march=x86-64 -mtune=generic -pipe -g3  -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.
-D_REENTRANT -I/usr/include/directfb -I/usr/include/    -D_REENTRANT
-I/usr/include/freetype2  -I/usr/include/dirac
-I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3
-DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pixman-1     -c -o cutils.o cutils.c
allcodecs.c: In function 'avcodec_register_all':
allcodecs.c:58: error: 'CONFIG_H264_DXVA2_HWACCEL' undeclared (first
use in this function)
allcodecs.c:58: error: (Each undeclared identifier is reported only once
allcodecs.c:58: error: for each function it appears in.)

2-liba52 autodetection seems to be broken ; I had to manually disable
liba52 with --disable-liba52 --enable-liba52-internal
Something giving a hint is that the output of configure is:
    Codecs: libschroedinger libdirac x264 xvid libdv
libavcodec(internal) real xanim faad2(internal) faac musepack libdca
libmpeg2(internal) liba52() mp3lib(internal) libtheora speex libvorbis
twolame libmad liblzo gif

note the () after liba52, with the earlier version it would be
automatically detected as liba52(internal)

3-While the configure script still requests libx264 to be >= 79 ; it
will *not* compile against libx264-79 ; I had to update libx264 to the
latest -83 to build. Configure should be updated to error-out if
x264.h is version 79

4-Issue with --enable-fribidi ; the final linkage command doesn't link
with -lfribidi so I get:
libmenu/menu.o: In function `menu_fribidi':
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:457: undefined
reference to `fribidi_charset_to_unicode'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:459: undefined
reference to `fribidi_log2vis'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:461: undefined
reference to `fribidi_remove_bidi_marks'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:462: undefined
reference to `fribidi_unicode_to_charset'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:444: undefined
reference to `fribidi_set_mirroring'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:445: undefined
reference to `fribidi_set_reorder_nsm'
/tmp/buildd/mplayer-1.0-svn30380/libmenu/menu.c:446: undefined
reference to `fribidi_parse_charset'

manually adding -lfribidi fixed the issue.

That seems to be all for now..

Cheers
Jean-Yves


More information about the MPlayer-users mailing list