关闭

Tiny6410上的madplayer安装使用步骤

184人阅读 评论(0) 收藏 举报
分类:

1解压:
tar xzf libid3tag-0.15.1b.tar.gz
tar xzf libmad-0.15.1b.tar.gz
tar xzf zlib-1.2.8.tar.gz
tar xzf madplay-0.15.2b.tar.gz
tar xjf alsa-lib-1.0.26.tar.bz2
tar xjf alsa-utils-1.0.24.2.tar.bz2

2编译zlib-1.2.8
./configure –prefix=/work/drivers_and_test/21th_sound/app/tmp
修改Makefile:
CC=arm-linux-gcc
LDSHARED=arm-linux-gcc -shared -W1,-soname,libz.so.1
CPP=arm-linux-gcc -E
AR=arm-linux-ar
RANLIB=arm-linux-ranlib
make
make install

3 编译 libid3tag-0.15.1b
mkdir tmp
cd libid3tag-0.15.1b
./configure –host=arm-linux –prefix=/work/drivers_and_test/21th_sound/app/tmp
make
make install

4编译 libmad-0.15.1b
cd libmad-0.15.1b
./configure –host=arm-linux –prefix=/work/drivers_and_test/21th_sound/app/tmp
make
make install

5编译madplay
cd madplay-0.15.2b/
./configure –with-alsa –host=arm-linux –prefix=/work/drivers_and_test/21th_sound/app/tmp LDFLAGS=”-L/work/drivers_and_test/21th_sound/app/tmp/lib”
CFLAGS=”-I /work/drivers_and_test/21th_sound/app/tmp/include”
make
make install

6安装alsa-lib-1.0.26
.configure –host=arm-linux –prefix=/mnt/rootfs/opt/madplayer/tmp
make
make install

7安装alsa-utils-1.0.24.2
./configure –host=arm-linux –prefix=/mnt/rootfs/opt/madplayer/tmp –with-alsa-inc-prefix=/mnt/rootfs/opt/madplayer/tmp/include –with-alsa-prefix=/mnt/rootfs/opt/madplayer/tmp/lib –disable-alsamixer –disable-nls –disable-xmlto
make
make install

8把tmp/bin/* tmp/lib/so tmp/sbin/*复制到根文件系统
拷贝share目录,在目标板的存放位置必须和在主机的存放路径一致,比如在主机编译时候上存放在/home/sabergcl/alsa/alsa_lib/,
那么我们就得把share放在目标板上的这个路径里 cp -rf share /home/sabergcl/alsa/alsa_lib/

9在/etc/init.d/rcS中添加
mkdir /dev/snd /* 创建正确的设备节点,旧版本的busybox创建的设备节点有点问题 */
ln /dev/controlC0 /dev/snd/controlC0
ln /dev/pcmC0D0c /dev/snd/pcmC0D0c
ln /dev/pcmC0D0p /dev/snd/pcmC0D0p
ln /dev/timer /dev/snd/timer
alsactl restore -f /etc/wm9714.conf /* 配置文件可以从tiny6410官方的文件系统里面拷贝过来 */

10 把一个mp3文件复制到根文件系统

11madplay –tty-control /1.mp3
播放过程中不断按小键盘的减号(“-“)会降低音量
不断按小键盘的加号(“+”)会降低音量

12后台播放命令:madplay *.mp3 完整命名是:madplay *.mp3 /dev/null 2>1 &

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:14200次
    • 积分:856
    • 等级:
    • 排名:千里之外
    • 原创:50篇
    • 转载:2篇
    • 译文:0篇
    • 评论:0条