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

我使用自制软件进行包管理,所以我安装glibmmglib. 但是,构建配置过程仍然失败。

4

1 回答 1

3

想通了:使用时brew

添加

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

于 2020-11-09T04:00:44.503 回答