Was this page helpful?

Build Mplayer on Debian

    系統環境

    • Debian-Wheezy
    • SH4

    編譯 MPlayer

    編輯 /etc/apt/sources.list

    deb [arch=all] http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free
    deb-src http://debian.csie.nctu.edu.tw/debian/ wheezy main contrib non-free
    
    deb [arch=all] http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free
    deb-src http://debian.csie.ntu.edu.tw/debian/ wheezy main contrib non-free
    
    deb [arch=sh4] http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free
    deb-src http://download.si-linux.co.jp/debian-sh/wheezy-sh4/ wheezy main contrib non-free
    
    deb http://forum.cse.yzu.edu.tw/debian-sh4/ wheezy all
    deb http://1.34.239.30/wheezy-sh4/debian wheezy main
    

    安裝 gdebi

    apt-get update
    apt-get install gdebi-core
    
    Install the dependency packages
    gdebi libopenal1_1.14-4_sh4.deb
    gdebi libopenal-dev_1.14-4_sh4.deb
    gdebi libvorbisidec1_1.0.2+svn18153-0.2_sh4.deb
    gdebi libvorbisidec-dev_1.0.2+svn18153-0.2_sh4.deb
    gdebi vstream-client-dev_1.2-6.1_sh4.deb
    
    Build the dependency for mplayer
    apt-get build-dep mplayer
    
    Download the mplayer source
    apt-get source mplayer
    
    Build mplayer
    cd mplayer-1.0~rc4.dfsg1+svn34540/
    dpkg-buildpackage
    
    Install Mplayer Packages
    cd ../
    dpkg -i *.deb 
    
    ls *.deb
    -rw-r--r-- 1 root root 1373474 Nov 17 19:36 mencoder_1.0~rc4.dfsg1+svn34540-1_sh4.deb
    -rw-r--r-- 1 root root 5131320 Nov 17 19:39 mplayer-dbg_1.0~rc4.dfsg1+svn34540-1_sh4.deb
    -rw-r--r-- 1 root root 2275020 Nov 17 19:39 mplayer-doc_1.0~rc4.dfsg1+svn34540-1_all.deb
    -rw-r--r-- 1 root root 1736104 Nov 17 19:36 mplayer-gui_1.0~rc4.dfsg1+svn34540-1_sh4.deb
    -rw-r--r-- 1 root root 2684284 Nov 17 19:37 mplayer_1.0~rc4.dfsg1+svn34540-1_sh4.deb 
    

    安裝 Mplayer 套件

    apt-get install gdebi-core
    gdebi libopenal1_1.14-4_sh4.deb 
    gdebi mplayer_1.0~rc4.dfsg1+svn34540-1_sh4.deb
    gdebi mplayer-gui_1.0~rc4.dfsg1+svn34540-1_sh4.deb
    gdebi mencoder_1.0~rc4.dfsg1+svn34540-1_sh4.deb 

    製作 rootfs

    tar czvpf /media/sdb2/nextradio_v2_rootfs.tgz --directory=/ --exclude=proc --exclude=sys --exclude=dev/pts --exclude=mnt --exclude=media --exclude=etc/udev/rules.d/70-persistent-net.rules .
    Was this page helpful?
    標籤 (Edit tags)
    • No tags
    您必須 登入 才能發佈評論。
    Powered by MindTouch Core