WIDORA SDK怎么编译shairport_mmap到固件



  • 在shairport_mmap目录下可以make成功,但是在SDK下编译会出错:
    mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -fpic -I/home/openwrt_wio/openwrt_widora-master/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt_wio/openwrt_widora-master/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt_wio/openwrt_widora-master/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt_wio/openwrt_widora-master/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include audio_alsa.c
    audio_alsa.c:32:28: fatal error: alsa/asoundlib.h: No such file or directory
    #include <alsa/asoundlib.h>
    ^
    compilation terminated.
    Makefile:60: recipe for target 'audio_alsa.o' failed
    make[3]: *** [audio_alsa.o] Error 1
    make[3]: Leaving directory '/home/openwrt_wio/openwrt_widora-master/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap'
    Makefile:58: recipe for target '/home/openwrt_wio/openwrt_widora-master/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap/.built' failed
    make[2]: *** [/home/openwrt_wio/openwrt_widora-master/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap/.built] Error 2
    make[2]: Leaving directory '/home/openwrt_wio/openwrt_widora-master/package/shairport_mmap'
    package/Makefile:191: recipe for target 'package/shairport_mmap/compile' failed
    make[1]: *** [package/shairport_mmap/compile] Error 2
    make[1]: Leaving directory '/home/openwrt_wio/openwrt_widora-master'
    /home/openwrt_wio/openwrt_widora-master/include/toplevel.mk:181: recipe for target 'package/shairport_mmap/compile' failed
    make: *** [package/shairport_mmap/compile] Error 2


  • administrators

    @song https://wiki.widora.io/_media/widora.config.txt
    最好还是按照config来,默认依赖就已经做好了,主要是alsa那些组件。
    https://wiki.widora.io/zh/compile



  • @mango 已解决 非常感谢


Log in to reply