[MPlayer-users] how to compile mplayer with custom xvidcore
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Oct 19 10:19:08 CEST 2013
On 19.10.2013, at 05:32, Rakesh Singh <xvidquerry at gmail.com> wrote:
>> * How will I compile mplayer so that it plays *>* video using my custom libxvidcore?*
>> There is a configure option --extra-ldflags
>
>> If you have a problem with MPlayer's default
>> mpeg4 asp decoder, please report it!
>
> Carl Eugen
>
> i want to test my custom modified xvid core i.e. testing xvidcore.
>
> MPlayer's default mpeg4 asp decoder works well. there is system wide
> mplayer and
> mencoder installed in my laptop.
>
> Now I am installing mplayer locally in a dir i.e. /home/test/testmplayer with
>
> configuration: --prefix=/home/test/testmplayer/
> --codecsdir=/home/test/testcodec --yasm
>
> Is this correct?
--yasm without argument? Surprised that works, it's not intended to...
If it's just for testing, there is no reason to install at all though, in which case prefix is not necessary, and codecsdir is only for binary decoders, so almost nobody should need it anymore.
You can make it link against your special build with --extra-ldflags=-L/somepath/lib --extra-cflags=-I/somepath/include
But if you have a ABI-compatible system version installed that is both unnecessary and pointless, you need to change which one is loaded at runtime.
This means something like changing ld.so.conf to load your custom one first, setting LD_LIBRARY_PATH or also adding -Wl,rpath=/somepath/lib (not sure the syntax is exactly right) to extra-ldflags.
More information about the MPlayer-users
mailing list