无法编译Mono.Addins

无法编译Mono.Addins,mono,compiler-errors,Mono,Compiler Errors,我已尝试编译Mono.Addins的当前版本,但失败并显示以下错误消息: Building Mono.Addins.Gui.csproj /usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved /usr/lib/mono/4.0/Micro

我已尝试编译Mono.Addins的当前版本,但失败并显示以下错误消息:

Building Mono.Addins.Gui.csproj
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
Mono.Addins.Gui/AddinManagerDialog.cs(30,7): error CS0246: The type or namespace name Gtk' could not be found. Are you missing an assembly reference?
Mono.Addins.Gui/AddinTreeWidget.cs(32,7): error CS0246: The type or namespace nameGtk' could not be found. Are you missing an assembly reference?
Mono.Addins.Gui/AddinTreeWidget.cs(33,7): error CS0246: The type or namespace name Gdk' could not be found. Are you missing an assembly reference?
Mono.Addins.Gui/ManageSitesDialog.cs(31,7): error CS0246: The type or namespace nameGtk' could not be found. Are you missing an assembly reference?

我已经从源代码处安装了当前版本的Mono和Gtk。你知道出了什么问题吗?

显然你把mono安装到了
/usr
,但也许你把其余的都放进了
/usr/local
,所以编译器找不到它们?
gacutil-l
列出了提到的程序集吗?看来你是对的。Mono安装在
/usr
中,gtk安装在
/usr/local
中。gacutil没有提到任何关于gtk sharp的事情。但在gtk sharp中运行
make install
时,我发现一些调用,如
/usr/bin/gacutil/I gdk-sharp.dll/f/package gtk-sharp-2.0/gacdir/usr/local/lib
。这不应该安装库以便编译器可以找到它吗?如果mono的GAC没有看到这些库,请尝试