【问题标题】:error: gnome.h: No such file or directory错误:gnome.h:没有这样的文件或目录
【发布时间】:2011-02-06 15:27:34
【问题描述】:

我想在 ubuntu 上解决这个“错误:gnome.h:没有这样的文件或目录”。

我收到此错误:

/bin/sh: gnome-config: not found
In file included from TestMDI.cpp:18:
../../../../dist/include/system_wrappers/gnome.h:3:24: error: gnome.h: No such file or directory

来自:http://ubuntuforums.org/showthread.php?t=295105

我试过了: $ sudo apt-get install libgnomeui-dev
阅读包裹清单...完成 构建依赖树
读取状态信息...完成 libgnomeui-dev 已经是最新版本。 0 个已升级,0 个新安装,0 个要移除,21 个未升级。

但这仍然不能解决我的问题。

知道怎么解决吗?

【问题讨论】:

    标签: ubuntu gnome


    【解决方案1】:

    如果该程序适用于 Gnome 1.x,如果不更改代码,您将无法在最近的 Ubuntu 上编译它。

    【讨论】:

    • @michael 这一定是问题所在,因为 gnome-config 在 Gnome 2 中被 pkg-config 取代了。
    猜你喜欢
    • 2021-10-31
    • 1970-01-01
    • 2013-08-08
    • 2013-11-04
    • 2012-02-18
    • 2012-10-21
    • 2011-03-22
    • 2015-12-29
    • 2012-04-28
    相关资源
    最近更新 更多