Gtk 如何修复无包';atk-bridge-2.0';即使安装了atk且设置了PKG_CONIG_路径和LD_LIBRARY_路径,仍发现错误?

Gtk 如何修复无包';atk-bridge-2.0';即使安装了atk且设置了PKG_CONIG_路径和LD_LIBRARY_路径,仍发现错误?,gtk,Gtk,首先,我安装了所有相关的软件包,包括atk 2.18 然后,我将它们添加到路径中 # echo $LD_LIBRARY_PATH /opt/gtk_+3.12-RHEL6/dependencies/at-spi2-atk/lib:/opt/gtk_+3.12-RHEL6/dependencies/gobject-introspection/lib:/opt/gtk_+3.12-RHEL6/dependencies/pango/lib:/opt/gtk_+3.12-RHEL6/dependenci

首先,我安装了所有相关的软件包,包括atk 2.18

然后,我将它们添加到路径中

# echo $LD_LIBRARY_PATH
/opt/gtk_+3.12-RHEL6/dependencies/at-spi2-atk/lib:/opt/gtk_+3.12-RHEL6/dependencies/gobject-introspection/lib:/opt/gtk_+3.12-RHEL6/dependencies/pango/lib:/opt/gtk_+3.12-RHEL6/dependencies/harfbuzz/lib:/opt/gtk_+3.12-RHEL6/dependencies/freetype/lib:/opt/gtk_+3.12-RHEL6/dependencies/icu4c/lib:/opt/gtk_+3.12-RHEL6/dependencies/cairo/lib:/opt/gtk_+3.12-RHEL6/dependencies/fontconfig/lib:/opt/gtk_+3.12-RHEL6/dependencies/libpng/lib:/opt/gtk_+3.12-RHEL6/dependencies/pixman/lib:/opt/gtk_+3.12-RHEL6/dependencies/atk/lib:/opt/gtk_+3.12-RHEL6/dependencies/gdk-pixbuf/lib:/opt/gtk_+3.12-RHEL6/dependencies/GLib/lib:

# echo $PATH
/opt/gtk_+3.12-RHEL6/dependencies/gobject-introspection/bin:/opt/gtk_+3.12-RHEL6/dependencies/pango/bin:/opt/gtk_+3.12-RHEL6/dependencies/harfbuzz/bin:/opt/gtk_+3.12-RHEL6/dependencies/freetype/bin:/opt/gtk_+3.12-RHEL6/dependencies/which/bin:/opt/gtk_+3.12-RHEL6/dependencies/icu4c/sbin:/opt/gtk_+3.12-RHEL6/dependencies/icu4c/bin:/opt/gtk_+3.12-RHEL6/dependencies/cairo/bin:/opt/gtk_+3.12-RHEL6/dependencies/fontconfig/bin:/opt/gtk_+3.12-RHEL6/dependencies/libpng/bin:/opt/gtk_+3.12-RHEL6/dependencies/gdk-pixbuf/bin:/opt/gtk_+3.12-RHEL6/dependencies/GLib/bin:/opt/python_2_7_11/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

# echo $PKG_CONFIG_PATH
/opt/gtk_+3.12-RHEL6/dependencies/at-spi2-atk/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/gobject-introspection/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/pango/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/harfbuzz/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/freetype/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/icu4c/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/cairo/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/fontconfig/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/libpng/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/pixman/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/atk/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/gdk-pixbuf/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies/GLib/lib/pkgconfig:/opt/gtk_+3.12-RHEL6/dependencies
但是,当我尝试运行./configure时,出现以下错误:

checking for ATK... no
configure: error: Package requirements (atk atk-bridge-2.0) were not met:

No package 'atk-bridge-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 ATK_CFLAGS
and ATK_LIBS to avoid the need to call pkg-config.
atk 2.18被清晰地添加到PKG_CONFIG_路径和LD_LIBRARY_路径中

因此,我认为atk-bridge-2.0是独立的,并找到了包:at-spi2-atk和at-spi2-core。但是,没有安装atk-bridge-2.0


请提供帮助。

atk-bridge-2.0API由提供,而不是由atk提供

您的构建环境相当糟糕,似乎您正在将每个组件安装到它自己的前缀中。你不应该。创建一个临时生成根目录,并将其添加到
$PATH
$PKG\u CONFIG\u PATH
$LD\u LIBRARY\u PATH
,以及
$XDG\u DATA\u DIRS
。然后,对每个组件使用相同的前缀


您应该看看它是如何工作的。

atk-bridge-2.0API是由而不是由atk提供的

您的构建环境相当糟糕,似乎您正在将每个组件安装到它自己的前缀中。你不应该。创建一个临时生成根目录,并将其添加到
$PATH
$PKG\u CONFIG\u PATH
$LD\u LIBRARY\u PATH
,以及
$XDG\u DATA\u DIRS
。然后,对每个组件使用相同的前缀


您应该看看它是如何工作的。

嗨..谢谢,我已经成功安装了它。但是只有在按顺序安装atk、dbus、at-spi2-core、at-spi2-atk之后,否则,安装中缺少桥接部分。嗨..谢谢,我已经成功安装了它。但只有在按顺序安装atk、dbus、at-spi2-core、at-spi2-atk之后,否则,安装中缺少桥接部分。