无法在Ubuntu上使用最新的Mono 4.3.0和GTK#构建Mono.Addins 14.04
尝试使用最新的Mono构建最新的Monodevelop。我已经成功安装了Mono 4.3.0和GTK#。正如我所看到的,MonoDevelop的需要安装Mono.Addins,但是当我试图安装最新的Mono.Addins时,出现下一个错误:无法在Ubuntu上使用最新的Mono 4.3.0和GTK#构建Mono.Addins 14.04
Mono.Addins.Gui/AddinManagerDialog.cs(189,24): error CS0506: `Mono.Addins.Gui.AddinManagerDialog.Dispose()': cannot override inherited member `GLib.Object.Dispose()' because it is not marked virtual, abstract or override Mono.Addins.Gui/AddinTreeWidget.cs(52,25): error CS0012: The type `GLib.IIcon' is defined in an assembly that is not referenced. Consider adding a reference to assembly `gio-sharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'
Mono.Addins.Gui/ManageSitesDialog.cs(67,24): error CS0506: `Mono.Addins.Gui.ManageSitesDialog.Dispose()': cannot override inherited member `GLib.Object.Dispose()' because it is not marked virtual, abstract or override
Mono.Addins.Gui/NewSiteDialog.cs(46,24): error CS0506: `Mono.Addins.Gui.NewSiteDialog.Dispose()': cannot override inherited member `GLib.Object.Dispose()' because it is not marked virtual, abstract or override
gtk-gui/generated.cs(65,52): error CS0234: The type or namespace name `SizeRequestedArgs' does not exist in the namespace `Gtk'. Are you missing an assembly reference?
Mono.Addins.Gui/HeaderBox.cs(98,27): error CS0115: `Mono.Addins.Gui.HeaderBox.OnSizeRequested(ref Gtk.Requisition)' is marked as an override but no suitable method found to override
Mono.Addins.Gui/HeaderBox.cs(125,27): error CS0115: `Mono.Addins.Gui.HeaderBox.OnExposeEvent(Gdk.EventExpose)' is marked as an override but no suitable method found to override
Mono.Addins.Gui/HoverImageButton.cs(83,44): warning CS0618: `Gtk.Style' is obsolete: `Replaced by StyleContext'
Mono.Addins.Gui/HoverImageButton.cs(150,33): error CS0115: `Mono.Addins.Gui.HoverImageButton.OnExposeEvent(Gdk.EventExpose)' is marked as an override but no suitable method found to override
怎样才可以解决?
Ubuntu版本 - 14.04
回答:
好的,我找到了解决方案。这很简单。我只是选择了错误版本的GTK#库。它应该是一个2.12.*
版本,但在GTK#master上它是2.99.*
。当我更改版本(git checkout
)时,所有内容都按照原样编译。
只有设置了标志--disable-gui
和--enable-gui-gtk3
,Mono.Addins才会与GTK#的2.99.*
一起编译。换句话说,GTK#2.99.*
只能用于GTK + 3.0,所以Mono.Addins应该被配置为使用这个版本的GTK +。希望这个解释能帮助别人。
以上是 无法在Ubuntu上使用最新的Mono 4.3.0和GTK#构建Mono.Addins 14.04 的全部内容, 来源链接: utcz.com/qa/266318.html