Build Instructions (OSX) - Grade-A-Software/Comcast-DASH-VLC GitHub Wiki
Note: This document is modified from the VLC build documents found HERE
- You need at least MacOSX 10.5. 10.6, Snow Leopard or later is strongly recommended, though.
-
Developer Tools from Apple from http://developer.apple.com/technology/xcode.html
Both Xcode3 and Xcode4 should be fine.
Note: If using Xcode 4.3 or later, the command line tools must be installed manually through preferences. Additionally, Xcode 4.3 will require changes to VLC's build system which are currently pending and may require patching until resolved.
If you are on Xcode 4.3 with no previous Xcode installation , you probably need to run xcode select to point to your xcode developer directory.
xcrun clang
If this outputs 'Error: No developer directory...', then use xcode-select to select the developer directory within the Xcode package.
Something like:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
If you have XCode 4, Git is already installed You just need to point your Terminal to it:
export PATH=/Developer/usr/bin:$PATH
If you have Xcode 3, get Git from their website.
On Mac OS X 10.6 VLC needs to be compiled using Apple's llvm-gcc-4.2 compiler in its latest version. To use this compiler, you need to export the respective variables. In a Bourne Shell, type this (if Xcode is installed to its default location; bash is the default shell on OS X):
export CC=/Developer/usr/bin/llvm-gcc-4.2
export CXX=/Developer/usr/bin/llvm-g++-4.2
export OBJC=/Developer/usr/bin/llvm-gcc-4.2
On Mac OSX 10.8.2 use the following
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
If you are using a C-Shell, you need to use the setenv command of course.
git clone https://github.com/Grade-A-Software/Comcast-DASH-VLC.git
Setup a build folder:
cd Comcast-DASH-VLC && mkdir build && cd build
And run the build:
../extras/package/macosx/build.sh
Wait and you are finished