返回> 网站首页 

alsa、mad编译

yoours2023-04-03 21:53:51 阅读 1837

简介一边听听音乐,一边写写文章。

一、mad

    1. 下载源码

        ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz

    2. 下载编译配置

        解决 checking build system type... Invalid configuration `aarch64-linux': machine `aarch64' not recognized

        下载后替换即可

        wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'

        wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'

    3. 配置

        ./configure --prefix=/root/2023/libmad-0.15.1b/build  CC=/tools/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc --host=aarch64-linux-gnu

    4. 修改Makefile

        解决 error: unrecognized command line option '-fforce-mem'; did you mean '-fforce-addr'?

        打开Makefile文件,删除-fforce-mem和-fforce-addr编译项

        make

       make install

二、asla

    1. 下载

        https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.8.tar.bz2      

    2. 编译

        ./configure --prefix=/root/2023/alsa-lib-1.2.8/build  CC=/tools/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc --host=aarch64-linux-gnu

        make
        make install


微信小程序扫码登陆

文章评论

1837人参与,0条评论