[Mono-list] Graph widgets Cairo problem

panoramix aria.francesco at gmail.com
Tue May 11 06:39:06 EDT 2010


The source that I downloaded are of 2008 and the compilation is performed
classical
. / Configure
and then
Make

I do not know Cairo and therefore do not understand why these two lines of
the program refer to two different versions of Cairo

LINE 414 using (cr = Cairo.Context Gdk.CairoHelper.Create (args.Window)) (

LINE 920 Gdk.CairoHelper.SetSourceColor (cr, Style.Base (State));

Can I change the code so that both point to the same version of library?
How?

Excuse the beginner question, but that's what I'm

The library is here :

http://medsphere.org/community/project/medsphere-widgets
http://medsphere.org/community/project/medsphere-widgets 

Thanks for your patience and help


Jonathan Pobst wrote:
> 
> One of your projects/assemblies references the 1.0.5000.0 version of 
> Mono.Cairo, another references the 2.0.0.0 version of Mono.Cairo.
> 
> They need to all reference the same version.
> 
> Jonathan
> 
> 
> On 5/10/2010 4:58 PM, panoramix wrote:
>>
>> Hello.
>>
>> I'm back here again because I have problems with compiling medsphere
>> widgets.
>> This time the problem is linked to Cairo, MAKE says :
>>
>> ./IconLayout.cs(414,25): error CS0029: Cannot implicitly convert type
>> `Cairo.Context' to `Cairo.Context'
>> ./IconLayout.cs(920,41): error CS1502: The best overloaded method match
>> for
>> `Gdk.CairoHelper.SetSourceColor(Cairo.Context, Gdk.Color)' has some
>> invalid
>> arguments
>> /usr/lib/cli/gdk-sharp-2.0/gdk-sharp.dll (Location of the symbol related
>> to
>> previous error)
>> ./IconLayout.cs(920,41): error CS1503: Argument `#1' cannot convert
>> `Cairo.Context' expression to type `Cairo.Context'
>> ./IconLayout.cs(920,41): (equally named types possibly from different
>> assemblies in previous error)
>> /usr/lib/mono/gac/Mono.Cairo/2.0.0.0__0738eb9f132ed756/Mono.Cairo.dll
>> (Location of the symbol related to previous error)
>> /usr/lib/mono/gac/Mono.Cairo/1.0.5000.0__0738eb9f132ed756/Mono.Cairo.dll
>> (Location of the symbol related to previous error)
>> Compilation failed: 3 error(s), 0 warnings
>> make[1]: *** [Medsphere.Widgets.dll] Errore 1
>> make[1]: uscita dalla directory
>> «/home/franaria/.local/share/Trash/files/Medsphere.2.Widgets-0.2.1/src»
>> make: *** [all-recursive] Errore 1
>>
>>
>> Can anyone help me?
>>
>> Thanks to all
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 


-----
http://freeflow.awardspace.com/
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Graph-widgets-tp1502370p2173635.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list