[MonoDevelop] ./MonoDevelop.Components/GladeWidgetExtract.cs(79, 47): error CS0030: Cannot convert type `Gtk.Widget' to `Gtk.Window'

Michael Hutchinson m.j.hutchinson at gmail.com
Sat May 9 20:42:47 EDT 2009


On Sat, May 9, 2009 at 12:56 PM, spierepf <spierepf at hotmail.com> wrote:
> I am trying to install monodevelop from source on ubuntu 9.04. Yes, I know
> that ubuntu 9.04 has prepackaged binaries, but they aren't supported by
> Canonical, which is code for "If it breaks, you get to keep both pieces". So
> I'm trying to install from source.
>
> At any rate, I've managed to get the following parts of the mono runtime
> compiled and installed:
>
> mono-2.4
> mono-addins-0.3.1
> gtk-sharp-2.8.5
>
> However, when I attempt to compile monodevelop-2.0:
>
> ./MonoDevelop.Components/MenuButton.cs(166,33): warning CS0109: The member
> `MonoDevelop.Components.MenuButton.UseMarkup' does not hide an inherited
> member. The new keyword is not required
> ./MonoDevelop.Components/MenuButton.cs(172,35): warning CS0109: The member
> `MonoDevelop.Components.MenuButton.Markup' does not hide an inherited
> member. The new keyword is not required
> ./MonoDevelop.Components/GladeWidgetExtract.cs(79,47): error CS0030: Cannot
> convert type `Gtk.Widget' to `Gtk.Window'
> Compilation failed: 1 error(s), 2 warnings
> make[3]: *** [../../../build/bin/MonoDevelop.Components.dll] Error 1
> make[3]: Leaving directory
> `/home/peter/src/monodevelop-2.0/src/core/MonoDevelop.Components'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/peter/src/monodevelop-2.0/src/core'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/peter/src/monodevelop-2.0/src'
> make: *** [all-recursive] Error 1
>
> Has anyone else experienced this problem and managed to resolve it?

You're somehow building MonoDevelop with a mixture of two versions of GTK#.

I'm guessing you installed it /usr or /usr/local? Take a look at:

http://mjhutchinson.com/journal/2007/11/08/how_not_break_mono
http://www.mono-project.com/Parallel_Mono_Environments

Note also that you don't need GTK# 2.8.5 as such. In GTK# versions of
the form x.y.z, x.y is the matching minimum GTK+ version, and z in the
GTK# binding revision. Since your distro has GTK+ 2.14, you could use
the latest and greatest GTK#: 2.12.8.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list