编译VLC

环境 ubuntu10.04


vlc: http://download.videolan.org/pub/videolan/vlc/
一安装live555
live555-2010.01: http://www.filewatcher.com/m/live555-latest.tar.gz.453682-0.html
live555的安装 参考文档http://www.live555.com/liveMedia/#config-unix
1 ./genMakefiles linux
2 make

二 安装VLC
1 vlc-1.1.5# mkdir tmp
2 vlc-1.1.5#  ./configure  --enable-debug  --enable-run-as-root --disable-nls --disable-optimizations  --disable-lua --enable-live555 --with-live555-tree=/arm/media/VLC/live

1) configure: error: Could not find libpostproc. Use --disable-postproc to ignore this error.
 
apt-get install libpostproc-dev
 
2) configure: error: Could not find liba52 on your system: you may get it from http://liba52.sf.net/. Alternatively you can use --disable-a52 to disable the a52 plugin.
 
apt-get install liba52-0.7.4-dev
 
3) checking for XCB_SHM... configure: error: Package requirements (xcb-shm) were not met:
 
No package 'xcb-shm' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix.
 
apt-get install libxcb-shm0-dev
 
4) checking for XCB_XV... configure: error: Package requirements (xcb-xv) were not met:
 
No package 'xcb-xv' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix
 
apt-get install libxcb-xv0-dev

5) configure: WARNING: libxcb-keysyms not found. Hotkeys will not be supported.
 checking for XLIB_XCB... configure: error: Package requirements (x11-xcb) were not met:
 
No package 'x11-xcb' found
 
 apt-get install libx11-xcb-dev

6) checking for FRIBIDI... configure: error: Package requirements (fribidi) were not met:
 
No package 'fribidi' found
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix.
 
apt-get install libfribidi-dev

config成功的提示
libvlc configuration
--------------------
version               : 1.1.5
system                : linux
architecture          : i686 mmx sse sse2
build flavour         : debug
vlc aliases           : cvlc rvlc svlc qvlc
plugins/bindings      :

You can tune the compiler flags in vlc-config.
To build vlc and its plugins, type `./compile' or `make'.

vlc-1.1.5# make
 
 7)x11/x11_display.cpp:29:21: error: X11/xpm.h: No such file or directory
 apt-get install libxpm-dev
 make 成功之后 make install
 8)vlc: error while loading shared libraries: libvlc.so.5: cannot open shared object file: No such file or directory
 
 如果共享库文件安装到了/usr/local/lib(很多开源的共享库都会安装到该目录下)或其它"非/lib或/usr/lib"目录下, 那么在执行ldconfig命令前, 还要把新共享库目录加入到共享库配置文件/etc/ld.so.conf中, 如下:

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
# echo "/usr/local/lib" >> /etc/ld.so.conf
# ldconfig

vlc就可以运行VLC了.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值