软件:vlc (videolan) ,从官 下载
版本:2.1.15
主机:Centos6.5
预备软件: ffmpeg, 版本:2.2.14,从ffmpeg.org下载
其他预备软件如果缺少,通过增加rpmforge库,将对应devel库加入。
yasm使用yum install -y yasm
步骤:
1 编译ffmpeg
./configure –enable-pic
1.1 在Make之前需要修改Makefile
将其中一句话加上-fPIC
加入后的内容是:
$$(OBJS-$(1)): CFLAGS += $(CFLAGS-$(1)) -fPIC
加入目的是因为后面vlc编译时候会 告连接libavformat.a错,并且要求加入-fPIC选项
1.2
make
su
make install
2 编译vlc
./bootstrap
./configure –with-pic
make
su
make install
参考:
1 对于libavformat链接错误的处理
Temporary workaround fix for compiling libav-0.8.1:
./configure –enable-pic && make
su
make install
https://trac.videolan.org/vlc/ticket/6729#comment:3
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!