A great Android .apk
, elf
, .so
and Host .exe
, elf
, .a
compile system fork from git://git.videolan.org/vlc-ports/android.git just with NDK and SDK
Because videolan is still WIP it, for merge code later and for respect, Li Zheng flyskywhy@gmail.com just removed vlc related files in vlc-android/, and didn't touch the vlc related character in compile.sh, Makefile, and vlc-android/.
Branch description:
android-apps-host
: templateSrc/apps/app/
base on branchvlc2android-mips
, Although you can put it inSrc/tools/android-apps-host/
and just runcompile.sh
as a toolandroid-apps-host-gb
: templateSrc/apps/app/
base on branchandroid-apps-host
with android-gingerbread libs, Although you can put it inSrc/tools/android-apps-host/
and just runcompile.sh
as a toolinstalld-gb
: installd of android-gingerbread version base on branchandroid-apps-host
, also this is a simple template usage sampleadb-gb
: adb of android-gingerbread version base on branchandroid-apps-host
, also this is a complex template usage samplemaster
: git://git.videolan.org/vlc-ports/android.gitvlc2android-mips
: vlc android mips version base on branch master
Target support:
- Android on ARM and MIPS, maybe x86 is OK too.
Host support:
- Linux and Windows on x86, maybe Darwin is OK too.
Host Windows support:
- Host support by MinGW under Windows (recommend msys.bat in msysgit)
- Host support by MinGW under Linux (recommend
apt-get install gcc-mingw32
and use below command to installmingw32-zlib
)
wget http://apt.arrozcru.org/mingw32-zlib/mingw32-zlib_1.2.5-1_all.deb; sudo dpkg -i mingw32-zlib_1.2.5-1_all.deb
File support:
- Android
.apk
: source code inSrc/apps/your_jni_proj/
or./vlc-android/
, then modifyjni/Android.mk
- Android
elf
and.so
: source code inSrc/apps/your_jni_proj/
or./vlc-android/
, then modifyjni/Android.mk
- Host
.exe
,elf
and.a
: source code inSrc/apps/your_jni_proj/
or./vlc-android/
, then modifyjni/Android.mk
, and need the overwrited android-ndk-r7b(>100MB) or android-ndk-host(<200KB) overwrite on Google Android ndk by yourself
If compile error, maybe the ./1st_install_tools.sh
here can help you.
If link error, maybe the cd ./host-libs/; gen-libs.sh
here can help you.
If MinGW under Linux, run with USE_MINGW=1 compile.sh
or USE_MINGW=1 ./gen-libs.sh
to build ./host-libs/*.a
- Prepare source code as
File support
descripted - Set variable like
export ANDROID_NDK
incompile.sh
as your wish - if your app need ld to some
.a
files (e.g. on linux host, adb needlibcutils.a
), you can modify and runcd ./host-libs/; gen-libs.sh
, or just copy the.a
files from compiled Android source tohost-libs/
- Run
../tools/android-apps-host/compile.sh your_jni_proj
inSrc/apps/
or../../tools/android-apps-host/compile.sh
inSrc/apps/your_jni_proj/
. Although you can just put your code in./vlc-android/
and run./compile.sh