分页: 1 / 1

编译emacs24 with gtk3 错误

发表于 : 2013-01-18 13:26
afox800
系统 Linux mint 13 maya:

代码: 全选

Linux JJDL 3.5.0-21-generic #32~precise1-Ubuntu SMP Thu Dec 13 20:26:47 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
编译emacs24

代码: 全选

./configure --with-x-toolkit=gtk3
错误:

代码: 全选

checking for gtk+-3.0 >= 3.0 glib-2.0 >= 2.28... no
configure: error: Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
gtk+-3.0 glib-2.0 这两个需要安装什么开发环境?

:em20

Re: 编译emacs24 with gtk3 错误

发表于 : 2013-01-18 13:56
zlbruce
你需要装上 gtk3.0 的开发包。
也许叫这个名字 libgtk3.0-dev

Re: 编译emacs24 with gtk3 错误

发表于 : 2013-01-18 14:07
YeLee
都是pkgconfig一套的工具,glib-2.0.pc在libglib2.0-dev里,gtk+-3.0.pc在libgtk-3-dev里面 。

Re: 编译emacs24 with gtk3 错误

发表于 : 2013-01-18 19:27
afox800
YeLee 写了:都是pkgconfig一套的工具,glib-2.0.pc在libglib2.0-dev里,gtk+-3.0.pc在libgtk-3-dev里面 。
:em11 谢谢咯