QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1498|回复: 8

2410播放mp3

[复制链接]
发表于 2004-9-4 20:36:14 | 显示全部楼层 |阅读模式
madplay



This is a quick and not very well tested port of the madplay mp3 player to the Zaurus.

There are some different versions available:

the latest version is: madplay 0.15.2b (size: 123 kByte, compiled 12.3.2004)

an older version is: madplay 0.14.2b (size: 115 kByte, compiled 10.11.2002)



WARNING: Use this program at your own risk !


--------------------------------------------------------------------------------


How to compile madplay for the Zaurus from the source code:

install the arm cross-compiler tools for the zaurus on your linux box
get the latest source code packages needed to build the madplay program (madplay-0.15.2b.tar.gz, libmad-0.15.1b.tar.gz, libid3tag-0.15.1b.tar.gz and zlib-1.1.4.tar.gz)
extract the source code into a directory (i.e. /home/myusername/zmadplay)
open a shell

type in the following commands:
export CC=arm-linux-gcc
export CXX=arm-linux-gcc
export CPPFLAGS='-I../libmad-0.15.1b -I../libid3tag-0.15.1b -I../zlib-1.1.4'
export LDFLAGS='-L../libmad-0.15.1b -L../libid3tag-0.15.1b -L../zlib-1.1.4'
enter the directory zlib-1.1.4 and run configure and than run make
enter the directory libid3tag-0.15.1b and run configure --host=arm and than run make, run cp .libs/libid3tag.a . or run make install as root

enter the directory libmad-0.15.1b and run configure --host=arm and than run make, run cp .libs/libmad.a . or run make install as root
enter the directory madplay-0.15.2b and run configure --host=arm and than run make

now you have a executable file madplay for that we now have to build the installation package

create a file madplay.control with the contents:
Files: usr/bin/madplay
Priority: optional
Section: multimedia
Maintainer: Robert Leslie <[email protected]>, Zaurus port by Michael Neuroth <[email protected]>
Architecture: arm
Version: 0.15.2b
Depends:
License: GPL
Description: madplay
A command line mp3 player.

create a (executable) file installapp with the contents:
cp madplay $QPEDIR/usr/bin
/opt/Qtopia/sharp/bin/mkipks_cmd madplay.control
and execute it as root

now you have the file madplay_0.15.2b_arm.ipk which can be installed on your Zaurus.
 楼主| 发表于 2004-9-4 22:59:10 | 显示全部楼层
有什么其它project,大家也可以推荐-》
回复

使用道具 举报

发表于 2004-9-22 15:05:38 | 显示全部楼层
我移植过来报错:
Node CRC 68018907 != calculated CRC 1ea5fcde for node at 00f8cf84
Node CRC 68018907 != calculated CRC 1ea5fcde for node at 00f8cf84
Bus error
是不是我得内核配置有问题?移植mplayer也出这个错
回复

使用道具 举报

发表于 2004-9-22 15:59:09 | 显示全部楼层
[quote:140c2268fc="jackzheng2002"]有什么其它project,大家也可以推荐-》[/quote]

perhaps "mp3play". its source is in uClinux distribution. supporting local mp3 playback and HTTP stream
回复

使用道具 举报

发表于 2004-9-22 17:39:40 | 显示全部楼层
重启之后就报这个错了
# ./madplay
./madplay: No symbol version information
回复

使用道具 举报

 楼主| 发表于 2004-9-23 09:05:43 | 显示全部楼层
[quote:611f8b02e9="macarthor"][quote:611f8b02e9="jackzheng2002"]有什么其它project,大家也可以推荐-》[/quote]

perhaps "mp3play". its source is in uClinux distribution. supporting local mp3 playback and HTTP stream[/quote]

不知道armlinux可不可以:)
回复

使用道具 举报

发表于 2004-9-23 20:34:19 | 显示全部楼层
需要修改啵
回复

使用道具 举报

 楼主| 发表于 2004-9-24 10:14:01 | 显示全部楼层

过两天试试。。。
回复

使用道具 举报

发表于 2004-9-24 10:19:57 | 显示全部楼层
我想代码不需要太多修改,里边主要函数为回放控制,判断是本地mp3还是http stream

再有就是mp3的解码器部分

修改可能就是编译选项等部分
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 02:36 , Processed in 0.229485 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表