您的位置:首页 > 其它

最新版本VLC2.2.1编译

2015-08-27 22:23 267 查看
最近在研究VLC播放器的内容,今晚得以有时间来写写最近的心得。目前我是在linux平台上面进行的开发,首先得先过编译。言归正传:

1、Ubuntu12.04编译vlc2.2.1;

2 安装vlc依赖的库 :#sudo apt-get build-dep vlc (下载时间可能较长);

3、下载最新版本的vlc2.2.1;

4、进入到vlc2.2.1的目录下面:/**/**/**/vlc2.2.1/;

5、使用命令:./bootstrap

generating modules/**/Makefile.am

****************************************

***************************************

autoreconf: running: automake --add-missing --copy --force-missing

autoreconf: Leaving directory `.'

+ rm -f po/Makevars.template

+ rm -f stamp-h1

+ set +x

Successfully bootstrapped,说明./bootstrap成功,一般下载的vlc版本使用./bootstrap都没有问题(前提是你的编译工具俱全)

6、使用./configure ,此时直接使用这个命令会出错,会提示你:“-bash: ./configure.sh: No such file or directory”。解决的方法是,在./configure 之前使用“.autoconf”命令;

7、在解决上面的问题后使用./configure命令配置:

********************************************************

********************************************************

config.status: creating modules/video_output/Makefile

config.status: creating modules/visualization/Makefile

config.status: creating modules/hw/vdpau/Makefile

config.status: creating config.h

config.status: executing depfiles commands

config.status: executing libtool commands

config.status: executing po-directories commands

config.status: creating po/POTFILES

config.status: creating po/Makefile

libvlc configuration

--------------------

version : 2.2.1

system : linux

architecture : i686 mmx sse sse2

optimizations : yes

vlc aliases : cvlc rvlc qvlc svlc nvlc

To build vlc and its plugins, type `make', or `./compile' if you like nice colors.

gu@001:~/workfile/VLC/vlc-2.2.1$

8、接下来就可以使用make命令进行编译了,编译到最后发现:
error: implicit declaration of function ‘avcodec_free_frame’ [-Werror=implicit-function-declaration]

解决的方法是将VLC2.2.2/module/下面的所有(包括子文件夹)Makefile中的Werror-implicit-function-declaration删除掉就可以了。再次编译make就可以了。(编译时间较长)

9、最后使用sudo make install,切记在make stall前面加 sudo ,不然会出错。

差不多流程就这样,准备休息了。后续有什么VLC方面的心得和进展,后续将陆续发帖。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: