Http://www.cnblogs.com/jiayayao/p/6770479.html
1, according to the website gives the link, the git clone code, configures the good Android Sdk,ndk ... After running compile.sh;
2, there is a protobuf related problems (seems to require PROTOBUF3), their own to download the site after installation, you can compile through;
3, or to find a can sisu network, or can FQ account, the compilation process will download a lot of Google-related software , in order to avoid unexpected errors, you understand;
4, configure vlc-android: Click Edit Configurations->debugger->debugger Type, select Hybrid (or some show as dual), Symbol Directories choose vlc-android/libvlc/jni/obj/local/armeabi-v7a/;
The first 4 steps can be broken to native place, but makefile in the optimization, not normal debug, switch off optimization there are two places to note:
1, VLC directory contrib with third-party libraries, but modify third-party libraries (such as close live555 optimization), Android Studio in the build apk operation is not recompiled live555, and then use the new version of live555, You need to make it manually and copy the generated. A file to the vlc-android/vlc/contrib/arm-linux-androideabi/lib/directory manually. Because this directory is vlc-android take out to compile libvlc.so file when used;
2, the LIBVLC project encapsulates the VLC project (compile.sh download) for the LIBVLC.SO,VLC project compiled after the generated files placed in the vlc-android/vlc/ Build-android-arm-linux-androideabi folder, vlc-android do this should be for the source of neat consideration. When adding the VLC Project off optimization (--enable-debug,--disable-optim, etc.), and rerun the build APK (actually performed compile-libvlc.sh), found that the makefile under the Vlc-android/vlc/build-android-arm-linux-androideabi folder did not take effect (still-o2), READ carefully to discover compile-libvlc.sh in Configure VLC project, add if judgment. So temporarily remove the if judgment, after the implementation of the build apk, plus, because not added each time will be re-configure,make, very time-consuming. This operation, the Vlc-android/vlc/build-android-arm-linux-androideabi folder under the makefile has become O0, so that it can be normal native debugging.
VLC source analysis (a) vlc-android native Debug Configuration