编译报错



  • root@ubuntu:/openwrt/widora/openwrt_widora/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/shairport_mmap# /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin/mipsel-openwrt-linux-uclibc-gcc shairport.o daemon.o rtsp.o mdns.o mdns_external.o mdns_tinysvcmdns.o common.o rtp.o metadata.o player.o alac.o audio.o audio_dummy.o audio_pipe.o tinysvcmdns.o -L/openwrt/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/openwrt/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -lm -lcrypto -lpthread -lavahi-common -lavahi-client -lasound -o shairport
    /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lavahi-common
    /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lavahi-client
    /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/initial/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: cannot find -lasound
    /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

    请大侠帮忙看看怎么解决,谢谢。



  • 就是链接失败,在
    /openwrt/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib
    /openwrt/widora/openwrt_widora/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib
    /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib
    /openwrt/widora/openwrt_widora/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib
    这4个目录都没找到
    libavahi-common.a
    libavahi-client.a
    libasound.a



  • @hardware-newbie 应该是我网络没有下载这些包的原因,重新make -j1 V=s
    编译就好了,多谢。