diff --git a/doc/How to build - Mac OS.md b/doc/How to build - Mac OS.md index a35c7f962a..82fbfd6686 100644 --- a/doc/How to build - Mac OS.md +++ b/doc/How to build - Mac OS.md @@ -7,16 +7,21 @@ To build PrusaSlicer on Mac OS, you will need the following software: - CMake - git - gettext +- zlib +- m4 XCode is available through Apple's App Store, the other three tools are available on -[brew](https://brew.sh/) (use `brew install cmake git gettext` to install them). +[brew](https://brew.sh/) (use `brew install cmake git gettext zlib m4` to install them). + +It may help to skim over this document's [Troubleshooting](#troubleshooting)](#troubleshooting) first, as you may find helpful workarounds documented there. ### Dependencies PrusaSlicer comes with a set of CMake scripts to build its dependencies, it lives in the `deps` directory. -Open a terminal window and navigate to PrusaSlicer sources directory and then to `deps`. +Open a terminal window and navigate to the PrusaSlicer sources directory. Use the following commands to build the dependencies: + cd deps mkdir build cd build cmake .. @@ -102,6 +107,16 @@ If you install the CMake application from [universal DMG](https://github.com/Kit sudo xcode-select --reset ``` +### Xcode keeps trying to install `m4` or the process complains about no compatible `m4` found. + +Ensure the homebrew installed `m4` is in front of any other installed `m4` on your system. + +_e.g._ `echo 'export PATH="/opt/homebrew/opt/m4/bin:$PATH"' >> ~/.bash_profile` + +### `cmake` complains that it can't determine the build deployment target + +If you see a message similar this, you can fix it by adding an argument like this `-DCMAKE_OSX_DEPLOYMENT_TARGET=14.5` to the `cmake` command. Ensure that you give it the macOS version that you are building for. + # TL; DR Works on a fresh installation of MacOS Catalina 10.15.6