IOS VLC compilation step (includes porting and screenshot features)

Source: Internet
Author: User

http://blog.csdn.net/Kan_Crystal/article/details/40424673

First, download the source code

First to VLC official website will download the source to this machine, the following link for the official website compiled operation address: https://wiki.videolan.org/IOSCompile/

Open the terminal to execute the following command (VPN is recommended):

    git clone git://git.videolan.org/vlc-ports/ios.git

After the code download is complete, the code is compiled:

(Release): SH compilevlcforios.sh-v

(Debug): SH compilevlcforios.sh-v-D

You can use it once the compilation is complete. (if the compilation does not pass the iOS directory can be found in the compilevlcforios.sh in the SVN checkout Http://google-api-objectivec-client.googlecode.com/svn/trunk /source GDrive and CD GDrive && svn up && CD. and Curl-o Https://www.dropbox.com/static/developers/dropbox-ios-sdk-${dropboxsdkversion}.zip to comment them out front plus # and recompile)

Second, the transplant Image library attention issues

Locate the following libraries and associated frameworks and place them in our own project catalog

Note: You need to set the path to the library and header files under Build Settings-"Search paths. You can then compile.

Third, add the function

It is not supported in our direct compiled VLC, so we have to do the following:

1. Locate the following path (iOS-"importedsources-" Vlckit-"Mobilevlckit-" importedsources-"VLC-" extras-"package-" ios):

Open build.sh with the Text tool and locate the following code:

# Run Configure only upon changes. If ["${vlcroot}/configure"-nt config.log-o \ "${this_script_path}"-nt Config.log]; Then ${vlcroot}/configure \--prefix= "${prefix}" \--host= "${target}" \--with-contrib= "${vlcroot}/contrib/${t Arget}-${arch} "\--disable-debug \--enable-static \--disable-macosx \--disable-macosx-dialog-provider \--disable-macosx-qtkit \

Find-disable-sout to replace it with--enable-png save.

Then find the following path (iOS-"importedsources-" Vlckit-"Mobilevlckit-" importedsources-"VLC-" modules-"access_output):

Open the modules.am with a text tool and replace the contents with the following to save.

Sources_access_output_dummy = dummy.c Sources_access_output_file = file.c sources_access_output_udp = udp.c SOURCES_ Access_output_http = http.c bonjour.c bonjour.h sources_access_output_shout = shout.c
Access_output_ltlibraries + = \ libaccess_output_dummy_plugin.la \ libaccess_output_file_plugin.la \ Libaccess_ output_udp_plugin.la \ libaccess_output_http_plugin.la
#libaccess_output_udp_plugin_la_SOURCES = udp.c #libaccess_output_udp_plugin_la_LIBADD = $ (socket_libs) $ (libpthread ) #access_output_LTLIBRARIES + = libaccess_output_udp_plugin.la
Libaccess_output_livehttp_plugin_la_sources = livehttp.c Libaccess_output_livehttp_plugin_la_cflags = $ (AM_CFLAGS) $ (gcrypt_cflags) Libaccess_output_livehttp_plugin_la_libadd = $ (gcrypt_libs)-lgpg-error if HAVE_GCRYPT access_output_ Ltlibraries + = libaccess_output_livehttp_plugin.la endif

Then recompile, execute the following command:

(Release): Sh compilevlcforios.sh-v-N

(Debug): SH compilevlcforios.sh-v-d-n

IOS VLC compilation steps (includes porting and features)

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.