Project Address: https://github.com/DeYangLiu/AndroidPlayer/
Highlights :
A simple file browser implemented with the ListView.
Start another activity with intent.
NDK Debugging.
Transplant FFmpeg 2.5 and sdl2 into various pits of Android.
compile multiple libraries at the same time
====
Ln-s/mnt/opensource/sdl_image jni/
Ln-s/mnt/opensource/sdl_image/showimage.c jni/src/
Gvim jni/src/android.mk
Local_src_files = ... showimage.c
Local_shared_libraries + = Sdl2_image
Test cannot locate symbol Atof
Forget the Sdlactivity.java inside and add Sdl2_image.
Then comes the cannot locate symbol "signal"
Q. How to judge Android phone 64bit or?
A:ADB PULL/SYSTEM/BIN/DALVIKVM && File DALVIKVM
Of course, my cell phone is 32bit, online someone needs to use the 32bit ndk, I tried also useless.
Confused, in the afternoon again search, encountered [1] After, things appear a turnaround.
ffmpeg4android
====
[1] Download down don't know where to start,
Carefully read the inside of the shell script, understand to download FFmpeg source code,
Then buildtest.sh. [1] The original plan was and Android source
The tree is compiled below, but it can't be downloaded in the mainland, and U Pelya can be compiled separately.
I failed when I first tried the newest ffmpeg2.5. [2] When I saw that the script was only supported to 1.1, I downloaded it.
Makefiles the following three files:
ANDROID_CONFIGURE.MK--Setting the configuration parameter string
ANDROID_.MK--The compilation parameters that are used by subdirectories such as Libavutils Libavcodec.
ANDROID.MK--Contains the above two documents; Set App_modules compilation parameters according to Config.mak.
Then extract the FFmpeg source code to $ffmpegdir, makefiles the following files to copy the past.
Generate two files:
Jni/android.mk
Jni/application.mk
Ln-s $ffmpegdir Jni/ffmpeg
Then you can make it up:
Ndk-build-j8 2>&1 | Tee Build.log
Because the SDL2 itself comes with a MK, directly
Ln-s $sdldir jni/sdl
In Jni/application.mk plus SDL2.
There is also a JNI test entry to be left:
CP-RF android-ndk-r10d/samples/hello-jni/jni/src Jni/adapter
UI entry:
CP-RF android-ndk-r10d/samples/two-libs/src src
Project file:
Cp-rf android-ndk-r10d/samples/two-libs/{res, Androidmanifest.xml default.properties}
Git code already uses static links. Thanks [1] for the guidelines.
Ref
====
[1] Git://git.code.sf.net/u/pelya/ffmpeg4android
[2] http://ffmpeg.org/releases/ffmpeg-1.1.tar.bz2
Ffplay2 Android version officially released