appunite / AndroidFFmpeg

[DEPRECATED] FFmpeg build for android random architectures with example jni
Apache License 2.0
1.07k stars 471 forks source link

Ability to compile with ndk r10e #116

Closed jacek-marchwicki closed 9 years ago

jacek-marchwicki commented 9 years ago

Closes #76

dzungpv commented 9 years ago

I edit build_android.sh replace arm-linux-androideabi-4.4.3 with arm-linux-androideabi-4.9 and r10e. Starting seem good but it stop at arm-linux-androideabi-ld: ,noexecstack: unknown -z option. I build on Yosemite 10.10.3 and Xcode 6.3.1

INSTALL libavutil/dict.h
INSTALL libavutil/opt.h
INSTALL libavutil/parseutils.h
INSTALL libavutil/pixdesc.h
INSTALL libavutil/pixfmt.h
INSTALL libavutil/random_seed.h
INSTALL libavutil/rational.h
INSTALL libavutil/samplefmt.h
INSTALL libavutil/sha.h
INSTALL libavutil/time.h
INSTALL libavutil/timecode.h
INSTALL libavutil/timestamp.h
INSTALL libavutil/version.h
INSTALL libavutil/xtea.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/libavutil.pc
AR  libavformat/libavformat.a
AR  libavresample/libavresample.a
AR  libavcodec/libavcodec.a
AR  libswresample/libswresample.a
AR  libswscale/libswscale.a
INSTALL libavformat/libavformat.a
INSTALL libavresample/libavresample.a
INSTALL libswresample/libswresample.a
INSTALL libswscale/libswscale.a
AR  libavutil/libavutil.a
INSTALL libavutil/libavutil.a
INSTALL libavcodec/libavcodec.a
/Users/dev/Library/Android/ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ld: ,noexecstack: unknown -z option
/Users/dev/Library/Android/ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ld: use the --help option for usage information
jacek-marchwicki commented 9 years ago

@dzungpv this is not enough - please look on this branch and this should work on mac, but still have some problem with linux (travis)

dzungpv commented 9 years ago

@jacek-marchwicki Hope you can solve this, my app crash on android 5.1.1 with r8e. I see this guy can build r10e successful, may be you want to see https://github.com/adfernandes/FFmpeg-AvRdft

jacek-marchwicki commented 9 years ago

@dzungpv this branch should work on linux and on mac but travis has some problems with building it so I can not merge

dzungpv commented 9 years ago

@jacek-marchwicki I can build ./build_android.sh but build ndk lib failed:

Android NDK: ERROR:jni/Android.mk:ffmpeg-prebuilt: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that jni/ffmpeg-build/arm64-v8a/libffmpeg.so exists  or that its path is correct   
/Users/dev/Library/Android/ndk-r10e/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting    .  Stop.

So maybe missing arm64-v8a and x86_64 setting.

jacek-marchwicki commented 9 years ago

@dzungpv set library-jni/jni/Application.mk to: APP_ABI := armeabi-v7a armeabi x86

dzungpv commented 9 years ago

@jacek-marchwicki Great work! I can build all now include android app.

I come here to find a ffmpeg project that I can customize and build, I am new to git submodule and ndk development too. How can I edit ffmpeg version from this project, example I want 2.6.1 version? And I want additional lib in .so with minimal size for some codec in my app which I can not download anywhere. This is not relate to this pull but I am very thank if you help me.

jacek-marchwicki commented 9 years ago

@dzungpv if this question does not refer to this pull request, put it to issue tracker