OS X 上未检测到 glibmm-2.4 安装
glibmm-2.4 install not detected on OS X
我正在从源代码构建一个应用程序,特别是 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 进行包管理,所以我安装了 glibmm
和 glib
。
但是,构建配置过程仍然失败。
想通了:
使用 brew
时
添加
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/glib/<VERSION>/lib/pkgconfig
至 ~/.bash_profile
结束。
然后运行source ~/.bash_profile
我正在从源代码构建一个应用程序,特别是 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 进行包管理,所以我安装了 glibmm
和 glib
。
但是,构建配置过程仍然失败。
想通了:
使用 brew
添加
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/glib/<VERSION>/lib/pkgconfig
至 ~/.bash_profile
结束。
然后运行source ~/.bash_profile