(1)首先解壓一下四個安裝包
madplay-0.15.2b.tar.gz、libmad-0.15.1b.tar.gz、libid3tag-0.15.1b.tar.gz、zlib-1.1.4.tar.gz
(2)接下來就是安裝這四個包 ,使用如下命令
1 cd /usr/liu
2 ls
3 cdzlib-1.1.4/
4 ls
5 ./configure --prefix=/usr/liu/zu
6 geditMakefile
7 makeclean
8 make
9 makeinstall
10 cd..
11 ls
12 cdlibid3tag-0.15.1b/
13 ls
14 ./configure --disable-shared --enable-static-host=arm-linuxCC=arm-linux-gcc --prefix=/usr/liu/zu
15 make clean
16 make
17 make install
18 make clean
19 make
20 make install
21 cd ..
22ls
23cd zlib-1.1.4/
24 ./configure --prefix=/usr/liu/zu
25 make clean
26 make
27 make install
28 cd libmad-0.15.1b/
28./configure --disable-shared --enable-static-host=arm-linux CC=arm-linux-gcc--prefix=/usr/liu/zu
29./configure -host=arm-linuxCC=arm-linux-gcc --prefix=/usr/liu/zu
30 make clean
31 make
32 make install
33 cd ..
34 ls
35 cd madplay-0.15.2b/
36 ls
37 ./configure -host=arm-linux CC=arm-linux-gcc --prefix=/usr/liu/zuCPPFLAGS=-I/usr/liu/zu/include LDFLAGS=-L/usr/liu/zu/lib
38 make clean
39make
40 cd madplay-0.15.2b/
(3)
接下來的任務就是連接開發板,啓動nfs服務,掛載usr/liu文件夾,放入測試音樂,使用如下命令。
cp madplay /usr/liu/zu/lib/-f
gedit /etc/exports
service nfs restart
ping
ifconfig
(4)掛載成功之後 進入madplay文件夾
./Madplay She.mp3
你就可以聽到開發板播放出優美的音樂了!