【问题标题】:Yocto configure: error: Package requirements (gtk+-3.0 >= 3.14.0) were not metYocto 配置:错误:未满足软件包要求(gtk+-3.0 >= 3.14.0)
【发布时间】:2018-05-23 05:17:11
【问题描述】:

我正在尝试在 Yocto 中构建一个应用程序,它抱怨找不到一个包,实际上它就在那里。 GTK+3 安装在我的 yocto 版本上。然而 packageconfig 抱怨 GTK+3。我该怎么办?

Yocto 配置:错误:未满足软件包要求 (gtk+-3.0 >= 3.14.0)。完整错误如下:

| checking for gtk+-3.0 >= 3.14.0... no
| configure: error: Package requirements (gtk+-3.0 >= 3.14.0) were not met:
| 
| No package 'gtk+-3.0' found
| 
| Consider adjusting the PKG_CONFIG_PATH environment variable if you
| installed software in a non-standard prefix.
| 
| Alternatively, you may set the environment variables GTK_CFLAGS
| and GTK_LIBS to avoid the need to call pkg-config.
| See the pkg-config man page for more details.
| NOTE: The following config.log files may provide further information.

【问题讨论】:

    标签: gtk3 autotools yocto


    【解决方案1】:

    这个问题已针对各种 Linux 发行版多次回答。但是,我找不到任何关于基于 Yocto 的 Linux 构建的贡献。我决定做问答式。

    我在使用PACKAGECONFIG_append = "gtk" 安装plymouth 软件包时发生了这个问题。但我认为该解决方案会对许多其他软件包有所帮助。

    问题是由于没有提供依赖包信息。您应该在包中创建一个 .bbappend 并添加(在我的情况下):

    DEPENDS_append = " gtk+3"
    

    这个解决方案非常适合我。

    【讨论】:

    • 请修复普利茅斯食谱,而不是编写 bbappend。
    猜你喜欢
    • 1970-01-01
    • 2020-04-02
    • 2020-09-21
    • 2019-09-15
    • 2022-07-21
    • 1970-01-01
    • 2022-07-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多