编译emacs24 with gtk3 错误

Vim、Emacs配置和使用
回复
afox800
帖子: 200
注册时间: 2009-08-02 7:44
来自: 圣彼得堡

编译emacs24 with gtk3 错误

#1

帖子 afox800 » 2013-01-18 13:26

系统 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
头像
zlbruce
帖子: 33
注册时间: 2009-11-10 13:39
系统: gentoo
来自: 四川-武汉-深圳
联系:

Re: 编译emacs24 with gtk3 错误

#2

帖子 zlbruce » 2013-01-18 13:56

你需要装上 gtk3.0 的开发包。
也许叫这个名字 libgtk3.0-dev
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: 编译emacs24 with gtk3 错误

#3

帖子 YeLee » 2013-01-18 14:07

都是pkgconfig一套的工具,glib-2.0.pc在libglib2.0-dev里,gtk+-3.0.pc在libgtk-3-dev里面 。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
afox800
帖子: 200
注册时间: 2009-08-02 7:44
来自: 圣彼得堡

Re: 编译emacs24 with gtk3 错误

#4

帖子 afox800 » 2013-01-18 19:27

YeLee 写了:都是pkgconfig一套的工具,glib-2.0.pc在libglib2.0-dev里,gtk+-3.0.pc在libgtk-3-dev里面 。
:em11 谢谢咯
回复