转:Ubuntu12.04编译VLC,在linux上运行

Ubuntu12.04编译vlc2.1.0

1.编译环境

VM8.0.1

# gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6/lto-wrapper

Target: i686-linux-gnu

Configured with: ../src/configure -v --with-pkgversion=‘Ubuntu/Linaro 4.6.3-1ubuntu5‘ --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu

Thread model: posix

gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

2 安装vlc依赖的库

#sudo apt-get build-dep vlc

3、安装必须的工具包否则后面会出错
#apt-get install autoconf automake libtool git subversion

4、安装最新的VLC
#cd /home/git_work
#git clone git://git.videolan.org/vlc.git

5、到vlc根目录
#./bootstrap

generating modules/**/Makefile.am

..................................

+ autoreconf --install --force --verbose -I m4

autoreconf: Entering directory `.‘

autoreconf: running: autopoint --force

Copying file po/Makevars.template

autoreconf: running: aclocal -I m4 --force -I m4

autoreconf: configure.ac: tracing

autoreconf: running: libtoolize --install --copy --force

libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `autotools‘.

libtoolize: copying file `autotools/config.guess‘

libtoolize: copying file `autotools/config.sub‘

libtoolize: copying file `autotools/install-sh‘

libtoolize: copying file `autotools/ltmain.sh‘

libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4‘.

libtoolize: copying file `m4/libtool.m4‘

libtoolize: copying file `m4/ltoptions.m4‘

libtoolize: copying file `m4/ltsugar.m4‘

libtoolize: copying file `m4/ltversion.m4‘

libtoolize: copying file `m4/lt~obsolete.m4‘

autoreconf: running: /usr/bin/autoconf --include=m4 --force

autoreconf: running: /usr/bin/autoheader --include=m4 --force

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

autoreconf: Leaving directory `.‘

+ rm -f po/Makevars.template

+ rm -f stamp-h1

+ set +x

Successfully bootstrapped

6、配置环境

#./configure.sh -help 查看配置帮助

#./configure --prefix=/mnt/share/vlc(指定make install 要安装的目录)

然后等待有没有错误了:

libvlc configuration

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

version               : 2.1.0-git

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.

生成makefile

9、可直接编译

#make

Making all in test

make[2]: Entering directory `/home/git-work/vlc2.1.0/test‘

make[2]: Nothing to be done for `all‘.

make[2]: Leaving directory `/home/git-work/vlc2.1.0/test‘

make[2]: Entering directory `/home/git-work/vlc2.1.0‘

GEN    cvlc

GEN    rvlc

GEN    qvlc

GEN    svlc

GEN    nvlc

make[2]: Leaving directory `/home/git-work/vlc2.1.0‘

make[1]: Leaving directory `/home/git-work/vlc2.1.0‘

10、检查一下劳动成果:

#ls ./lib/.libs/ -al

在lib目录下的.libs下,隐藏着编译好的库文件:

total 1316

drwxr-xr-x 2 root root   4096 Jan 23 06:33 .

drwxr-xr-x 4 root root   4096 Jan 23 17:26 ..

-rw-r--r-- 1 root root  33080 Jan 23 06:24 audio.o

-rw-r--r-- 1 root root  19020 Jan 23 06:24 core.o

-rw-r--r-- 1 root root   8572 Jan 23 06:24 error.o

-rw-r--r-- 1 root root  19940 Jan 23 06:24 event_async.o

-rw-r--r-- 1 root root  33288 Jan 23 06:24 event.o

lrwxrwxrwx 1 root root     12 Jan 23 06:24 libvlc.la -> ../libvlc.la

-rw-r--r-- 1 root root    986 Jan 23 06:24 libvlc.lai

lrwxrwxrwx 1 root root     15 Jan 23 06:24 libvlc.so -> libvlc.so.5.3.0

lrwxrwxrwx 1 root root     15 Jan 23 06:24 libvlc.so.5 -> libvlc.so.5.3.0

-rwxr-xr-x 1 root root 376774 Jan 23 06:24 libvlc.so.5.3.0

-rwxr-xr-x 1 root root 376774 Jan 23 06:33 libvlc.so.5.3.0T

-rw-r--r-- 1 root root   7135 Jan 23 06:33 libvlc.ver

-rw-r--r-- 1 root root  15760 Jan 23 06:24 log.o

-rw-r--r-- 1 root root  43136 Jan 23 06:24 media_discoverer.o

-rw-r--r-- 1 root root  10080 Jan 23 06:24 media_library.o

-rw-r--r-- 1 root root  34012 Jan 23 06:24 media_list.o

-rw-r--r-- 1 root root  50928 Jan 23 06:24 media_list_player.o

-rw-r--r-- 1 root root  43788 Jan 23 06:24 media.o

-rw-r--r-- 1 root root  86344 Jan 23 06:24 media_player.o

-rw-r--r-- 1 root root  16084 Jan 23 06:24 playlist.o

-rw-r--r-- 1 root root   1488 Jan 23 06:24 revision.o

-rw-r--r-- 1 root root  69992 Jan 23 06:24 video.o

-rw-r--r-- 1 root root  52796 Jan 23 06:24 vlm.o

11、安装

安装到/mnt/share/vlc目录下

运行 vlc

VLC is not supposed to be run as root. Sorry.

If you need to use real-time priorities and/or privileged TCP ports

you can use vlc-wrapper (make sure it is Set-UID root and

cannot be run by non-trusted users first).

只能重新编译安装,configure的时候加 --enable-run-as-root

12、调试

运行  ./vlc -vv这里可以在终端看到打印信息

转:Ubuntu12.04编译VLC,在linux上运行

时间: 2024-07-29 11:21:51

转:Ubuntu12.04编译VLC,在linux上运行的相关文章

Ubuntu12.04编译vlc-android详细流程

作者:wainiwann 出处:http://www.cnblogs.com/wainiwann/ 本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利. 摘要:本文主要介绍vlc-android在ubuntu下编译的过程. 最近研究了下 vlc-android 的编译,网上一搜资料确实不少,不过大部分都是千遍一律(也不否认有非常详细的).不能说这些都毫无价值,多少也能给编译vlc带来一些线索. 编译环境使用的是64位ubun

ubuntu12.04 编译android4.2源码 gcc: fatal error: no input files错误

============问题描述============ 最近在ubuntu12.04 编译android4.2源码时遇到一个编译错误,错误如下: host C++: libhost <= build/libs/host/pseudolocalize.cpp gcc: fatal error: no input files compilation terminated. make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_inte

ubuntu12.04编译android4.0源代码Deug3

make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_intermediates/adb] 错误 1 这个报错网上统一的解决方法都是安装sudo apt-get install libncurses5-dev 但是我屡次卸载安装重启clean编译还是报错,最后才焕然大悟  make报错是linux-86的错 就是32位ubutun的错 因此要安装64位的libncurses5-dev  即 sudo apt-get install lib32ncur

ubuntu12.04编译android4.0源代码Deug1

ubuntu12.04编译a10全志芯片make多次编译无果,逐句检查发现缺少多种文件解析.遂百度如下 $sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dri:i386 libgl1-mesa-dev 

在Linux上运行ASP.NET vNext

最新的ASP.NET vNext完全开源且可以跨多个平台运行,在Windows环境下我尝试了下,几乎没花什么工夫就跑起了Sample,而在Linux环境下则要多花了不少时间,所以特别记录下整个过程,希望对其他想要尝鲜的人有所帮助. 运行环境 Ubuntu Server 14.04 VirtualBox Mono >= 3.4.1 *由于Ubuntu库中的Mono版本比较陈旧,满足不了最低要求,所以第一步要做的就是安装最新版本的Mono. 安装Mono 1. 首先从GitHub上取得mono代码:

可执行程序无法在Linux上运行,显示line 1: syntax error: word unexpected (expecting &quot;) .

[问题]用arm-linux-gcc编译出来的可执行文件clkCtl,下载到板子上,在Linux下不能运行:./clkCtl: line 1: syntax error: word unexpected (expecting ")") [解决过程]1.网上有人也遇到此问题:Syntax error: word unexpected (expecting ")")http://hi.baidu.com/dsfire/blog/item/5d922458886ad589

Docker在Linux上运行NetCore系列(一)配置运行DotNetCore控制台

转发请注明此文章作者与路径,请尊重原著,违者必究. 本篇文章操作系统信息 Linux:ubuntu 16.04.3 amd64 查看NetCore支持的Linux系统 NetCore不是支持Linux的所有系统,只支持部分,所以在Linux上安装NetCore之前要查看系统与版本是否支持NetCore. 查看NetCore2.0以上各个版本在Linux支持的系统及版本: https://github.com/dotnet/core/blob/master/release-notes/2.0/2.

让Qt在MIPS Linux上运行 good

下载 首先下载Qt everywhere,当前的版本是4.7.2,可以从nokia的网站上下载,也可以从git服务器上下载.考虑到文件有200M 以上的大小,下载速率低于25kBPS的,需要考虑从什么地方复制一份,否则需要等待较长时间才能下载下来.我是在家里下载这个文件的,所以开始编译已经是第二天了.考虑提升员工效率的话,需要预先预备好这些下载文件,或者增加接入带宽. 解压 第一步下载的文件是一个tar包,所以需要解压,通常解压需要在unix/Linux环境下进行,如果只是看代码,windows

【无私分享:ASP.NET CORE 项目实战(第十章)】发布项目到 Linux 上运行 Core 项目

目录索引 [无私分享:ASP.NET CORE 项目实战]目录索引 简介 ASP.Net Core 给我们带来的最大的亮点就是跨平台,我在我电脑(win7)上用虚拟机建了个 CentOS7 ,来演示下,我们windows上的项目如何发布项目到Linux上运行.我这里有个在windows上搭建过的程序,我们主要演示如何在linux上运行,所以大家不要纠结于这些,大家可以新建一个web项目尝试一下. 安装.NET Core SDK for CentOS 微软有详细的安装命令,可以参考Install