Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deprecated doc error in macOS section of INSTALL.md #4436

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,29 +163,48 @@ More information in [issue #2449](https://github.com/aseprite/aseprite/issues/24

## macOS details

Run `cmake` with the following parameters and then `ninja`:
To compile Aseprite on macOS, you need to set up your build environment correctly. Here are the steps to prepare and build Aseprite using `cmake` and `ninja`:

1. **Prepare the Build Directory**
```sh
cd aseprite
mkdir build
cd build
```

2. **Configure the Build**
Before running `cmake`, ensure you have the correct macOS SDK path. You can find the SDK path by running:
```sh
xcrun --show-sdk-path
```
Use the output from the above command to set the `CMAKE_OSX_SYSROOT` flag. Replace `/path/to/MacOSX.sdk` in the cmake command below with the path output from the `xcrun` command.

```sh
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \
-DCMAKE_OSX_SYSROOT=/path/to/MacOSX.sdk \
-DLAF_BACKEND=skia \
-DSKIA_DIR=$HOME/deps/skia \
-DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \
-DSKIA_LIBRARY=$HOME/deps/skia/out/Release-x64/libskia.a \
-G Ninja \
..
```

3. **Build Aseprite**
```sh
ninja aseprite
```

In this configuration:
- Replace `/path/to/MacOSX.sdk` with the actual path to the MacOSX SDK on your system.
- Ensure that `CMAKE_OSX_SYSROOT` points to the correct SDK directory as identified using `xcrun --show-sdk-path`.
- `$HOME/deps/skia` should be the directory where Skia was compiled or downloaded.

This setup will help ensure that your build environment is correctly configured for your specific macOS system and version.

In this case, `$HOME/deps/skia` is the directory where Skia was
compiled or downloaded. Make sure that `CMAKE_OSX_SYSROOT` is
pointing to the correct SDK directory (in this case
`/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk`),
but it could be different in your Mac.

### Apple Silicon

Expand Down