我正试图在Mac上使用Gst#(这是GStreamer的C#绑定),但自动工具在最后几行一直失败:
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... /opt/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
Referenced from: /opt/local/bin/pkg-config
Reason: Incompatible library version: pkg-config requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
./configure: line 11558: 15968 Trace/BPT trap: 5 $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version
no
checking for MONO_DEPENDENCY... no
checking for csc.exe... no
configure: error: You need to install either mono or .Net
说Mono没有安装是无稽之谈;我怎样才能解决这个问题并取得成功?如果有帮助的话,我通过Mac安装程序安装了Mono,而不是Macports,尽管Macports是安装的。
您的mono安装不在$PKG_CONFIG_PATH
中,这就是为什么pkg config找不到mono的.pc文件。
您需要将目录添加到$PKG_CONFIG_PATH
环境变量中。目录应位于/Library/Frameworks/Mono.framework/Versions/VERSIONNUMBER/lib/pkgconfig/
错误解释得很清楚:
Reason: Incompatible library version: pkg-config requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
为了更新到新版本,我建议在Terminal
:中尝试
sudo port -n upgrade --force libiconv
更多信息请点击此处。