我正在构建一个应用程序从源代码,特别是热情。在构建配置过程中,它会退出,并显示以下错误:
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。但是,构建配置过程仍然失败。
发布于 2020-11-09 12:00:45
弄清楚了:在使用brew时
添加
到~/.bash_profile末尾的export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/Cellar/glib/<VERSION>/lib/pkgconfig。然后运行source ~/.bash_profile
https://stackoverflow.com/questions/64735044
复制相似问题