gpt4 book ai didi

macos - 如何在没有 uuid 的情况下编译 fontconfig

转载 作者:行者123 更新时间:2023-12-01 00:19:57 25 4
gpt4 key购买 nike

我想创建 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 的情况下绕过此错误?

最佳答案

显然,这是 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 中的源应该不再有这个问题。
  • 关于macos - 如何在没有 uuid 的情况下编译 fontconfig,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49466963/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com