求教: openwrt 编译出错 “cannot find -lavahi-client”



  • 编译环境

    mcos下 docker ubuntu16.04,
    不知道是环境哪里出问题了,缺少了什么, 希望来一位大神指点一下

    错误提示
    /work/openwrt-widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lavahi-client
    /work/openwrt-widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
    collect2: error: ld returned 1 exit status
    Makefile:66: recipe for target 'shairport' failed
    make[4]: *** [shairport] Error 1
    make[4]: Leaving directory '/work/openwrt-widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap'
    Makefile:58: recipe for target '/work/openwrt-widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap/.built' failed
    make[3]: *** [/work/openwrt-widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap/.built] Error 2
    make[3]: Leaving directory '/work/openwrt-widora/openwrt_widora/package/shairport_mmap'
    package/Makefile:191: recipe for target 'package/shairport_mmap/compile' failed
    make[2]: *** [package/shairport_mmap/compile] Error 2
    make[2]: Leaving directory '/work/openwrt-widora/openwrt_widora'
    package/Makefile:188: recipe for target '/work/openwrt-widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
    make[1]: *** [/work/openwrt-widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
    make[1]: Leaving directory '/work/openwrt-widora/openwrt_widora'
    /work/openwrt-widora/openwrt_widora/include/toplevel.mk:181: recipe for target 'world' failed
    make: *** [world] Error 2
    


  • 项目文件夹目录执行:
    rm .config
    rm -r tmp
    make menuconfig 里重新选择WIDORA配置后编译



  • 可以了, 多谢!


Log in to reply
 

6
Online

922
Users

562
Topics

2.2k
Posts