Skip to content

Building for OSX

Johan Sköld edited this page Jul 24, 2016 · 2 revisions

General build steps:

mkdir build-osx
cd build-osx
cmake ..
make

Or if you prefer using Xcode:

mkdir build-osx
cd build-osx
cmake -G Xcode ..

Then build sc.xcodeproj using your preferred method.

Universal builds

In order to create a universal build (a build that works with both 32-bit and 64-bit executables), CMAKE_OSX_ARCHITECTURES should be defined to i386;x86_64 by setting it on the cmake command line:

cmake -D CMAKE_OSX_ARCHITECTURES='i386;x86_64' ..

or

cmake -D CMAKE_OSX_ARCHITECTURES='i386;x86_64' -G Xcode ..