Select Git revision
comptime.sh
README-macos.md 9.60 KiB
Mac OS X (aka macOS).
These instructions are for people using Apple's Mac OS X (pronounced "ten"), which in newer versions is just referred to as "macOS".
From the developer's point of view, macOS is a sort of hybrid Mac and Unix system, and you have the option of using either traditional command line tools or Apple's IDE Xcode.
Command Line Build
To build SDL using the command line, use the standard configure and make process:
mkdir build
cd build
../configure
make
sudo make install
CMake is also known to work, although it continues to be a work in progress:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
sudo make install
You can also build SDL as a Universal library (a single binary for both 64-bit Intel and ARM architectures), by using the build-scripts/clang-fat.sh script.
mkdir build
cd build
CC=$PWD/../build-scripts/clang-fat.sh ../configure
make
sudo make install