[MPlayer-dev-eng] linking alternate static x264 lib possible?

Giacomo Comes comes at naic.edu
Fri Mar 30 03:15:29 CEST 2007


On Thu, Mar 29, 2007 at 04:32:44PM -0700, Stone wrote:
> Hi,
> 
> I have an older version of libx264 installed in /usr/lib because I have
> older versions of libraries that depend on it.  But, I would like to link in
> a current cvs checkout of a static x264 lib to mplayer from an alternate
> path.  I was trying to use the following directives, but the configure
> script still seems to choose the older libavcodec and x264 in the initial
> path.  Shouldnt the following two directives take priority?
> 
>  --with-extraincdir=DIR      extra header search paths in DIR (*)
>  --with-extralibdir=DIR      extra linker search paths in DIR (*)
> 
> I was reading the archives and aparently there used to be a special
> directive for x264 only but it has been removed. Does anyone have any
> suggestions?

Apply this patch and --with-extraincdir, --with-extralibdir
will work as thay should.

Ciao
Giacomo
-------------- next part --------------
--- local_compile/mplayer/configure.ori	2006-12-22 14:44:47.000000000 -0400
+++ local_compile/mplayer/configure	2006-12-22 14:45:06.000000000 -0400
@@ -7362,7 +7362,7 @@
 for I in $_libs_mplayer ; do
   _tmp=`echo $I | sed -e 's/^-L.*$//'`
   if test -z "$_tmp" ; then
-    _ld_extra="$I $_ld_extra"
+    _ld_extra="$_ld_extra $I"
   else
     _ld_tmp="$_ld_tmp $I"
   fi


More information about the MPlayer-dev-eng mailing list