how_to_build_macos - NanashiTheNameless/OrcaSlicer_WIKI GitHub Wiki
How to building with Xcode on MacOS 64-bit.
- Xcode
- CMake
- Git
- gettext
- libtool
- automake
- autoconf
- texinfo
- pkgconf
Tip
You can install most of them by running:
brew install cmake gettext libtool automake autoconf texinfo pkgconfImportant
If you've recently upgraded Xcode, be sure to open Xcode at least once and install the required macOS build support.
Point the command-line tools at your Xcode installation and accept the license:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept # if you haven't accepted it yet-
Clone the repository:
git clone https://github.com/NanashiTheNameless/OrcaSlicer cd OrcaSlicer -
Build the application:
./build_release_macos.sh
[!TIP] If you're on the latest macOS and Xcode, set the deployment target explicitly so the build targets a supported SDK, e.g.:
./build_release_macos.sh -s -t 15.4
-
Open the application:
open build/arm64/OrcaSlicer/OrcaSlicer.app
To build and debug directly in Xcode:
-
Open the Xcode project:
open build/arm64/OrcaSlicer.xcodeproj
-
In the menu bar:
- Product > Scheme > OrcaSlicer
-
Product > Scheme > Edit Scheme...
- Under Run > Info, set Build Configuration to
RelWithDebInfo - Under Run > Options, uncheck Allow debugging when browsing versions
- Under Run > Info, set Build Configuration to
- Product > Run