友善之臂linux内核移植步骤,友善之臂 madplayer 移植过程补充

天在看友善之臂 QQ2440的用户手册,其中的madplayer移植,自己试了试,在手册之外的一点东西,可能会对你有一点点的帮助。

www.linuxidc.com @linuxidc:~/creek/madplay/src-x86/libid3tag-0.15.1b$./configure --prefix=/home/creek/creek/madplay/target-x86/

得到如下提示

configure: error: zlib.h was not found

*** You must first install zlibz(libz) before you can build this package.

*** If libmad is already installed, you may need to use the CPPFLAGS

*** environment variable to specify its installed location, e.g. -I

看了一下/lib中有相应的库,可是改成相应的目录却仍然不能configure,于是到zlib的官方网站下来source code,按照hi.baidu.com/lanfeng143/blog/item/0f9cd03dc51cdd0abba16741.html的方法,根据提示知道目录为/usr/include

www.linuxidc.com @linuxidc:~/creek/madplay/src-x86/libid3tag-0.15.1b$./configure --prefix=/home/creek/creek/madplay/target-x86/ CPPFLAG=-I/usr/include

顺利通过。

www.linuxidc.com @linuxidc:~/creek/madplay/src-x86/libmad-0.15.1b$ make

时会出现下面这个错误

cc1: error: unrecognized command line option "-fforce-mem"

make[2]: *** [version.lo] Error 1

make[2]: Leaving directory `/home/creek/creek/madplay/src-x86/libmad-0.15.1b'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/creek/creek/madplay/src-x86/libmad-0.15.1b'

百度了一下,原因是GCC3.4以上已经没有-fforce-mem选项,找到相应的makefile,将该选项删除就OK了!

www.linuxidc.com @linuxidc:~/creek/madplay/src-x86/madplay-0.15.2b$ ./configure --prefix=/home/creek/creek/madplay/target-x86/ --CPPFLAGS=-I/home/creek/creek/madplay/target-x86/include --LDFLAGS=-L//home/creek/creek/madplay/target-x86/lib

configure: error: unrecognized option: --CPPFLAGS=-I/home/creek/creek/madplay/target-x86/include

Try `./configure --help' for more information.

按照手册上的内容输入,出现错误了。解决的办法就去掉那两个--,如下

www.linuxidc.com @linuxidc:~/creek/madplay/src-x86/madplay-0.15.2b$ ./configure --prefix=/home/creek/creek/madplay/target-x86/ CPPFLAGS=-I/home/creek/creek/madplay/target-x86/include LDFLAGS=-L//home/creek/creek/madplay/target-x86/lib

然后PASS

23e270a2513e08dc3a540996e5486aa9.png

最后顺利放出了声音0b1331709591d260c1c78e86d0c51c18.png

参与评论 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:数字20 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值