Software: VLC (videolan), download from official website
Version: 2.1.15
Host: Centos6.5
Preparation software: FFmpeg, Version: 2.2.14, download from ffmpeg.org
If the other preparation software is missing, add the corresponding Devel library by adding the Rpmforge library.
Yasm using Yum install-y yasm
Steps:
1 Compiling FFmpeg
./configure--enable-pic
1.1 Need to modify makefile before make
Add one of the words to-fpic
The content after joining is:
$$ (objs-$ (1)): CFLAGS + + $ (cflags-$ (1))-fpic
The purpose of the join is to report the connection Libavformat.a error at the time of VLC compile, and request to join the-FPIC option
1.2
Make
Su
Make install
2 Compiling VLC
./bootstrap
./configure--with-pic
Make
Su
Make install
Reference:
1 Handling of Libavformat link errors
Temporary workaround fix for compiling libav-0.8.1:
./configure--enable-pic && make
Su
Make install
<then proceed to./configure && make vlc>
Https://trac.videolan.org/vlc/ticket/6729#comment:3