分类: 嵌入式
2010-01-08 22:35:14
主机系统:fedora8 + vmware
目标板:utu2440 / linux-
交叉编译器:arm-linux-gcc-3.4.1
软件资源:zlib-
libid3tag-
libmad-
madplay-
移植步骤:
1. 编译zlib
# CC=arm-linux-gcc AR="arm-linux-ar rc" RANLIB=arm-linux-ranlib ./configure --prefix=/opt/madplay
# make
# make install
2. 编译libid3tag
# CC=arm-linux-gcc CPPFLAGS=-I/opt/madplay/include LDFLAGS=-L/opt/madplay/lib ./configure --prefix=/opt/madplay --disable-shared --host=arm-linux
# make
# make install
3. 编译libmad
# CC=arm-linux-gcc ./configure --prefix=/opt/madplay --host=arm-linux --disable-shared
# make
# make install
4. 编译madplay
# CC=arm-linux-gcc CPPFLAGS=-I/opt/madplay/include LDFLAGS=-L/opt/madplay/lib ./configure --host=arm-linux --prefix=/opt/madplay
# make
# make install
5. 将/opt/madplay/bin/madplay拷贝到rootfs的bin目录中,重启开发板后就可以用命令行听歌了:)
# madplay music.mp3
MPEG Audio Decoder
Title: ·( ·-)
Artist:
Encoder: Lavf51.12.2
6. 命令行快捷键
- volume decrease
+ volume increase
P pause/play
S stop