<?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=Orkid</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=Orkid"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Orkid/"/>
	<updated>2026-11-04T18:03:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=UnixCompile&amp;diff=11147</id>
		<title>UnixCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=UnixCompile&amp;diff=11147"/>
		<updated>2008-03-29T09:45:49Z</updated>

		<summary type="html">&lt;p&gt;Orkid: /* Final configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Prepare your environment==&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;
==Get the source==&lt;br /&gt;
Start by [[GetTheSource| getting the source]], using FTP for releases, or using [[Git]] for development.&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;
 cd /path/to/your/vlc/folder/&lt;br /&gt;
&lt;br /&gt;
If you are using the [[Git]] version, start by bootstraping your VLC.&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;
Now you can start to configure VLC. Remember to first take a look at ./configure --help. Take a good look at that enormous list of options. &lt;br /&gt;
&lt;br /&gt;
=== General info ===&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 a thing.&lt;br /&gt;
You can have the full list [[Contrib_Status|here]].&lt;br /&gt;
&lt;br /&gt;
There are some very important dependancies. 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 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, wxWidgets (wxGTK) for proper GUI support and libdvd* for DVD support.&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;
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;
===Get&#039;em===&lt;br /&gt;
There are a few ways to get those libs. You should use only one method at the time:&lt;br /&gt;
&lt;br /&gt;
* Using your distribution or portage system, in order to get all the needed libs (preferred method) :&lt;br /&gt;
By example on Debian or Ubuntu:&lt;br /&gt;
 # apt-get build-dep vlc;&lt;br /&gt;
&lt;br /&gt;
* Using the contribs system in VLC&#039;s sources&lt;br /&gt;
  % cd extras/contrib;&lt;br /&gt;
  % ./bootstrap;&lt;br /&gt;
  % 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;
* Read the [[Contrib_Status|list]], then and do it 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;
./configure is used to check that your system is able to compile VLC.&lt;br /&gt;
It&#039;s also now that you choose the functionalities of your build of VLC.&lt;br /&gt;
 % ./configure --help&lt;br /&gt;
will show you the various options&lt;br /&gt;
&lt;br /&gt;
===Special libs ===&lt;br /&gt;
Use --with-ffmpeg-tree=path/to/ffmpeg/source/tree and --with-livedotcom-path=path/to/livemedia/source/tree in connection with  --enable-ffmpeg and --enable-livedotcom&lt;br /&gt;
For ffmpeg it is also important to tell VLC if you compiled ffmpeg with faac and/or lame support. Use the --with-ffmpeg-faac and --with-ffmpeg-mp3lame configure flags.&lt;br /&gt;
&lt;br /&gt;
=== Final configuration ===&lt;br /&gt;
If you want to install VLC into another directory, run&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;
 % ./configure --enable-x11 --enable-xvideo --disable-gtk --enable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --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-qt --enable-wxwindows --enable-ncurses --enable-release&lt;br /&gt;
&lt;br /&gt;
[[User:J-b#My VLC|Here]] is another.&lt;br /&gt;
&lt;br /&gt;
== Compilation ==&lt;br /&gt;
Compile VLC:&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;
 # make install&lt;br /&gt;
&lt;br /&gt;
To remove files created during the compile (optional) type:&lt;br /&gt;
 % make clean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
=== Cygwin ===&lt;br /&gt;
Compiling on [[Win32CompileCygwin|Cygwin]] may be broken from time to time.&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian users who want to compile VLC should install the packages below. &lt;br /&gt;
Note: if you just want to &#039;&#039;use&#039;&#039; VLC media player then simply install the package vlc (apt-get install vlc) - the unstable version is normally very up-to-date (and stable is, er, stable ;-)&lt;br /&gt;
* [http://packages.debian.org/unstable/libdevel/libavcodec-dev libavcodec-dev]&lt;br /&gt;
* [http://packages.debian.org/unstable/libdevel/libpostproc-dev libpostproc-dev]&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;
This HOWTO has been originally written by [mailto:hartman_at_videolan_dot_org Derk-Jan Hartman].&lt;br /&gt;
It has been modified and updated by [[User:J-b| Jean-Baptiste Kempf]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* http://www.slacky.eu/repository/slackware-11.0/multimedia/vlc/0.8.6a/src/vlc.SlackBuild&lt;br /&gt;
[[Category:Building]]&lt;/div&gt;</summary>
		<author><name>Orkid</name></author>
	</entry>
</feed>