opened 06:47AM - 19 Apr 25 UTC
closed 07:42AM - 19 Apr 25 UTC
OS: MacOS 15.4 (M4 Pro)
Hi there, i was trying to build aseprite on mac m4 pro …silicon using the following build command:
```
cmake \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_OSX_ARCHITECTURES=arm64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=15.4 \
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \
-DLAF_BACKEND=skia \
-DSKIA_DIR=$SKIA \
-DSKIA_LIBRARY_DIR=$SKIA/out/Release-arm64 \
-DSKIA_LIBRARY=$SKIA/out/Release-arm64/libskia.a \
-DPNG_ARM_NEON:STRING=on \
-G Ninja \
..
```
but im getting the following error:
```
[243/1559] Generating scripts/intprefix.out
FAILED: third_party/libpng/scripts/intprefix.out /Users/me/deps/aseprite/build/third_party/libpng/scripts/intprefix.out
cd /Users/me/deps/aseprite/build/third_party/libpng && /opt/homebrew/bin/cmake -DINPUT=/Users/me/deps/aseprite/third_party/libpng/scripts/intprefix.c -DOUTPUT=/Users/me/deps/aseprite/build/third_party/libpng/scripts/intprefix.out -P /Users/me/deps/aseprite/build/third_party/libpng/scripts/genout.cmake
In file included from /Users/me/deps/aseprite/third_party/libpng/scripts/intprefix.c:21:
/Users/me/deps/aseprite/third_party/libpng/scripts/../pngpriv.h:524:16: fatal error: 'fp.h' file not found
524 | # include <fp.h>
| ^~~~~~
1 error generated.
CMake Error at scripts/genout.cmake:78 (message):
Failed to generate
/Users/me/deps/aseprite/build/third_party/libpng/scripts/intprefix.out.tf1
```
i also tried to change the line 524 to #include <math.h>, still not working.
is there any solution ?