在OS X上未检测到glibmm-2.4安装

问题描述

我正在从源代码(特别是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。 但是,构建配置过程仍然失败。

解决方法

弄清楚了: 使用brew

添加

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