Skip to content

A great Android `.apk`, `elf`, `.so` and Host `.exe`, `elf`, `.a` compile system fork from http://git.videolan.org/?p=vlc-ports/android.git just with NDK and SDK

License

Notifications You must be signed in to change notification settings

flyskywhy/android-apps-host

Repository files navigation

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: template Src/apps/app/ base on branch vlc2android-mips, Although you can put it in Src/tools/android-apps-host/ and just run compile.sh as a tool
  • android-apps-host-gb: template Src/apps/app/ base on branch android-apps-host with android-gingerbread libs, Although you can put it in Src/tools/android-apps-host/ and just run compile.sh as a tool
  • installd-gb: installd of android-gingerbread version base on branch android-apps-host, also this is a simple template usage sample
  • adb-gb: adb of android-gingerbread version base on branch android-apps-host, also this is a complex template usage sample
  • master: git://git.videolan.org/vlc-ports/android.git
  • vlc2android-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 install mingw32-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 in Src/apps/your_jni_proj/ or ./vlc-android/, then modifyjni/Android.mk
  • Android elf and .so: source code in Src/apps/your_jni_proj/ or ./vlc-android/, then modify jni/Android.mk
  • Host .exe, elf and .a: source code in Src/apps/your_jni_proj/ or ./vlc-android/, then modify jni/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

The build environment

  1. Prepare source code as File support descripted
  2. Set variable like export ANDROID_NDK in compile.sh as your wish
  3. if your app need ld to some .a files (e.g. on linux host, adb need libcutils.a), you can modify and run cd ./host-libs/; gen-libs.sh, or just copy the .a files from compiled Android source to host-libs/
  4. Run ../tools/android-apps-host/compile.sh your_jni_proj in Src/apps/ or ../../tools/android-apps-host/compile.sh in Src/apps/your_jni_proj/. Although you can just put your code in ./vlc-android/ and run ./compile.sh

About

A great Android `.apk`, `elf`, `.so` and Host `.exe`, `elf`, `.a` compile system fork from http://git.videolan.org/?p=vlc-ports/android.git just with NDK and SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages