编译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了.

你可能感兴趣的:(编译VLC)