<?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=Chombier</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=Chombier"/>
	<link rel="alternate" type="text/html" href="https://wiki.videolan.org/Special:Contributions/Chombier/"/>
	<updated>2026-11-04T17:14:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.videolan.org/index.php?title=Talk:MacOSCompile&amp;diff=12742</id>
		<title>Talk:MacOSCompile</title>
		<link rel="alternate" type="text/html" href="https://wiki.videolan.org/index.php?title=Talk:MacOSCompile&amp;diff=12742"/>
		<updated>2008-11-20T11:02:46Z</updated>

		<summary type="html">&lt;p&gt;Chombier: /* Configure the VLC build */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(comments withdrawn)&lt;br /&gt;
&lt;br /&gt;
: First of all, this wiki isn&#039;t the correct place to discuss this kind of questions. vlc-devel at videolan is a far better place. Anyway, it&#039;s correct that you can use the 10.4u SDK as well. In fact, VLC obviously automatically does so on Intel-based Macs. Concerning your 2nd comment: no further tool beside the default installation to /usr/local is required to build VLC (excepting svn/subversion in rare cases). Any other 3rd party library, which would usually end up in that directory is built and installed inside VLC&#039;s code base, in extras/contrib to be precise. That&#039;s clearly stated on this HOWTO page. Please mail the mailing list mentioned above for further feedback. Additionally, when complaining about VLC in general or particularly documentation, keep in mind that we&#039;re doing this in our spare time and that we aren&#039;t required to answer your requests, especially when strangers to this project get demanding and impolite. [[User:Fkuehne|feepk]] 01:27, 1 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== Change how the build intruction are shown --[[User:Pdherbemont|Pdherbemont]] 20:34, 31 May 2007 (CEST) == &lt;br /&gt;
I would suggest we put the build command in some form easier to read, like :&lt;br /&gt;
&lt;br /&gt;
* Build the third party libraries&lt;br /&gt;
  cd vlc/extras/contrib&lt;br /&gt;
  ./bootstrap&lt;br /&gt;
  make &lt;br /&gt;
* Now build vlc&lt;br /&gt;
 ./bootstrap&lt;br /&gt;
 ./configure&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
(By the way, the current instruction to use make src doesn&#039;t work.  make alone is sufficient and necessary. --[[User:Chjones|Chjones]] 00:59, 18 June 2008 (CEST))&lt;br /&gt;
&lt;br /&gt;
== Please don&#039;t link to subversion --[[User:Pdherbemont|Pdherbemont]] 12:15, 2 May 2008 (CEST) == &lt;br /&gt;
&lt;br /&gt;
= Compiling VLC on Mac OS X (draft) =&lt;br /&gt;
Compiling {{VLC}} on Mac OS X is different from normal compilation on Linux and Mac OS X. We do not use Xcode, nor a simple &amp;lt;code&amp;gt;./configure&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt;. Below you will find instructions for how to compile VLC on Mac OS X - remember to check the prerequisites before taking the plunge.&lt;br /&gt;
&lt;br /&gt;
If you wish to develop or test please join the vlc-devel mailinglist.&lt;br /&gt;
&lt;br /&gt;
Please do not publish any of the non-released test binaries or svn-compiles on software sites or on user-forums. We have had bad experiences with this before and we do not appreciate it.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
* Mac OS X 10.4.x (Tiger) or 10.5.x (Leopard)&lt;br /&gt;
* Xcode 2.4.x or Xcode 2.5&lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
* Subversion&lt;br /&gt;
&lt;br /&gt;
Mac OS X 10.4 (Universal) SDK (a part of Xcode) is required to build the external libraries of VLC.&lt;br /&gt;
&lt;br /&gt;
Your GCC version should be set to 4 (the default setting).&lt;br /&gt;
&lt;br /&gt;
Xcode can be found online or on the Developer Tools disc, which accompanied Mac OS X.&lt;br /&gt;
&lt;br /&gt;
Compiling with earlier releases of Mac OS X and/or Xcode will not work.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If building {{VLC}} on Mac OS X 10.5 Leopard, be sure to read the paragraph on this specific version below, before proceeding.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mac OS X 10.5 Leopard ===&lt;br /&gt;
Note, that only VLC&#039;s current development trunk can be compiled on Mac OS X 10.5 Leopard. While the 0.8.6 series, when compiled on Tiger, works on Leopard (as expected), no current stable branch compiles on Mac OS X 10.5 Leopard.&lt;br /&gt;
&lt;br /&gt;
As widely published, this version of Mac OS X includes a new release of Xcode, called Xcode 3, which includes many cool new features, but unfortunately, it is incompatible with VLC. You need Xcode 2.5 to compile VLC on Leopard, which can easily be installed in addition to your Xcode 3 tools. However, you need to edit your PATH variable before doing anything with VLC&#039;s source. In case that you installed to to the default location (&amp;lt;code&amp;gt;/Xcode2.5&amp;lt;/code&amp;gt;) and you are using the default shell (&amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt;), this is pretty simple:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;export PATH=/Xcode2.5/bin:/Xcode2.5/sbin:/Xcode2.5/usr/bin:/Xcode2.5/usr/sbin:$PATH&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need to repeat this PATH edit every time you relaunch the shell. You can avoid this by editing your bashrc file. Once Apple releases a fixed linker for Mac OS X Leopard, this work-around will not be necessary anymore and you can use Xcode 3 as expected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Starting with Leopard, Xcode may be installed to a custom location on the administrator&#039;s choice. While this is non-problematic for ordinary Xcode projects, VLC needs a little help. You have to place extra symbolic links in /Developer pointing to your custom location for these folders:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;usr, Headers, Private, SDKs, Tools, Makefiles&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can easily create these links by executing the following command for each folder (whereas theFolder is one of these six):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ln -s /full/path/to/Developer/theFolder /Developer/theFolder&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Regarding Fink ===&lt;br /&gt;
If you have Fink installed, then you will need to disable it. {{VLC}} has it&#039;s own form of Fink (in the extras/contrib subdir) and it can conflict with Fink. We use this system to generate a reliable, consistent and known amount of packages that {{VLC}} requires. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;To disable Fink comment the line: #source /sw/bin/init.csh in your .cshrc file or . /sw/bin/init.csh in your .bashrc file in your home-directory.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Please follow these steps for compiling:&lt;br /&gt;
&lt;br /&gt;
=== Get the source ===&lt;br /&gt;
Download the {{VLC}} [[GetTheSource|source code]] using [[subversion]] (as described on the [[GetTheSource| &amp;quot;Get the source&amp;quot;]] page) or get a recent source tarball. Note that the 3rd party libraries will probably break a few months after the release&#039;s publication.&lt;br /&gt;
&lt;br /&gt;
These instructions below are always for the currently unstable, non-released code.&lt;br /&gt;
&lt;br /&gt;
If you compile from [[Subversion]] then please remember that this code can often be in an unstable state. &lt;br /&gt;
&lt;br /&gt;
=== Build external libs ===&lt;br /&gt;
&lt;br /&gt;
We now need to build the [[Contrib_Status| 3rd party libs]]. For that, you will need to:&lt;br /&gt;
* cd to the source directory with your Terminal application.&lt;br /&gt;
* cd to the extras/contrib subdir of VLC and execute &amp;lt;code&amp;gt;./bootstrap&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now execute &amp;lt;code&amp;gt;make src&amp;lt;/code&amp;gt;. This will download and compile all the required external libraries and programs. You will only have to do this once. (You can do it again if required libraries are added or updated by the team.)&lt;br /&gt;
&#039;&#039;If bootstrap exits with an error message on Mac OS X Leopard, check the paragraph on this version above.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Prepare the VLC build ===&lt;br /&gt;
Now we return to VLC itself. Go back to the top level VLC source directory. If you use Subversion (which you really should), then run &amp;lt;code&amp;gt;./bootstrap&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
This will create configure and Makefiles for {{VLC}} (snapshots and releases already include this).&lt;br /&gt;
&lt;br /&gt;
=== Configure the VLC build ===&lt;br /&gt;
&lt;br /&gt;
The next step is to configure, in the top level VLC source directory.&lt;br /&gt;
&lt;br /&gt;
In current trunk revisions, you can simply run &amp;lt;code&amp;gt;./configure --enable-debug --with-macosx-sdk&amp;lt;/code&amp;gt; to get VLC in its default configuration. If do not want to use VLC&#039;s default configuration for Mac, be sure to add &amp;lt;code&amp;gt;--disable-macosx-defaults&amp;lt;/code&amp;gt; to your custom set.&lt;br /&gt;
&lt;br /&gt;
When compiling earlier revisions or the 0.8.6 branch, you need to give a wide variety of configure flags to achieve a useful build. We used to use this set:&lt;br /&gt;
&amp;lt;code&amp;gt; ./configure --enable-debug --disable-x11 --disable-xvideo --disable-glx --enable-sdl --enable-mad --enable-libdvbpsi --enable-a52 --disable-dvdplay --enable-dvdnav --enable-dvdread --enable-ffmpeg --enable-faad --enable-flac --enable-vorbis --enable-speex --enable-theora --enable-ogg --enable-shout --enable-cddb --disable-cddax --enable-vcdx --disable-skins --disable-skins2 --disable-wxwidgets --enable-freetype --enable-fribidi --enable-caca --enable-live555 --enable-dca --enable-goom --enable-modplug --enable-gnutls --enable-daap --enable-ncurses --enable-libtwolame --enable-x264 --enable-png --enable-realrtsp --enable-lua --disable-libtool&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can add &amp;lt;code&amp;gt;--with-mozilla-sdk-path=./extras/contrib/gecko-sdk --enable-mozilla&amp;lt;/code&amp;gt; to the configure-line to enable the compilation of VLC&#039;s Safari/Firefox plugin.&lt;br /&gt;
&lt;br /&gt;
=== Build VLC ===&lt;br /&gt;
After configure is finished, we can finally build {{VLC}}. A simple &amp;lt;code&amp;gt;make&amp;lt;/code&amp;gt; will do the trick. If you want to use the resulting application package on a different Mac or a different account on the same Mac, run &amp;lt;code&amp;gt;make VLC-release.app&amp;lt;/code&amp;gt; afterwards. Use the resulting &#039;&#039;VLC-release.app&#039;&#039; for these purposes.&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
Written by Jean-Alexis Montignies, [[User:Fkuehne|Felix Paul Kühne]] and Derk-Jan Hartman, for the VideoLAN Team.&lt;br /&gt;
Adapted to the Wiki by [[User:j-b|Jean-Baptiste Kempf]]. Edited by Jesper Stemann Andersen.&lt;br /&gt;
&lt;br /&gt;
[[Category:Building]]&lt;br /&gt;
[[Category:Coding]]&lt;/div&gt;</summary>
		<author><name>Chombier</name></author>
	</entry>
</feed>