[vlc-devel] compiling VLC 1.0 on Mac OS X

Derk-Jan Hartman hartman at videolan.org
Fri Feb 13 16:31:54 CET 2009


As some may know, we have been having some serious trouble with thread  
cancellation on OSX for some while now. Felix already reported that he  
had seen improvements with using LLVM, so i did a few tests,

It seems indeed that with llvm the cancellation issues are solved. I'm  
thinking however that this is more related to usage of gcc-4.2, then  
due to llvm. Because I suddenly remembered that the default gcc on the  
CONSOLE is still gcc-4.0.* in the latest XCode versions. (still needs  
to be confirmed)

Anyways the following works for me:

cd extras/contrib
CONTRIBS_CC_LLVM=yes ./bootstrap
cd ../..
export CC="/Developer/usr/bin/llvm-gcc-4.2"
export OBJC="/Developer/usr/bin/llvm-gcc-4.2"
export CXX="/Developer/usr/bin/llvm-g++-4.2"
./bootstrap
./configure --disable-macosx-defaults --with-macosx-version-min=10.5 -- 
prefix=yourvlclocation/vlc_install_dir --enable-macosx --enable-faad -- 
enable-flac --enable-theora --enable-shout --enable-cddax  --enable- 
vcdx --enable-caca --enable-goom --enable-ncurses --enable-twolame -- 
enable-realrtsp --enable-update-check --enable-libass --enable- 
asademux --disable-skins2 --disable-x11 --disable-glx --disable-xvid -- 
disable-nls --with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
make

I could revert:
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=076dc4357cbe4eec9085a59162c6910a07d0b850
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b6ed8084e27fa27f51d3abdeb37052ea9af38fb
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e1cb28a3a913418ac845c622e0d1647ed0d24d39

So my idea is that for 1.0.0 we switch to gcc-4.2 and SDK 10.5. I  
think that should solve most of our issues.
Then we need to fixup the drawable usage a bit in my opinion, but it  
seems to me that vlc can be usable and in the neighbourhood of  
"releasable" when we do that work.

DJ



More information about the vlc-devel mailing list