我正在尝试在cygwin中编译pygobject-2.28.6(仓库中的版本为2.28.4,存在一些问题)。这是./configure的末尾:
checking for GLIB - version >= 2.24.0... yes (version 2.34.3)
checking for ffi... checking for FFI... yes
checking for GIO... yes
checking for GIOUNIX... yes
checking for GI... no
configure: error: Package requirements (glib-2.0 >= 2.24.0
gobject-introspection-1.0 >= 0.10.2
) were not met:
No package 'gobject-introspection-1.0' 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 GI_CFLAGS
and GI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我已安装gobject-introspection 1.34.2-3。如下所示:
$ whereis gobject-introspection
gobject-introspection: /lib/gobject-introspection /usr/lib/gobject-introspection
这里
$ whereis gobject-introspection-1.0
gobject-introspection-1: /usr/share/gobject-introspection-1.0
我已经尝试将 configure 中的 GI_CFLAGS 和 GI_LIBS 设置为 /lib/、/usr/lib/(甚至是 /usr/share/),但都无济于事。还有什么其他办法可以尝试解决这个问题吗?感谢您的时间!