MacOS compiling error - 'SkRegion.h' file not found

I’m trying to compile Aseprite 1.2.17 on MacOS 10.15.3 (Catalina).
So far I have:

  • Cloned the repository
  • Downloaded and compiled (is that the right word?) CMake and Ninja
  • Downloaded the pre-built Skia binary and uncompressed it (filepath is Users/me/deps/skia)
  • Run the following commands successfully:
cd aseprite
mkdir build
cd build
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/MacOSX10.15.sdk \
  -DLAF_BACKEND=skia \
  -DSKIA_DIR=$HOME/deps/skia \
  -DSKIA_LIBRARY_DIR=$HOME/deps/skia/out/Release-x64 \
  -G Ninja \
  ..

When I now type “ninja aseprite,” I get a long block of text that ends with several errors.
Should I add the errors to this post, or do I need to open an issue on GitHub?

What does your $HOME/deps/skia folder look like? It should contain all the directories inside Skia-macOS-Release-x64.zip, not just the Release-x64 folder.

Umm, I also get this error and have no idea why it comes. I’ve tried all YouTube videos/tutorials and I do have all the dependencies like Xcode. Any help will be appreciated.