Mplayer Porting Demo
Environment Setting
• 首先建立路徑(path)設定批次檔
–找出andesight安裝目錄
• 此範例andesight安裝在/usr/Andestech/AndeSight14/
–編輯設定批次檔(自設檔名:baschrc_glibc_v1)
• 下達指令 “gedit baschrc_glibc_v1”
–編輯
–驗證工具鍊的路徑是否正確
• 至http://www.mplayerhq.hu/design7/dload.html下載Mplayer多媒體撥放程式source code並移植至Andes Core
• 選擇“old releases”
• 下載“Mplayer-1.0rc3.tar.bz2”
• 輸入〝tar xvf MPlayer-1.0rc3.tar.bz2 〞解壓縮.
• 進入目錄” MPlayer-1.0rc3”, 編輯 “configure”
nds32le() {
case "$host_arch" in
nds32le|nds32le*) return 0;;
*) return 1;;
esac
}
插入
• 插入
• 插入
• 插入
• 修改”install strip=“nds32le-linux-strip”
• 輸入〝./configure --cc=nds32le-linux-gcc --host-
cc=gcc --as=nds32le-linux-as --ar=nds32le-linux-ar --
ranlib=nds32le-linux-ranlib --target=nds32le-linux --
enable-cross-compile --enable-static --
prefix=/usr/local/mplayer --disable-mencoder --
disable-mp3lib --enable-fbdev --enable-mad --extra-
cflags=-I/usr/local/mad/include --extra-libs=-
L/usr/local/mad/lib〞自動設定Makefile參數, 產生config.mk, config.h
• 輸入“make”進行編譯
• 輸入“sudo make install”進行安裝
• 安裝後產生目錄”/usr/local/mplayer”