[Mono-list] GTK-Sharp: Cannot implicitly convert type `Cairo.Context' to `Cairo.Context'

Alan McGovern alan.mcgovern at gmail.com
Mon Jul 13 15:24:31 EDT 2009


Hey,

/usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
(Location of the symbol related to previous error)
/usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll

You appear to be loading both the 1.0 and 2.0 Mono.Cairo assemblies at the
same time, this shouldn't happen and is what is causing the issues. My guess
is that you have a broken mono install, as I've been happily compiling
monodevelop on a daily basis for the last few months.

What commands/arguments did you use to compile mono, gtk and/or monodevelop.
Where did you get the source to compile whatever it is you're compiling,
what versions of those things are you compiling. Did you follow the
guidelines here on how to install a parallel mono without breaking your
system: http://www.mono-project.com/Parallel_Mono_Environments.

Alan.

On Mon, Jul 13, 2009 at 7:54 PM, cornholio <mail at hofmeister-christian.de>wrote:

>
> hi,
>
> i couldn't compile mono (mono-develop) from svn since last week:
>
> ./DemoColorSelection.cs(45,30): warning CS0612:
> `Gtk.Box.PackStart(Gtk.Widget)' is obsolete
> ./DemoImages.cs(173,42): warning CS0618: `Gtk.Image.FromPixbuf' is
> obsolete:
> `Use the Pixbuf property instead'
> ./DemoPrinting.cs(79,39): error CS0029: Cannot implicitly convert type
> `Cairo.Context' to `Cairo.Context'
> ./DemoPrinting.cs(104,43): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(104,43): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(104,43): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> ./DemoPrinting.cs(111,43): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(111,43): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(111,43): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> ./DemoPrinting.cs(125,51): error CS1502: The best overloaded method match
> for `Pango.CairoHelper.ShowLayout(Cairo.Context, Pango.Layout)' has some
> invalid arguments
> /home/cho/tmp/mono_svn/source/gtk_sharp/pango/pango-sharp.dll (Location of
> the symbol related to previous error)
> ./DemoPrinting.cs(125,51): error CS1503: Argument `#1' cannot convert
> `Cairo.Context' expression to type `Cairo.Context'
> ./DemoPrinting.cs(125,51): (equally named types possibly from different
> assemblies in previous error)
>
> /usr/local/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> /usr/local/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
> (Location of the symbol related to previous error)
> Compilation failed: 7 error(s), 2 warnings
> make[3]: *** [GtkDemo.exe] Error 1
> make[3]: Leaving directory
> `/home/cho/tmp/mono_svn/source/gtk_sharp/sample/GtkDemo'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp/sample'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/cho/tmp/mono_svn/source/gtk_sharp'
> make: *** [all] Error 2
> [FATAL].....: failed to make GTK-Sharp!
>
>
> can you please help me to get mono compiled again?
>
> thx
>
> christian
> --
> View this message in context:
> http://www.nabble.com/GTK-Sharp%3A-Cannot-implicitly-convert-type-%60Cairo.Context%27-to-%60Cairo.Context%27-tp24467303p24467303.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090713/aabc93a9/attachment-0001.html 


More information about the Mono-list mailing list