我正尝试在64位Suse Linux(10.2企业版)框中构建带有X支持的emacs 24.0.94。我看到X11库安装在/ usr/lib目录/ X11R6和我说的是配置脚本来寻找他们在该位置:使用X支持构建emacs
--x-includes=/usr/X11R6/include:/usr/include --x-libraries=/usr/X11R6/lib64:/usr/lib64
即使在上述选项中,配置脚本出错,它不能找到任何Xtoolkit:
checking X11 version 6... before 6
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for librsvg-2.0 >= 2.11.0... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for Wand >= 6.2.8... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.10 glib-2.0 >= 2.10... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for dbus-1 >= 1.0... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gio-2.0 >= 2.26... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gconf-2.0 >= 2.13... no
checking for lgetfilecon in -lselinux... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gnutls >= 2.6.6... no
checking for gnutls_certificate_set_verify_function... no
checking for xaw3d... no
checking for libXaw... configure: error: No X toolkit could be found.
If you are sure you want Emacs compiled without an X toolkit, pass
--with-x-toolkit=no
to configure. Otherwise, install the development libraries for the toolkit
that you want to use (e.g. Gtk+) and re-run configure.
请问有人可以告诉我可能是什么问题?
你想使用哪个工具包?你有它正确安装?哪里?如果你不知道,你可能想要与GTK一起去。 – tripleee 2012-03-13 05:47:47
是的,X11是显示功能的最低级别。为了与Windows并行绘图,可以将其视为处理图形卡驱动程序和在屏幕上绘制斑点所需的一些功能。在该层之上,您需要一些提供按钮和菜单的库以及其他所有进入图形应用程序的东西,并且您错过了该部分。 Gtk +可能就是你想要的那个,所以正如其他人所说的那样,只需安装gtk2-devel(或者其他所谓的?),并且构建应该可以工作。 – deong 2012-03-13 09:57:47
谢谢。请参阅下面关于本地安装emacs/gtk2-devel – Raj 2012-03-13 10:13:13