3 OSX builds have "best effort" support, i.e. build might not work at all, some
4 tests may fail and some sub-projects are excluded from build.
6 This manual outlines OSX specific setup. For general building and testing
7 instructions see "[BUILDING](BUILDING.md)" and
8 "[Building and Testing changes](doc/building_and_testing.md)".
10 [Homebrew](https://brew.sh/) is a popular package manager. JPEG XL library and
11 binaries could be installed using it:
19 Make sure that `brew doctor` does not report serious problems and up-to-date
20 version of XCode is installed.
22 Installing (actually, building) `clang` might take a couple hours.
29 brew install coreutils cmake giflib jpeg-turbo libpng ninja zlib
32 Before building the project check that `which clang` is
33 `/usr/local/opt/llvm/bin/clang`, not the one provided by XCode. If not, update
34 `PATH` environment variable.
36 Also, setting `CMAKE_PREFIX_PATH` might be necessary for correct include paths
40 export CMAKE_PREFIX_PATH=`brew --prefix giflib`:`brew --prefix jpeg-turbo`:`brew --prefix libpng`:`brew --prefix zlib`