如何解决介子设置依赖性问题?

如何解决介子设置依赖性问题?

尝试在 CentOS 上安装 gtk-3.99.0。没有 root 权限。
meson setup --prefix ${HOME}/TOOLS/gtk/3.99.0 /tmp/builddir

Run-time dependency cairo-gobject found: NO (tried pkgconfig and cmake)

meson.build:353:0: ERROR: Dependency "cairo-gobject" not found, tried pkgconfig and cmake

尝试在本地安装 cairo-gobject 并获取以下文件。

/local/cairo-gobject/usr/lib/libcairo-gobject.so.2
/local/cairo-gobject/usr/lib/libcairo-gobject.so.2.11512.0
/local/cairo-gobject/usr/lib64/libcairo-gobject.so.2
/local/cairo-gobject/usr/lib64/libcairo-gobject.so.2.11512.0

但介子仍然抱怨没有 cairo-gobject。如何解决这个问题?

答案1

  1. 下载开罗从https://www.cairgraphics.org/releases/
  2. 安装开罗。
  3. setenv PKG_CONFIG_PATH ${YOUR_PATH}/cairo/1.16.0/lib/pkgconfig
Run-time dependency cairo found: YES 1.16.0
Run-time dependency cairo-gobject found: YES 1.16.0

相关内容