我试图让pygobject-2.28.6在cygwin中编译(存储库中的版本是2.28.4,这有一些问题)。下面是./配置的尾部:
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.我已经安装了自省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我尝试过在配置= to /lib/和/usr/lib/ (甚至/usr/ GI_LIBS /)中设置GI_LIBS和GI_LIBS,但都没有效果。我还能做些什么来解决这个问题呢?谢谢您抽时间见我!
发布于 2013-08-02 22:58:52
你可能错过了开发包。包名因发行版而异,但它包含/usr/lib/pkgconfig/gobject-introspection-1.0.pc (或64位发行版的/usr/lib64/pkgconfig/gobject-introspection-1.0.pc ):
发布于 2014-01-16 12:19:20
我要把这个写在cygwin上。您需要的包是:libgirepository1.0-devel。
在Ubuntu中,它被称为libgirepository1.0-dev
发布于 2016-12-08 18:45:33
我没有足够的代表对此发表评论,所以这是对尼米库回答的补充:
https://stackoverflow.com/questions/18025730
复制相似问题