How to build mplayer with libdvdnav on Linux?

I find the mplayer from rpmfusion does not contain libdvdnav. How to build mplayer with libdvdnav on Linux?

asked Jan 7, 2015 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

I did this on Fedora 21 to build mplayer with libdvdnav:

Download mplayer src from http://www.mplayerhq.hu/design7/dload.html and extract the tarball.

Install needed packages (you will need more if you need more features):

# yum install gcc make pulse-audio-libs-devel libdvdnav-devel yasm

Here, pulse-audio makes sure mplayer can play sound with a system using pulse audio and libdvdnav is the feature we need here.

In the mplayer src directory:

$ ./configure

If it reports other packages missing, you will need to install the required one.

Then build mplayer by

$ make -j4

Here, the -j number specifies how many files will make invoke to compile source files in parallel.

After it builds successfully, the mplayer in the directory is the build mplayer. You can directly invoke it by

$ ./mplayer

or install it to you system by # make install.

answered Jan 7, 2015 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...