<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Soid</id>
	<title>VideoLAN Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.videolan.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Soid"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Soid/"/>
	<updated>2026-11-04T16:39:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=UnixCompile&amp;diff=17062</id>
		<title>UnixCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=UnixCompile&amp;diff=17062"/>
		<updated>2010-09-14T10:13:43Z</updated>

		<summary type="html">&lt;p&gt;Soid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Prepare your environment  ==&lt;br /&gt;
&lt;br /&gt;
VLC uses gcc, automake, autoconf and friends for compilation. Make sure they are up to date and usable for your system. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Get the source  ==&lt;br /&gt;
&lt;br /&gt;
Start by [[GetTheSource|getting the source]], using FTP for releases, or using [[Git]] for development. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If your are using the release, download source code and extract the archive and go into your VLC directory. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % cd /path/to/your/vlc/folder/&lt;br /&gt;
&lt;br /&gt;
If you are using the [[Git]] version, start by bootstrapping your VLC. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % cd /path/to/your/vlc/folder/&lt;br /&gt;
 % ./bootstrap&lt;br /&gt;
&lt;br /&gt;
== Get the 3rd party libs  ==&lt;br /&gt;
&lt;br /&gt;
Now you can start to configure VLC. Remember to first take a look at &amp;lt;tt&amp;gt;./configure --help&amp;lt;/tt&amp;gt;. Take a good look at that enormous list of options. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== General info  ===&lt;br /&gt;
&lt;br /&gt;
It is very important that you install and enable all the 3rd party libraries that you will be needing and let me tell you that that are a lot. If you don&#039;t install them you will end up with an application that well..... essentially doesn&#039;t do anything. See [[Contrib Status|here]] for a complete list. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
There are some very important dependencies: gettext (nls) for international support (required), libdvbpsi for mpeg files and streams support, libmad for mp3 decoding, libmpeg2 for mpeg 1 and 2 video support, ffmpeg (libavcodec, libavformats, libswscale) for support of mpeg4 and many other types of video, liba52 for dolby (AC3) sound, alsa for proper audio output, xvideo for proper video output, QT4 for proper GUI support and libdvd* for DVD support. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Be careful!&#039;&#039;&#039; Some of the libraries are better not to be installed (at all, beware of old installations) and should be linked to directly. These are mostly ffmpeg and liveMedia. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
There are also some libraries that are no longer being maintained and which we advise not to use. These include the gtk, gnome and kde GUIs, the glide and mga modules. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Get&#039;em  ===&lt;br /&gt;
&lt;br /&gt;
There are a few ways to get those libs. You should use only one method at a time: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;The preferred way&#039;&#039;&#039;: Using your distribution or portage system, in order to get all the needed libs.&lt;br /&gt;
&lt;br /&gt;
For example on Debian or Ubuntu: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 # apt-get build-dep vlc&lt;br /&gt;
&lt;br /&gt;
*If your distro is really bad and doesn&#039;t provide the libs, no -dev or -devel packages: Using the contribs system in VLC&#039;s sources&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;nbsp;% cd extras/contrib;&lt;br /&gt;
 &amp;amp;nbsp;% ./bootstrap;&lt;br /&gt;
 &amp;amp;nbsp;% make;&lt;br /&gt;
&lt;br /&gt;
This should download and build a lot of those libs for you. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
*Read the [[Contrib Status|list]], download them and build by hand.&lt;br /&gt;
&lt;br /&gt;
== Configuration  ==&lt;br /&gt;
&lt;br /&gt;
You need to tweak your configure line. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;./configure&amp;lt;/tt&amp;gt; is used to check whether your system is able to compile VLC. Also you choose the functionalities of your build. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % ./configure --help&lt;br /&gt;
&lt;br /&gt;
will show you the various options &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Special libs  ===&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;tt&amp;gt;--with-live555-path=path/to/livemedia/source/tree&amp;lt;/tt&amp;gt; in connection with --enable-live555&amp;amp;lt;/tt&amp;amp;gt;. For ffmpeg, the only reliable way for VLC&#039;s configure to know how your ffmpeg&#039;s libs were compiled is to use pkg-config. So you need to set PKG_CONFIG_PATH correctly if your ffmpeg is not installed at the default place or you want to use static linking. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Final configuration  ===&lt;br /&gt;
&lt;br /&gt;
If you want to install VLC into another directory, run &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % ./configure --prefix=/path/to/install/folder/&lt;br /&gt;
&lt;br /&gt;
This is an example of a typical VLC configure line: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % ./configure --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-avcodec --enable-avformat --enable-swscale --enable-mad --enable-libdvbpsi --enable-a52 --enable-libmpeg2 --enable-dvdnav --enable-faad --enable-vorbis --enable-ogg --enable-theora --enable-faac --enable-mkv --enable-freetype --enable-fribidi --enable-speex --enable-flac --enable-live555 --with-live555-tree=/usr/lib/live --enable-caca --enable-skins --enable-skins2 --enable-alsa --disable-kde --enable-qt4 --enable-ncurses --enable-release&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[User:J-b#VLC_configure_line|Here]] is another. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Ubuntu  ==&lt;br /&gt;
&lt;br /&gt;
If you get continuous errors while ./configure then consider reinstalling the corresponding libraries. This will set the paths and other information correctly. Check the $PKG_CONFIG_PATH(environment variable) whether it is set to a path where the libraries like libavcodec.pc are available. Otherwise create the environment variable, export it and then update the ldconfig &lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
== Compilation  ==&lt;br /&gt;
&lt;br /&gt;
Compile VLC: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % make&lt;br /&gt;
&lt;br /&gt;
As root (type &amp;quot;su&amp;quot; to change to root account): &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 # make install&lt;br /&gt;
&lt;br /&gt;
To remove files created during the compile (optional) type: &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 % make clean&lt;br /&gt;
&lt;br /&gt;
== Notes  ==&lt;br /&gt;
&lt;br /&gt;
=== Cygwin  ===&lt;br /&gt;
&lt;br /&gt;
Compiling on [[Win32CompileCygwin|Cygwin]] may be broken from time to time. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Debian  ===&lt;br /&gt;
&lt;br /&gt;
Debian users who want to compile VLC should install the packages below. Note: If you just want to &#039;&#039;use&#039;&#039; VLC media player then simply install the package vlc (&amp;lt;tt&amp;gt;sudo apt-get install vlc&amp;lt;/tt&amp;gt;) - the unstable version is normally very up-to-date (and stable is, er, stable&amp;amp;nbsp;;-) &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
*[http://packages.debian.org/unstable/libdevel/libavcodec-dev libavcodec-dev] &lt;br /&gt;
 &lt;br /&gt;
*[http://packages.debian.org/unstable/libdevel/libpostproc-dev libpostproc-dev] &lt;br /&gt;
 &lt;br /&gt;
*[http://packages.debian.org/unstable/libdevel/libmpeg2-4-dev libmpeg2-4-dev]&lt;br /&gt;
&lt;br /&gt;
== Version  ==&lt;br /&gt;
&lt;br /&gt;
This HOWTO has been originally written by [mailto:hartman_at_videolan_dot_org Derk-Jan Hartman]. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
It has been modified and updated by [[User:J-b|Jean-Baptiste Kempf]]. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
It was spelled-checked and sudoed by [[User:Materthron|materthron]]. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Further spell-checking, grammar corrections, and replaced a word with &amp;quot;bad&amp;quot; by [[User:Neo The User|Neo_The_User]].&lt;br /&gt;
 &lt;br /&gt;
== Possible problems ==&lt;br /&gt;
You may need to install lua if you get &amp;quot;LUA byte compiler missing.&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
For Ubuntu:&lt;br /&gt;
&lt;br /&gt;
 % sudo aptitude install lua51&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;/div&gt;</summary>
		<author><name>Soid</name></author>
	</entry>
</feed>