[MPlayer-users] [PATCH] Re: configure problem before compiling

adland adland123 at yahoo.com
Mon May 31 14:38:20 CEST 2004


> ./configure --disable-liba52
> 
> I get an error when configure hits that part of the script:
> 
> Checking for liba52 support ... ./configure: line 4645: _def_liba52#undef 
> USE_LIBA52: command not found
> not

For this typo bug (missing = ) can use patch below. 
could someone submit change to CVS

--- main/configure      2004-05-25 16:13:07.000000000 -0400
+++ updated/configure   2004-05-31 08:15:34.000000000 -0400
@@ -4642,7 +4642,7 @@
   _def_liba52='#define USE_LIBA52 1'
   _codecmodules="liba52 $_codecmodules"
 else
-  _def_liba52'#undef USE_LIBA52'
+  _def_liba52='#undef USE_LIBA52'
   _nocodecmodules="liba52 $_nocodecmodules"
 fi
 echores "$_liba52"


> The the compile dies with:
> 
> mplayer.o(.data+0x2498): undefined reference to `a52_drc_level'
> 

A  build  failed for me afterwards using your configure for same reason
Created a second patch to address this issue
can someone consider this for submission in CVS as well

--- main/cfg-common.h   2004-05-03 09:19:03.000000000 -0400
+++ updated/cfg-common.h        2004-05-31 08:30:44.000000000 -0400
@@ -133,8 +133,9 @@
        {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
        {"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 6,
 NULL},
        {"format", &audio_output_format, CONF_TYPE_INT, CONF_RANGE, 0,
 0x00002000, NULL},
-
+#ifdef USE_LIBA52
         {"a52drc", &a52_drc_level, CONF_TYPE_FLOAT, CONF_RANGE, 0, 1, NULL},
+#endif

 // ------------------------- codec/vfilter options --------------------


build then worked
good luck




More information about the MPlayer-users mailing list