简体   繁体   English

错误:使用未声明的标识符“FT_Get_Var_Axis_Flags”

[英]error: use of undeclared identifier 'FT_Get_Var_Axis_Flags'

I try to compile skia on Linux with these arguments:我尝试使用这些 arguments 在 Linux 上编译 skia:

cc = "clang"
cxx = "clang++"
target_os = "linux"
target_cpu = "x64"
is_debug = false
extra_cflags = [ "-I/path/to/freetype2/include/freetype" ]

But I am getting this error message但我收到此错误消息

../../src/ports/SkFontHost_FreeType.cpp:1775:24: error: use of undeclared identifier 'FT_Get_Var_Axis_Flags'
        bool hidden = !FT_Get_Var_Axis_Flags(variations, i, &flags) &&
                       ^
../../src/ports/SkFontHost_FreeType.cpp:1776:32: error: use of undeclared identifier 'FT_VAR_AXIS_FLAG_HIDDEN'
                      (flags & FT_VAR_AXIS_FLAG_HIDDEN);
                               ^
2 errors generated.

I am sure the path to the include directory of freetype2 is correct.我确定 freetype2 的包含目录的路径是正确的。 I also tried the path /path/to/freetype2/include but none of them helped.我也尝试了路径/path/to/freetype2/include但它们都没有帮助。

Any idea how to solve this problem?知道如何解决这个问题吗?

you need to update your system freetype to 2.8.1 to use FT_Get_Var_Axis_Flags & FT_VAR_AXIS_FLAG_HIDDEN您需要将系统 freetype 更新到 2.8.1 才能使用 FT_Get_Var_Axis_Flags & FT_VAR_AXIS_FLAG_HIDDEN

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM