Compile vlc-android in Mac and vlc-android in mac

Source: Internet
Author: User
Tags android jelly bean

Compile vlc-android in Mac and vlc-android in mac


Preface

I suddenly wanted to complete VLC-Android, and then I went to the next playlist. Here I recorded the problems I encountered.

 

StatementWelcome to repost, but please keep the original source of the article :) blog Park: http://www.cnblogs.com farmer UNCLE: http://over140.cnblogs.com

 

Body

Generally according to the official website on the line (https://wiki.videolan.org/AndroidCompile), the following is a few problems encountered:

1. Environment Variable Configuration

Export ANDROID_NDK =/Users/nmbb/Android/android-ndk-r9d
Export ANDROID_SDK =/Users/nmbb/Android/android-sdk-macosx
Export PATH = $ PATH: $ ANDROID_SDK/platform-tools: $ ANDROID_SDK/tools
Export ANDROID_ABI = armeabi-v7a

 

2. Compilation Error

If sed: RE error: illegal byte sequence is encountered, add export LANG = C.

 

3. Do not compile jar and apk

Comment out the following three lines of Makefile:

# Git rev-parse -- short HEAD> $ (SRC)/assets/revision.txt

#./Gen-env.sh $ (SRC)

# $ (VERBOSE) cd $ (SRC) & ant $ (ANT_OPTS) $ (ANT_TARGET)

 

4, less iomx-jbmr2.so and iomx-kk.so

Comment out the line below Makefile

LIBVLC_LIBS + = libiomx-kk libiomx-jbmr2

Note:

# The following iomx libs are used for DEBUG only.
# (After android Jelly Bean, we prefer to use MediaCodec instead of iomx)

 

5. Enable the VLC to display the buffer progress

5.1 describe the following lines of EventHandler:

Public static final int MediaPlayerBuffering = 0x103;

5.2 modify jni/libvlcjni. c and add row 389 as follows:

Static const libvlc_event_type_t mp_events [] = {
Libvlc_MediaPlayerPlaying,
Libvlc_MediaPlayerPaused,
Libvlc_MediaPlayerEndReached,
Libvlc_MediaPlayerStopped,
Libvlc_MediaPlayerVout,
Libvlc_MediaPlayerPositionChanged,
Libvlc_MediaPlayerTimeChanged,
Libvlc_MediaPlayerEncounteredError,
Libvlc_MediaPlayerBuffering
};

Then re-compile and generate so. The article has not been tested yet. Please refer to this article:

Vlc-android get MediaPlayerEncounteredError, MediaPlayerBuffering and other Event Response http://blog.csdn.net/memegood123/article/details/8769008

 

End

No matter what the VLC functions are, at least the API design is poor.

 


What are the compiling software for C ++ in Mac OS?

Gcc must have a MAC version.
Eclipse also has MAC version
The CDT plug-in also has a MAC version.
Eclipse + cdt + gcc is OK
Eclipse + cdt has an integrated version, and jre can be installed.

How to compile and connect the c ++ Source Code Compiled by xcode in mac?

As far as I know, the previous vc6 can open a cpp file to compile and automatically create a project, and then execute it. However, for Versions later than vs, it seems that a project file needs to be created before the source code of the link can be compiled. The same is true for xcode. You need to create a project, add the cpp you wrote, and then compile the connection.

Related Article

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.