Cygwin pygobject-2.28.6韩元';t配置:无包';gobject-introspection-1.0';找到了,我该如何解决?
我正试图让pygobject-2.28.6在cygwin中编译(存储库中的版本是2.28.4,有一些问题)。以下是./configure的结尾:Cygwin pygobject-2.28.6韩元';t配置:无包';gobject-introspection-1.0';找到了,我该如何解决?,cygwin,pygobject,pkg-config,gobject,gobject-introspection,Cygwin,Pygobject,Pkg Config,Gobject,Gobject Introspection,我正试图让pygobject-2.28.6在cygwin中编译(存储库中的版本是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.
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自省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/),但没有效果。我还能做些什么来尝试解决这个问题?谢谢你抽出时间 您可能缺少开发包。包名因发行版而异,但它是包含
/usr/lib/pkgconfig/gobject-introspection-1.0.pc
(对于某些64位发行版,它是/usr/lib64/pkgconfig/gobject-introspection-1.0.pc
):
- Fedora、CentOS、RHEL等:gobject内省开发
- Debian、Ubuntu、Mint等:libgirepository1.0-dev
- 拱门:gobject内省
- FreeBSD:gobject自省
- Cygwin:libgirepository1.0-devel
- msys2:mingw-w64-x86_64-gobject-introspection和/或mingw-w64-i686-gobject-introspection
- 我在cygwin上编译了这个。您需要的软件包是:
libgirepository1.0-devel
在Ubuntu中,它被称为
libgirepository1.0-dev
我没有足够的代表发表评论,因此这实际上是Nemeq答案的补充:
- MSYS2:mingw-w64-x86_64-gobject-introspection和/或mingw-w64-i686-gobject-introspection