VLC-compile-Howto 先準備好工具 ...

VLC-compile-Howto 先準備好工具 ...

VLC-compile-Howto

先準備好工具 sudo apt-get install g++ gcc make automake

看看說明 sudo ./configure --help

檢查一下有缺什麼東西先補一補 不需要用avahi!會有問題 sudo ./configure |grep warn

修改source.list deb http://download.videolan.org/pub/videolan/debian sid main deb-src http://download.videolan.org/pub/videolan/debian sid main

安裝需要的套件 apt-get update sudo apt-get install libmpeg2-4-dev libfaad2-dev libmad0-dev libavcodec-dev libavformat-dev lame faac faad nasm libwxgtk2.6-dev mozilla-dev libx11-dev xlibs-dev libpostproc-dev libcdio-dev libvcdinfo-dev libhal-dev libcddb-dev libdvdread3-dev libdvdcss2-dev libdvdnav-dev libdvb-dev libdvbpsi3-dev libgnomevfs2-dev libgtk2.0-dev libcdio-dev libcdio6 libcdio-cdda-dev libcdio-cdda0 libcdio-paranoia-dev libcdio-paranoia0 libcdio-0.72 libcdio3

開始configure sudo ./configure --enable-dvb --enable-dvdread --enable-v4l --enable-pvr --enable-cddax --enable-vcdx --enable-faad --enable-real --enable-realrtsp --enable-flac --enable-esd --enable-arts --enable-mozilla --enable-faac --enable-debug --enable-wxwidgets

我的ubuntu 5.1.0 有裝 libcdio 但vlc就是找不到於是用tarbll安裝就解決了(ps: make and make install 不要用gcc-4) 用於proc資料類型 DVD VCD CD ...

需要安裝wxwidgets否則介面會出問題! 以tarball安裝 ./configure --enable-unicode; make; make install; ldconfig

因為Ubuntu是Unicode configure 會有訊息大致是說wxwidgets找不到什麼unicode而用ansi代替 所以參考vlc-trac

char *psz_device = (char *) tmp_buf; replace char *psz_device = const_cast(tmp_buf.data()); \\\\\\\\\\\\\\\\line 1337 char *psz_device = (char *) tmp_buf; replace char *psz_device = const_cast(tmp_buf.data()); \\\\\\\\\\\\\\\\line 1407 char *psz_device = (char *) tmp_buf; replace char *psz_device = const_cast(tmp_buf.data()); \\\\\\\\\\\\\\\\line 1420

否則MAKE會出問題; 也可以考慮不要proc CD 把libcdio 不要裝即可因為不影響VLC

開始compile sudo make

安裝! sudo make install

ending: DAAP:使用opendaap http://www.opendaap.org/ 自己下載tarball 安裝 用於音樂播放 可不裝

如果有qt 可以用 --enable-opie 純介面功能 不知道有什麼效果

convert from Thomas blog post id 9 old convert log: ./223900/tag%3E2006%2008%20linux)

@2006 @08 @linux

Comments