.NET Programming
--
Questions
--
Followers
Top Experts
How to repair latest broken Monodevelop build on Ubuntu Linux 14.04?
We purged mono-complete & monodevelop and followed the steps in this article: http://gettingsharper.de/2014/10/07/get-and-compile-the-latest-monodevelop-on-ubuntulinux. The makefile make process halts early complaining of "editor/GtkWorkarounds.cs( 73,40): error CS0246: The type or namespace name `Gtk' could not be found.
Here is the C# compiler command line used by the Monodevelop main folder Makefie
Target CoreCompile:
Tool /home/venkat/lib/mono/4.5/ mcs.exe execution started with arguments: /noconfig /codepage:65001 /debug:full /debug+ /optimize- /out:obj/Debug/libstetic.d ll /resource:obj/Debug/Stetic .stetic.gl ade,stetic .glade /resource:obj/Debug/Stetic .wrapper.o bjects.xml ,objects.x ml /resource:obj/Debug/Stetic .wrapper.p ixmaps.acc ellabel.pn g,accellab el.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.act iongroup.p ng,actiong roup.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.add -check-lab el.png,add -check-lab el.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.add -menu.png, add-menu.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.ali gnment.png ,alignment .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.arr ow.png,arr ow.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.box -expand.pn g,box-expa nd.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.box -fill.png, box-fill.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.but ton.png,bu tton.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.cal endar.png, calendar.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.cel l-expand-h .png,cell- expand-h.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.cel l-expand-v .png,cell- expand-v.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.cel l-fill-h.p ng,cell-fi ll-h.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.cel l-fill-v.p ng,cell-fi ll-v.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.che ckbutton.p ng,checkbu tton.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.col orbutton.p ng,colorbu tton.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.col orselectio n.png,colo rselection .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.col orselectio ndialog.pn g,colorsel ectiondial og.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.com bo.png,com bo.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.com boentry.pn g,comboent ry.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.cus tom.png,cu stom.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.dec -border.pn g,dec-bord er.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.dia log.png,di alog.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.dra wingarea.p ng,drawing area.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.ent ry.png,ent ry.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.eve ntbox.png, eventbox.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.exp ander.png, expander.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.fil eselection .png,files election.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.fix ed.png,fix ed.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.fon tbutton.pn g,fontbutt on.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.fon tselection .png,fonts election.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.fon tselection dialog.png ,fontselec tiondialog .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.fra me.png,fra me.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.glo be.png,glo be.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.glo be-not.png ,globe-not .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.han dlebox.png ,handlebox .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hbo x.png,hbox .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hbu ttonbox.pn g,hbuttonb ox.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hpa ned.png,hp aned.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hsc ale.png,hs cale.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hsc rollbar.pn g,hscrollb ar.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.hse parator.pn g,hseparat or.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.ico nview.png, iconview.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.ima ge.png,ima ge.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.inc -border.pn g,inc-bord er.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.lab el.png,lab el.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.men u.png,menu .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.men ubar.png,m enubar.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.mes sagedialog .png,messa gedialog.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.mis sing.png,m issing.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.not ebook.png, notebook.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.opt ionmenu.pn g,optionme nu.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.pro gressbar.p ng,progres sbar.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.rad iobutton.p ng,radiobu tton.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.rem ove-check- label.png, remove-che ck-label.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.rem ove-menu.p ng,remove- menu.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.scr olledwindo w.png,scro lledwindow .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.spi nbutton.pn g,spinbutt on.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.sta tusbar.png ,statusbar .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.tab le.png,tab le.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.tex tview.png, textview.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.tog glebutton. png,toggle button.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.too lbar.png,t oolbar.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.tre eview.png, treeview.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.vbo x.png,vbox .png /resource:obj/Debug/Stetic .wrapper.p ixmaps.vbu ttonbox.pn g,vbuttonb ox.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.vie wport.png, viewport.p ng /resource:obj/Debug/Stetic .wrapper.p ixmaps.vpa ned.png,vp aned.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.vsc ale.png,vs cale.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.vsc rollbar.pn g,vscrollb ar.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.vse parator.pn g,vseparat or.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.wid get.png,wi dget.png /resource:obj/Debug/Stetic .wrapper.p ixmaps.win dow.png,wi ndow.png ClassDescriptor.cs Clipboard.cs CommandDescriptor.cs CustomWidget.cs DND.cs editor/Accelerator.cs editor/ActionGroupEditor.c s editor/ActionItem.cs editor/ActionMenu.cs editor/ActionMenuBar.cs editor/ActionMenuItem.cs editor/ActionToolbar.cs editor/ActionToolItem.cs editor/Boolean.cs editor/CellRendererComboBo x.cs editor/Char.cs editor/Color.cs editor/DateTimeEditor.cs editor/EditIconDialog.cs editor/EditIconFactoryDial og.cs editor/Enumeration.cs editor/Flags.cs editor/FlagsSelectorDialog .cs editor/FloatRange.cs editor/GroupPicker.cs editor/IconList.cs editor/IconSelectorItem.cs editor/IconSelectorMenu.cs editor/IconSelectorMenuIte m.cs editor/Identifier.cs editor/Image.cs editor/ImageFile.cs editor/ImageSelector.cs editor/IntRange.cs editor/NonContainerWarning Dialog.cs editor/OptIntRange.cs editor/ProjectIconList.cs editor/ProjectIconSelector Item.cs editor/ResponseId.cs editor/SelectIconDialog.cs editor/SelectImageDialog.c s editor/StockIconList.cs editor/StockIconSelectorIt em.cs editor/StockItem.cs editor/String.cs editor/StringArray.cs editor/Text.cs editor/TextBox.cs editor/TextEditor.cs editor/TextEditorDialog.cs editor/ThemedIcon.cs editor/ThemedIconList.cs editor/TimeSpanEditor.cs editor/Translatable.cs editor/TreeViewCellContain er.cs editor/WidgetSelector.cs EnumDescriptor.cs ErrorWidget.cs GeneratorContext.cs GladeException.cs GladeUtils.cs IDesignArea.cs IEditableObject.cs ImageInfo.cs IProject.cs IPropertyEditor.cs IRadioGroupManager.cs IResourceProvider.cs ItemDescriptor.cs ItemGroup.cs ItemGroupCollection.cs NoGuiDispatchAttribute.cs ObjectReader.cs ObjectWrapper.cs ObjectWrapperEventHandler. cs ObjectWriter.cs ParamSpec.cs Placeholder.cs ProjectIconFactory.cs PropertyDescriptor.cs PropertyEditorAttribute.cs PropertyEditorCell.cs RadioGroupManager.cs Registry.cs Set.cs SignalDescriptor.cs TranslatableAttribute.cs TypedClassDescriptor.cs TypedPropertyDescriptor.cs TypedSignalDescriptor.cs undo/ActionDiffAdaptor.cs undo/DiffGenerator.cs undo/IDiffAdaptor.cs undo/UndoManager.cs undo/XmlDiffAdaptor.cs WidgetLibrary.cs WidgetUtils.cs wrapper/Action.cs wrapper/ActionGroup.cs wrapper/ActionToolbarWrapp er.cs wrapper/ActionTree.cs wrapper/Bin.cs wrapper/Box.cs wrapper/Button.cs wrapper/ButtonBox.cs wrapper/CheckButton.cs wrapper/ColorButton.cs wrapper/ComboBox.cs wrapper/ComboBoxEntry.cs wrapper/Container.cs wrapper/Custom.cs wrapper/Dialog.cs wrapper/Entry.cs wrapper/Expander.cs wrapper/Fixed.cs wrapper/FontButton.cs wrapper/FontSelectionDialo g.cs wrapper/Frame.cs wrapper/HScale.cs wrapper/HScrollbar.cs wrapper/IconView.cs wrapper/Image.cs wrapper/ImageMenuItem.cs wrapper/Label.cs wrapper/MenuBar.cs wrapper/MenuItem.cs wrapper/MessageDialog.cs wrapper/Misc.cs wrapper/Notebook.cs wrapper/Object.cs wrapper/OptionMenu.cs wrapper/Paned.cs wrapper/RadioActionGroupMa nager.cs wrapper/RadioButton.cs wrapper/RadioMenuItem.cs wrapper/RadioToolButton.cs wrapper/Range.cs wrapper/Scale.cs wrapper/ScrolledWindow.cs wrapper/Signal.cs wrapper/SignalChangedEvent Handler.cs wrapper/SignalCollection.c s wrapper/SignalEventHandler .cs wrapper/SpinButton.cs wrapper/Table.cs wrapper/TextView.cs wrapper/ToggleToolButton.c s wrapper/Toolbar.cs wrapper/ToolButton.cs wrapper/TreeView.cs wrapper/Viewport.cs wrapper/VScale.cs wrapper/VScrollbar.cs wrapper/Widget.cs wrapper/WidgetEventHandler .cs wrapper/WidgetNameChangedH andler.cs wrapper/Window.cs TopLevelDialog.cs TopLevelWindow.cs wrapper/NotifyWorkaround.c s editor/GtkWorkarounds.cs /target:library /define:DEBUG /nowarn:1591;1573 /doc:../../../../build/Add Ins/MonoDe velop.GtkC ore/libste tic.xml /nostdlib /reference:/home/venkat/li b/mono/4.0 /Mono.Posi x.dll /reference:/home/venkat/li b/mono/4.0 /System.dl l /reference:/home/venkat/li b/mono/4.0 /System.Xm l.dll /reference:/home/venkat/li b/mono/4.0 /Mono.Cair o.dll /reference:/home/venkat/li b/mono/4.0 /System.Co re.dll /reference:/home/venkat/li b/mono/4.0 /mscorlib. dll /warn:4
I thiught we were missing an assembly reference" apparently because nuget restore does not fetch the correct GTK and GNOME libraries. Later, A Xamarin expert told me that gtk and gnome libraries are not on nuget So, you have to install them yourself.
Then we installed the gtk and gnome libraries using sudo apt-get install gnome-devel and ran ./configure --profile=stable on monodevelop and generated a Makefile which contains a section called GTK_SHARP_LIBS which references libraries on the desktop. When the Makefile hits the Target CoreCompile section it tries to compile C# source files which use the gtk-sharp assembly. Apparently , In the main Monodevelop makefile, the compilation of C# source files which use the gtk-sharp assembly does not explicitly reference the gtk-sharp assembly. Is there a way to repair that?
Any help is greatly appreciated.
Here is the C# compiler command line used by the Monodevelop main folder Makefie
Target CoreCompile:
Tool /home/venkat/lib/mono/4.5/
I thiught we were missing an assembly reference" apparently because nuget restore does not fetch the correct GTK and GNOME libraries. Later, A Xamarin expert told me that gtk and gnome libraries are not on nuget So, you have to install them yourself.
Then we installed the gtk and gnome libraries using sudo apt-get install gnome-devel and ran ./configure --profile=stable on monodevelop and generated a Makefile which contains a section called GTK_SHARP_LIBS which references libraries on the desktop. When the Makefile hits the Target CoreCompile section it tries to compile C# source files which use the gtk-sharp assembly. Apparently , In the main Monodevelop makefile, the compilation of C# source files which use the gtk-sharp assembly does not explicitly reference the gtk-sharp assembly. Is there a way to repair that?
Any help is greatly appreciated.
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
I am trying it again, shall let you know how it goes.
Hi Frank,
I was able to successfully build mondevelop package from source (using git clone) on ubuntu 15.04 version VM. Here are the steps that I followed.
1. First I installed mono from source using below instructions:
1. a. http://www.mono-project.com/docs/getting-started/install/linux/#usage
2. http://www.mono-project.com/docs/compiling-mono/linux/ ( I used the option build mono from source)
3. Then I started with monodevelop build from source. i used the instructions given in below link:
https://github.com/mono/monodevelop
4. I got few errors while building monodevelop and here is how i resolved the errors.
5. I had to install cmake, lib-ssh2, zlib packages.
6. Also I fulfilled the following dependencies required for monodevelop to be built from source. These dependencies are mentioned in the monodevelop git page (https://github.com/mono/monodevelop#dependencies)
Dependencies
Mono >= 3.0.4
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
cmake (Linux only for git support)
libssh2 (Linux only for git support)
I was able to successfully build mondevelop package from source (using git clone) on ubuntu 15.04 version VM. Here are the steps that I followed.
1. First I installed mono from source using below instructions:
1. a. http://www.mono-project.com/docs/getting-started/install/linux/#usage
2. http://www.mono-project.com/docs/compiling-mono/linux/ ( I used the option build mono from source)
3. Then I started with monodevelop build from source. i used the instructions given in below link:
https://github.com/mono/monodevelop
4. I got few errors while building monodevelop and here is how i resolved the errors.
5. I had to install cmake, lib-ssh2, zlib packages.
6. Also I fulfilled the following dependencies required for monodevelop to be built from source. These dependencies are mentioned in the monodevelop git page (https://github.com/mono/monodevelop#dependencies)
Dependencies
Mono >= 3.0.4
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
cmake (Linux only for git support)
libssh2 (Linux only for git support)
Karrtik Iyer,
Thank you for your solution today. Please tell me the exact steps you used to install the following dependencies:
Mono >= 3.0.4
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
cmake (Linux only for git support)
libssh2 (Linux only for git support)
Also , specifically how did you solve the "editor/GtkWorkarounds.cs( 73,40): error CS0246: The type or namespace name `Gtk' could not be found. where there might be a missing assembly reference to gtk-sharp.dll? Thank you.
Thank you for your solution today. Please tell me the exact steps you used to install the following dependencies:
Mono >= 3.0.4
Gtk# >= 2.12.8
monodoc >= 1.0
mono-addins >= 0.6
cmake (Linux only for git support)
libssh2 (Linux only for git support)
Also , specifically how did you solve the "editor/GtkWorkarounds.cs(






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Karrthik Iyer, This solution was very accurate , complete and helpful to me and others in the same boat.
Thank you.
Frank
Thank you.
Frank
.NET Programming
--
Questions
--
Followers
Top Experts
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.