[MPlayer-dev-eng] realvideo 8 and realaudio 8 are working but ....

Nilmoni Deb ndeb at ece.cmu.edu
Tue Jun 11 02:38:44 CEST 2002


  
Felix,
	Here's the patch w.r.t. configure v1.499:

--- /home/ndeb/tmp/configure	Mon Jun 10 20:10:25 2002
+++ ./configure	Mon Jun 10 20:21:49 2002
@@ -233,6 +233,8 @@
   --with-libdvdnav=DIR     libdvdnav in DIR
   --with-win32libdir=DIR   W*ndows DLL files in DIR
   --with-xanimlibdir=DIR   XAnim DLL files in DIR
+  --with-realplayer8libdir=DIR   
+  			   RealPlayer8 DLL files in DIR
   --with-xvidcore=PATH     path to XviD libcore.a (e.g: /opt/lib/libcore.a)
   --with-sdl-config=PATH   path to sdl*-config (e.g.: /opt/bin/sdl-config)
   --with-gtk-config=PATH   path to gtk*-config (e.g.: /opt/bin/gtk-config)
@@ -1079,6 +1081,10 @@
     _xanimlibdir=`echo $ac_option | cut -d '=' -f 2`
     _xanim=yes
     ;;
+  --with-realplayer8libdir=*)
+    _realplayer8libdir=`echo $ac_option | cut -d '=' -f 2`
+    _real=yes
+    ;;
   --with-csslibdir=*)
     _csslibdir=`echo $ac_option | cut -d '=' -f 2`
     _css=yes
@@ -3226,13 +3232,27 @@
   if test "$_dl" = yes ; then
     if linux ; then
       _real=yes
-      echores "yes"
     elif freebsd ; then
       _real=yes
-      echores "yes"
     else
       echores "no (tested only on Linux and FreeBSD arch)"
     fi
+    if test "_real=yes" ; then
+      if test -z "$_realplayer8libdir" ; then
+	for I in /usr/lib/RealPlayer8/Codecs ; do
+          if test -d "$I" ; then
+            _realplayer8libdir="$I"
+            break;
+          fi;
+        done
+      fi
+    fi
+    test "$_realplayer8libdir" && _real=yes
+    if test "$_real" = yes ; then
+      echores "yes (using $_realplayer8libdir)"
+    else
+      echores "no (no suitable directory found - see DOCS/codecs.html)"
+    fi
   else
     echores "no (dynamic loader support needed)"
   fi
@@ -3241,9 +3261,11 @@
 fi
 if test "$_real" = yes ; then
   _def_real='#define USE_REALCODECS 1'
+  _def_real_path="#define REALCODEC_PATH \"$_realplayer8libdir\""
   _codecmodules="real $_codecmodules"
 else
   _def_real='#undef USE_REALCODECS'
+  _def_real_path="#undef REALCODEC_PATH"
   _nocodecmodules="real $_nocodecmodules"
 fi
 


However, the patch introduces the extra macro REALCODEC_PATH which needs
to be utilized in some .c files which (my guess) are:
	libmpcodecs/ad_real.c 
	libmpcodecs/vd_real.c

I am not too familiar with these files so I guess somebody else may have
to do that bit.

thanks
- Nil




More information about the MPlayer-dev-eng mailing list