Compile VLC2.0.1 in Ubuntu

Source: Internet
Author: User
Premise: computer can connect to Internet1, download vlc source code and dependent tools # sudoapt-getbuild-depvlc (vlc version was 2.0.1 at that time) # sudoapt-getinstalllibtoolbuild-essentialautomake1.10git-core2, vlc compilation preparation: let's take a look at the readme and install help files in the directory to understand the compilation process.

Premise: the computer can connect to the Internet

1. Download vlc source code and dependent tools

# Sudo apt-get build-depvlc (the current vlc version is 2.0.1)

# Sudo apt-get install libtool build-essential automake1.10 git-core

2. Compile vlc

Preparation: first look at the readme and install help files in the directory, have an understanding of the compilation process, and then start to compile:

# Cd vlc-2.0.1

#./Bootstrap

#./Configure-enable-debug-disable-nls-disable-optimizations

# Make

# Make install

3. The contrib directory contains the libraries used by vlc. If you want to compile these libraries, such as qt4

# Tar xvzf qt4.7.4.tar.gz

# Cd qt4

#./Configure

# Make

# Make install

4. Install the Firefox Mozilla vlc plug-in. You can use vlc in Firefox.

# Sudo apt-get update

# Sudo apt-get install vlc-plugin-pulse mozilla-plugin-vlc

5. Use Eclipse to debug vlc

Create a project, create a project based on makefiles, import the vlc directory, and select gcc compilation and gdb debugging to debug vlc.

If the debugging process is serialized, it indicates there are optimization options during compilation. You can find the corresponding makefile file, replace all "-O2" with "-O0", and then modify it. c file, re-build the project to solve this problem!

Timeline:

View vlc compilation articles online -- compile vlc -- View documentation on the vlc official website -- Learn gcc -- Learn gdb debugging knowledge -- use Emacs to debug vlc -- import vlc to Eclipse -- use Eclipse debugging -- remove compilation Optimization -- understand the general structure of vlc in actual debugging -- create a c ++ project, import and compile the required vlc code (failed. You must have a deep understanding of makefile to implement it)

Related reading:Install the latest VLC 2.0.1 multimedia playback software in Ubuntu 12.04/11.10Http://www.linuxidc.com/Linux/2012-03/57589.htm

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.