【问题标题】:How to compile fontconfig without uuid如何在没有 uuid 的情况下编译 fontconfig
【发布时间】:2018-09-03 03:38:39
【问题描述】:

我想创建 fontconfig 的 dylib,但我必须在没有 uuid 的情况下这样做

我的 ./configure 选项是:

./configure --disable-docs --disable-dependency-tracking --disable-silent-rules --enable-shared --with-add-fonts="/System/Library/Fonts","/Library/Fonts","~/Library/Fonts"

但我坚持:

...
checking for struct dirent.d_type... yes
checking The type of len parameter of gperf hash/lookup function... unsigned int
checking for FREETYPE... yes
checking for FT_Get_BDF_Property... yes
checking for FT_Get_PS_Font_Info... yes
checking for FT_Has_PS_Glyph_Names... yes
checking for FT_Get_X11_Font_Format... yes
checking for FT_Done_MM_Var... yes
checking for UUID... no
configure: error: Package requirements (uuid) were not met:

No package 'uuid' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables UUID_CFLAGS
and UUID_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

如何在不使用 UUID 的情况下绕过此错误?

【问题讨论】:

    标签: macos compilation fontconfig


    【解决方案1】:

    显然,这是在 2.12.x 版本中引入的一个错误。我对 2.13.0 和 2.12.93 有同样的问题,但可以构建 2.12.3。

    还有一些评论here。要点似乎是:

    • libuuid 并不是真正的依赖项,configure 应该更清楚,但您可以通过设置解决它: UUID_CFLAGS = " " UUID_LIBS = " " 并从 PKGCONFIG_REQUIRES_PRIVATELY 中删除 uuid

    • 你可以使用patch

    • 截至 2018-03-12,git 中的源应该不再有这个问题。

    【讨论】:

      猜你喜欢
      • 2020-03-25
      • 1970-01-01
      • 2015-03-12
      • 2013-02-16
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      • 2011-01-21
      • 2012-09-03
      相关资源
      最近更新 更多