Skip to content

ffmpeg ndk r9 incompatibility #165

Closed
@LilyAcorn

Description

@LilyAcorn

Compiling one of my apps for android using buildozer with ndk r9 gives the following error:

Call build_ffmpeg
==> build for armv7a
==> toolchain is /home/quartic/.buildozer/android/platform/android-ndk-r9/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86
Makefile:1: config.mak: No such file or directory
libavutil/Makefile:1: libavutil/../config.mak: No such file or directory
libavutil/../subdir.mak:93: warning: overriding commands for target `libavutil/'
libavutil/../subdir.mak:26: warning: ignoring old commands for target `libavutil/'
Makefile:233: /tests/fate.mak: No such file or directory
Makefile:234: /tests/fate2.mak: No such file or directory
Makefile:236: /tests/fate/aac.mak: No such file or directory
Makefile:237: /tests/fate/als.mak: No such file or directory
Makefile:238: /tests/fate/fft.mak: No such file or directory
Makefile:239: /tests/fate/h264.mak: No such file or directory
Makefile:240: /tests/fate/mp3.mak: No such file or directory
Makefile:241: /tests/fate/vorbis.mak: No such file or directory
Makefile:242: /tests/fate/vp8.mak: No such file or directory
make: *** No rule to make target `/tests/fate/vp8.mak'. Stop.
+ tee ../build/ffmpeg/armeabi-v7a/configuration.txt
+ ./configure --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --sysroot=/home/quartic/.buildozer/android/platform/android-ndk-r9/platforms/android-3/arch-arm --soname-prefix=/data/data/com.bambuser.broadcaster/lib/ --disable-avfilter --disable-everything --enable-parser=h264,aac --enable-decoder=h264,aac --disable-pthreads --enable-protocol=file --enable-demuxer=sdp --enable-pic --enable-small --disable-avdevice --disable-symver --enable-asm --disable-dxva2 --disable-vdpau --disable-vaapi --disable-lpc --disable-huffman --disable-dct --disable-aandct --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-neon --prefix=../build/ffmpeg/armeabi-v7a '--extra-cflags=-march=armv7-a -mfpu=neon -mfloat-abi=softfp -fPIC -DANDROID' --extra-ldflags=
arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
+ set +x
Makefile:1: config.mak: No such file or directory
libavutil/Makefile:1: libavutil/../config.mak: No such file or directory
libavutil/../subdir.mak:93: warning: overriding commands for target `libavutil/'
libavutil/../subdir.mak:26: warning: ignoring old commands for target `libavutil/'
Makefile:233: /tests/fate.mak: No such file or directory
Makefile:234: /tests/fate2.mak: No such file or directory
Makefile:236: /tests/fate/aac.mak: No such file or directory
Makefile:237: /tests/fate/als.mak: No such file or directory
Makefile:238: /tests/fate/fft.mak: No such file or directory
Makefile:239: /tests/fate/h264.mak: No such file or directory
Makefile:240: /tests/fate/mp3.mak: No such file or directory
Makefile:241: /tests/fate/vorbis.mak: No such file or directory
Makefile:242: /tests/fate/vp8.mak: No such file or directory
make: *** No rule to make target `/tests/fate/vp8.mak'. Stop.
Makefile:1: config.mak: No such file or directory
libavutil/Makefile:1: libavutil/../config.mak: No such file or directory
libavutil/../subdir.mak:93: warning: overriding commands for target `libavutil/'
libavutil/../subdir.mak:26: warning: ignoring old commands for target `libavutil/'
Makefile:233: /tests/fate.mak: No such file or directory
Makefile:234: /tests/fate2.mak: No such file or directory
Makefile:236: /tests/fate/aac.mak: No such file or directory
Makefile:237: /tests/fate/als.mak: No such file or directory
Makefile:238: /tests/fate/fft.mak: No such file or directory
Makefile:239: /tests/fate/h264.mak: No such file or directory
Makefile:240: /tests/fate/mp3.mak: No such file or directory
Makefile:241: /tests/fate/vorbis.mak: No such file or directory
Makefile:242: /tests/fate/vp8.mak: No such file or directory
make: *** No rule to make target `/tests/fate/vp8.mak'. Stop.
# Command failed: ./distribute.sh -m "kivy ffmpeg"

Using ndk r8e, ffmepg compiles successfully.

I have only tested this using buildozer, not python-for-android directly. My application requirements in buildozer.spec is: requirements = kivy, ffmpeg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions