[HELP] fail to compile Skia

8 views
Skip to first unread message

nil

unread,
Dec 1, 2025, 9:54:03 AM (3 days ago) Dec 1
to skia-discuss
ninja -C out/Debug
ninja: Entering directory `out/Debug'
[276/3684] compile ../../src/ports/SkFontConfigInterface_direct.cpp
FAILED: obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct.o
c++ -MD -MF obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct.o.d -DSK_CODEC_DECODES_BMP -DSK_CODEC_DECODES_WBMP -DSK_HIDE_PATH_EDIT_METHODS -DSK_R32_SHIFT=16 -DSK_ENABLE_PRECOMPILE -DSK_GANESH -DSK_USE_PERFETTO -DSK_GAMMA_APPLY_TO_A8 -DSK_DISABLE_LEGACY_NONCONST_SERIAL_PROCS -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DGPU_TEST_UTILS=1 -DSK_ENABLE_AVX512_OPTS -DSKIA_IMPLEMENTATION=1 -DSK_FONTMGR_FCI_AVAILABLE -I../.. -Wno-attributes -fPIC -fvisibility=hidden -fstrict-aliasing -g -gdwarf-4 -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-psabi -Wno-switch-default -Wno-unused-parameter -Wno-unreachable-code -fvisibility-inlines-hidden -std=c++20 -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-dangling-reference -c ../../src/ports/SkFontConfigInterface_direct.cpp -o obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct.o
In file included from ../../src/ports/SkFontConfigInterface_direct.cpp:21:
../../src/ports/SkFontConfigInterface_direct.h:14:10: fatal error: fontconfig/fontconfig.h: No such file or directory
   14 | #include <fontconfig/fontconfig.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[277/3684] compile ../../src/ports/SkFontConfigInterface_direct_factory.cpp
FAILED: obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct_factory.o
c++ -MD -MF obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct_factory.o.d -DSK_CODEC_DECODES_BMP -DSK_CODEC_DECODES_WBMP -DSK_HIDE_PATH_EDIT_METHODS -DSK_R32_SHIFT=16 -DSK_ENABLE_PRECOMPILE -DSK_GANESH -DSK_USE_PERFETTO -DSK_GAMMA_APPLY_TO_A8 -DSK_DISABLE_LEGACY_NONCONST_SERIAL_PROCS -DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1 -DGPU_TEST_UTILS=1 -DSK_ENABLE_AVX512_OPTS -DSKIA_IMPLEMENTATION=1 -DSK_FONTMGR_FCI_AVAILABLE -I../.. -Wno-attributes -fPIC -fvisibility=hidden -fstrict-aliasing -g -gdwarf-4 -Wall -Wextra -Winit-self -Wpointer-arith -Wsign-compare -Wvla -Wno-deprecated-declarations -Wno-maybe-uninitialized -Wno-psabi -Wno-switch-default -Wno-unused-parameter -Wno-unreachable-code -fvisibility-inlines-hidden -std=c++20 -fno-exceptions -fno-rtti -Wnon-virtual-dtor -Wno-noexcept-type -Wno-dangling-reference -c ../../src/ports/SkFontConfigInterface_direct_factory.cpp -o obj/src/ports/fontmgr_FontConfigInterface.SkFontConfigInterface_direct_factory.o
In file included from ../../src/ports/SkFontConfigInterface_direct_factory.cpp:8:
../../src/ports/SkFontConfigInterface_direct.h:14:10: fatal error: fontconfig/fontconfig.h: No such file or directory
   14 | #include <fontconfig/fontconfig.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[297/3684] compile ../../src/ports/SkFontMgr_android_parser.cpp
ninja: build stopped: subcommand failed.

Reply all
Reply to author
Forward
0 new messages