VLC source analysis (a) vlc-android native Debug Configuration

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.