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