Skip to content

Cannot build skia renderer #39

@JCash

Description

@JCash

I tried to build the skia renderer (per the README.md), but it fails on building libpng.
I'm on arm64-macos, using Xcode 16.3 Beta.

Build:

$ cd skia/dependencies
$ ./make_skia.sh

Output:

[12/1097] compile ../../third_party/externals/libpng/pngrutil.c
FAILED: obj/third_party/externals/libpng/libpng.pngrutil.o 
cc -MD -MF obj/third_party/externals/libpng/libpng.pngrutil.o.d -DPNG_SET_OPTION_SUPPORTED -DNDEBUG  -w -Wno-attributes -fstrict-aliasing -fPIC -fvisibility=hidden -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -arch arm64 -arch arm64e -O3 -fno-rtti -fembed-bitcode -mios-version-min=10.0 -flto=full -DSK_DISABLE_SKPICTURE -DSK_DISABLE_TEXT -DRIVE_OPTIMIZED -DSK_DISABLE_LEGACY_SHADERCONTEXT -DSK_DISABLE_LOWP_RASTER_PIPELINE -DSK_FORCE_RASTER_PIPELINE_BLITTER -DSK_DISABLE_AAA -DSK_DISABLE_EFFECT_DESERIALIZATION -isystem /Users/mathiaswesterdahl/work/external/rive-runtime/skia/dependencies/skia_rive_optimized/third_party/libpng -isystem /Users/mathiaswesterdahl/work/external/rive-runtime/skia/dependencies/skia_rive_optimized/third_party/externals/libpng -isystem /Users/mathiaswesterdahl/work/external/rive-runtime/skia/dependencies/skia_rive_optimized/third_party/externals/zlib  -c ../../third_party/externals/libpng/pngrutil.c -o obj/third_party/externals/libpng/libpng.pngrutil.o
In file included from ../../third_party/externals/libpng/pngrutil.c:17:
../../third_party/externals/libpng/pngpriv.h:527:16: fatal error: 'fp.h' file not found
  527 | #      include <fp.h>
      |                ^~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions