build_android.sh Android NDK configure: error: C compiler cannot create executables -
i error build_android.sh:
./build_android.sh configure: warning: if wanted set --build type, don't use --host. if cross compiler detected cross compile mode used. checking bsd-compatible install... /usr/bin/install -c checking whether build environment sane... yes checking arm-linux-androideabi-strip... no checking strip... strip checking thread-safe mkdir -p... /bin/mkdir -p checking gawk... gawk checking whether make sets $(make)... yes checking arm-linux-androideabi-gcc... /home/kkho/home/kkho/adt-bundle-linux-x86-20130917/android-ndk-9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/kkho/home/kkho/adt-bundle-linux-x86-20130917/android-ndk-9/platforms/android-8/arch-arm/ checking whether c compiler works... no
configure: error: in `/cygdrive/c/android_native_development_kit_cookbook/1505ot_codebundle/chapter_8/portingwithbuildsystem/jni/libbmp-0.1.3': configure: error: c compiler cannot create executables
i'm running script on windows cygwin, please me!
the build_android.sh
#!/bin/bash ndk=/cygdrive/c/android-ndk-r9 sysroot=$ndk/platforms/android-18/arch-arm/ export cflags="-mthumb" export ldflags="-wl,--fix-cortex-a8" export cc="$ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc --sysroot=$sysroot" ./configure \ --host=arm-linux-androideabi \ --prefix=$(pwd) \ --exec-prefix=$(pwd) #--libdir=$(pwd) \ #--includedir=$(pwd)/include \ #--oldincludedir=$(pwd)/include \ make clean make make install #$prebuilt/bin/arm-linux-androideabi-ld -rpath-link=$platform/usr/lib -l$platform/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -bsymbolic --whole-archive --no-undefined -o $prefix/libffmpeg.so ../x264/libx264.a libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a libavfilter/libavfilter.a libswresample/libswresample.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $prebuilt/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
Comments
Post a Comment