AndroidFFmpeg
AndroidFFmpeg copied to clipboard
build_android.sh "C compiler cannot create executables"
I've been trying to compile this source code by following this guide.
I start build_android.sh. After a while, it gives me this
Starting build amr for arm
- cd vo-amrwbenc
- ./configure --prefix=/home/gbmaniac/Android/AndroidFFmpeg/library-jni/jni/ffmpeg-build/armeabi --host=arm-linux --disable-dependency-tracking --disable-shared --enable-static --with-pic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... /home/gbmaniac/Android/Sdk/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for style of include used by make... GNU
checking for arm-linux-gcc... /home/gbmaniac/Android/Sdk/android-ndk-r8e/toolchains/arm-linux-androideabi-4.7/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/home/gbmaniac/Android/Sdk/android-ndk-r8e/platforms/android-5/arch-arm/
checking whether the C compiler works... no
configure: error: in
/home/gbmaniac/Android/AndroidFFmpeg/library-jni/jni/vo-amrwbenc': configure: error: C compiler cannot create executables Seeconfig.log' for more details
Could someone tell me what's wrong here?
find your vo-amrwbenc have any file. if not. download the git url is in .gitmodules "url = git://git.code.sf.net/p/opencore-amr/vo-amrwbenc"
I have the same problem, vo-amrwbenc have files. have you sovled ?
oh,my god, I use mac os NDK on my linux ,maybe it's the root cause.