Build Instructions (OSX) - Grade-A-Software/Comcast-DASH-VLC GitHub Wiki

Note: This document is modified from the VLC build documents found HERE

Pre-requisites

Apple Software

Xcode select on Xcode 4.3

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

Git

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.

Configure the environment

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.

Get the source code

git clone https://github.com/Grade-A-Software/Comcast-DASH-VLC.git

Build VLC with a single command

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

⚠️ **GitHub.com Fallback** ⚠️