无法在OS X上编译GStreamer-Sharp

时间:2015-03-01 22:31:26

标签: c# macos mono gstreamer

我正在尝试在Mac上使用Gst#(这是GStreamer的C#绑定),但是autotools在最后几行中仍然失败:

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安装程序而不是Macports安装了Mono,尽管安装了Macports

2 个答案:

答案 0 :(得分:1)

错误解释清楚:

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

更多信息 here

答案 1 :(得分:1)

您的单声道安装不在$PKG_CONFIG_PATH,这就是为什么pkg-config找不到单声道的.pc文件。

您需要将目录添加到$PKG_CONFIG_PATH环境变量中。该目录应位于/Library/Frameworks/Mono.framework/Versions/VERSIONNUMBER/lib/pkgconfig/