3

我尝试安装 gtk+-3.22.7.ta​​r.gz,但输入后我得到以下错误。请求帮助。

./configure result :configure: error: Package requirements (glib-2.0 >= 2.49.4 atk >= 2.15.1 pango >= 1.37.3 cairo >= 1.14.0 cairo-gobject >= 1.14.0 gdk-pixbuf-2.0 >= 2.30.0) were not met:

No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found
No package 'cairo-gobject' found
No package 'gdk-pixbuf-2.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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
And then I type make but result : make: *** No targets specified and no makefile found.  Stop.Anyone Can Help me !!!
4

2 回答 2

4

Fedora 25 已经提供了 GTK+ 3.22.2,我相信这对于你想要做的事情来说已经绰绰有余了。只需安装-develGTK+ 3 的包:gtk3-devel-3.22.2使用DNF 包管理器

另请参阅GTK+ 的 Fedora 开发人员指南

于 2017-02-13T10:59:36.613 回答
3

寻找:

$ dnf search gtk3*

安装:

$ sudo dnf install gtk3-devel

于 2021-05-21T01:23:11.663 回答