主题 : alsa-lib、alsa-utils移植出问题,请指点一下 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 94788
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
综合积分: 14 分
注册时间: 2013-07-24
最后登录: 2018-02-08
楼主  发表于: 2013-08-12 17:25

 alsa-lib、alsa-utils移植出问题,请指点一下

我是按照网上别人做过的来做的,http://hi.baidu.com/nankon/item/4d0101481f862beb1381da0c按这个来做的,过程应该没问题,一直过后,我也是通过nfs挂在根文件系统来启动的,在arm下运行amixer、aplay等移植的小工具都报错:/sbin/aplay: line 1: syntax error: "(" unexpected (expecting ")")
                                                                                                 /sbin/amixer: line 1: syntax error: "(" unexpected
换了好多个alsa版本实验,还是这个问题,最后把编译器也换了几个,还是有同样问题,真搞不懂这倒低错哪里了》》》》》请大家给些建议啊 错误如图
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-08-12 19:44
能把你编译出来的aplay和amixer执行档打包传上来看看吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 94788
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
综合积分: 14 分
注册时间: 2013-07-24
最后登录: 2018-02-08
2楼  发表于: 2013-08-13 09:34

 回 1楼(kasim) 的帖子

好的,我生成的库文件和相应的工具都在这个里面,
,请帮我看看,谢谢啦   bin.tar.bz2 (73 K) 下载次数:1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-09-05 20:41
用file命令看你生成的amixer和aplayer可以看到它们都是x86的可执行档。我想这应该是你交叉编译的配置有问题。


alex@alex-8570w:~/Downloads/bin$ file amixer aplay
amixer: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0x982656c32502de1368fb106426dd29681b0876d9, not stripped
aplay:  ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xbebc7d543d0424a27ab2a422fd31885ae4e050c9, not stripped
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 90588
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2013-04-20
最后登录: 2014-10-24
4楼  发表于: 2013-12-22 09:42
楼主,问题解决了没?我和你现在是一样的错误,求解答!