Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Can';在OS X上编译GStreamer Sharp_C#_Macos_Mono_Gstreamer - Fatal编程技术网

C# Can';在OS X上编译GStreamer Sharp

C# Can';在OS X上编译GStreamer Sharp,c#,macos,mono,gstreamer,C#,Macos,Mono,Gstreamer,我试图在Mac上使用(这是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.

我试图在Mac上使用(这是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安装程序安装了Mono,而不是Macports,尽管Macports已经安装。

错误解释得非常清楚:

Reason: Incompatible library version: pkg-config requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
为了更新到新版本,我建议在
终端中尝试此操作:

sudo port -n upgrade --force libiconv

更多信息

您的mono安装不在
$PKG\u CONFIG\u路径中,因此PKG CONFIG无法找到mono的.pc文件


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

好的,通过取消设置$DYLD\u Library\u路径修复了libiconv错误,但它仍然认为没有安装Mono。谢谢你的链接;再近一步!好吧,这是问题的另一半。我希望我能接受这两个:P