collect2: cannot find 'ld'Android 编辑环境没配置好, arm环境的ld命令路径不对。

解决方案 »

  1.   

    环境配好了  ld命令能使用  就是交叉编译的时候报错 4.6gcc g++ arm的
      

  2.   

    cannot find 'ld'
    怎么看都像环境的问题。
      

  3.   

    libilbc-codec.so,这个文件你有吗?
      

  4.   

    高解决问题  4.4.3编译能通过 但是有个问题
    Compile++ thumb  : speex <= speex_jni.cpp
    Compile thumb  : speex <= speex.c
    Compile thumb  : speex <= speex_callbacks.c
    Compile thumb  : speex <= bits.c
    Compile thumb  : speex <= modes.c
    Compile thumb  : speex <= nb_celp.c
    Compile thumb  : speex <= exc_20_32_table.c
    Compile thumb  : speex <= exc_5_256_table.c
    Compile thumb  : speex <= exc_5_64_table.c
    Compile thumb  : speex <= exc_8_128_table.c
    Compile thumb  : speex <= exc_10_32_table.c
    Compile thumb  : speex <= exc_10_16_table.c
    Compile thumb  : speex <= filters.c
    Compile thumb  : speex <= quant_lsp.c
    Compile thumb  : speex <= ltp.c
    Compile thumb  : speex <= lpc.c
    Compile thumb  : speex <= lsp.c
    Compile thumb  : speex <= vbr.c
    Compile thumb  : speex <= gain_table.c
    Compile thumb  : speex <= gain_table_lbr.c
    Compile thumb  : speex <= lsp_tables_nb.c
    Compile thumb  : speex <= cb_search.c
    Compile thumb  : speex <= vq.c
    Compile thumb  : speex <= window.c
    Compile thumb  : speex <= high_lsp_tables.c
    StaticLibrary  : libstdc++.a
    SharedLibrary  : libspeex.so
    /home/xo/Developers/android-ndk-linux/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: Warning: /home/xo/Developers/android-ndk-linux/platforms/android-8/arch-arm/usr/lib/crtend_so.o: Unknown EABI object attribute 44
    Install        : libspeex.so => l
    最下面这个 44 不知道影响编译后的使用吗
      

  5.   

    我一般在eclipse里直接编译。。
      

  6.   

    /home/xo/Developers/android-ndk-linux/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: Warning: /home/xo/Developers/android-ndk-linux/platforms/android-8/arch-arm/usr/lib/crtend_so.o: Unknown EABI object attribute 44
    Install        : libspeex.so => l
    这个问题木有解决 不过经过测试这个问题暂时对编译后的so库没有影响
      

  7.   

    collect2: cannot find 'ld'
    这个问题也没解决 不过在交叉编译的时候在Application.mk文件中指明gcc和g++的版本为4.3就可以了,这是我解决问题的方法 其他人不知道是否适合