尝试在 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
- 下载开罗从https://www.cairgraphics.org/releases/
- 安装开罗。
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