【求助】 glade/glade.h: 没有那个文件或目录
Tofloor
poster avatar
司南
deepin
2016-11-23 18:49
Author
安装好了深度商店里面的glade以后,在编译代码时出现:glade/glade.h: 没有那个文件或目录
gtk/gtk.h: 没有那个文件或目录

PATH变量里面有:
/usr/local/bin
/usr/bin
/bin
/usr/local/games
/usr/games
不知道是不是环境变量的原因,求大佬帮忙解惑。
Reply Favorite View the author
All Replies
avatar
leaeasy
deepin
2016-11-24 18:15
#1
apt-get install libgladeui-dev
Reply View the author
avatar
司南
deepin
2016-11-24 23:45
#2
https://bbs.deepin.org/post/132359
apt-get install libgladeui-dev

仍然出错,
Package libglade-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade-2.0.pc'
to the PKG_CONFIG_PATH environment variable
环境变量 PKG_CONFIG_PATH 要加什么?
Reply View the author
avatar
leaeasy
deepin
2016-11-25 00:16
#3
那就需要安装libglade2-dev软件包
apt-get install libglade2-dev
Reply View the author
avatar
leaeasy
deepin
2016-11-25 00:19
#4
关于pkg-config,可以看
http://www.cppblog.com/colorful/archive/2012/05/05/173750.html
https://people.freedesktop.org/~dbn/pkg-config-guide.html
Reply View the author
avatar
moli3
deepin
2016-11-25 01:36
#5


deepin 默认的PKG_CONFIG_PATH有些问题。你需要在.bashrc里面加入我相同的话。引入几个常用的pkg-config路径。
Reply View the author
Comments
sinan
2016-11-26 00:46
直接加入在这个环境变量里吗?
avatar
司南
deepin
2016-11-26 00:54
#6
https://bbs.deepin.org/post/132359
关于pkg-config,可以看
http://www.cppblog.com/colorful/archive/2012/05/05/173750.html
https://peopl ...

貌似是因为下载的Glade没有.pc文件所以找不到
Reply View the author
avatar
司南
deepin
2016-11-26 00:54
#7
https://bbs.deepin.org/post/132359
关于pkg-config,可以看
http://www.cppblog.com/colorful/archive/2012/05/05/173750.html
https://peopl ...

谢谢提供网页
Reply View the author
avatar
moli3
deepin
2016-11-26 01:18
#8
https://bbs.deepin.org/post/132359
deepin 默认的PKG_CONFIG_PATH有些问题。你需要在.bashrc里面加入我相同的话。引入几个常用的pkg-config ...

是的,加到有环境变量的位置
Reply View the author
avatar
司南
deepin
2016-11-26 04:38
#9
https://bbs.deepin.org/post/132359
是的,加到有环境变量的位置

谢谢,可以用了
Reply View the author
avatar
司南
deepin
2016-11-26 04:39
#10
https://bbs.deepin.org/post/132359
那就需要安装libglade2-dev软件包
apt-get install libglade2-dev

可以用了,谢谢
Reply View the author