【问题标题】:glibmm-2.4 install not detected on OS X在 OS X 上未检测到 glibmm-2.4 安装
【发布时间】:2020-11-08 05:18:17
【问题描述】:

我正在从源代码构建应用程序,特别是 Ardor。 在构建配置过程中,它退出并出现以下错误:

Checking for 'glibmm-2.4' >= 2.32.0
['/opt/local/bin/pkg-config', 'glibmm-2.4 >= 2.32.0', '--cflags', '--libs', 'glibmm-2.4']
err: Package glibmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glibmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glibmm-2.4' found
Package glibmm-2.4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glibmm-2.4.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glibmm-2.4' found

我使用homebrew 进行包管理,所以我安装了glibmmglib。 但是,构建配置过程仍然失败。

【问题讨论】:

    标签: glib glibmm


    【解决方案1】:

    想通了: 使用时brew

    添加

    export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/glib/<VERSION>/lib/pkgconfig~/.bash_profile 的结尾。 然后运行source ~/.bash_profile

    【讨论】:

    • Ardor 的编译对你有用吗?我遇到了同样的问题,但犹豫是否要这样做,以防我搞砸了别的东西。
    • 我设法将 Ardor 编译成可执行的二进制文件,但它在执行时崩溃了。
    猜你喜欢
    • 2014-03-05
    • 2012-09-06
    • 1970-01-01
    • 2014-12-16
    • 2015-03-28
    • 1970-01-01
    • 2016-03-18
    • 2013-09-13
    • 2013-12-21
    相关资源
    最近更新 更多