Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg ndk r9 incompatibility #165

Closed
LilyFoote opened this issue Oct 22, 2013 · 1 comment
Closed

ffmpeg ndk r9 incompatibility #165

LilyFoote opened this issue Oct 22, 2013 · 1 comment

Comments

@LilyFoote
Copy link

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
[email protected] 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.

@tito
Copy link
Member

tito commented Oct 29, 2013

Hi, I've rewrite part of the ffmpeg python extension to work with the latest 1.2.4 stable. Not the 2.1 yet. And it seems to works with NDK r9, as well as some optimizations are now activated (better performance on android!).

So clean your whole buildozer/python-for-android, pull if needed, and retry :)

@tito tito closed this as completed Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants