mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-19 22:44:28 +08:00
Update macOS build directions
This commit is contained in:
parent
6782922d8b
commit
4af2ba5eaf
@ -7,16 +7,21 @@ To build PrusaSlicer on Mac OS, you will need the following software:
|
|||||||
- CMake
|
- CMake
|
||||||
- git
|
- git
|
||||||
- gettext
|
- gettext
|
||||||
|
- zlib
|
||||||
|
- m4
|
||||||
|
|
||||||
XCode is available through Apple's App Store, the other three tools are available on
|
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
|
### Dependencies
|
||||||
|
|
||||||
PrusaSlicer comes with a set of CMake scripts to build its dependencies, it lives in the `deps` directory.
|
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:
|
Use the following commands to build the dependencies:
|
||||||
|
|
||||||
|
cd deps
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
@ -102,6 +107,16 @@ If you install the CMake application from [universal DMG](https://github.com/Kit
|
|||||||
sudo xcode-select --reset
|
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
|
# TL; DR
|
||||||
|
|
||||||
Works on a fresh installation of MacOS Catalina 10.15.6
|
Works on a fresh installation of MacOS Catalina 10.15.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user