2015-06-11 20 views
1

嘗試使用最新的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

回答

0

好的,我找到了解決方案。這很簡單。我只是選擇了錯誤版本的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 +。希望這個解釋能幫助別人。

相關問題