c# - Mono / Ubuntu - Conflicting definitions -
i'm attempting build library (medsphere.widgets) on ubuntu, , it's throwing me error. i've had search around, nobody seems have answer it. configure script works fine, , completes no warnings or errors. when go run make, this:
polynomial@ubuntu:~/projects/medsphere/$ make making in src make[1]: entering directory `/home/polynomial/projects/medsphere/src' /usr/bin/mcs /target:library /out:medsphere.widgets.dll -r:/usr/lib/pkgconfig/../../lib/cli/pango-sharp-2.0/pango-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/atk-sharp-2.0/atk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/gdk-sharp-2.0/gdk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib/pkgconfig/../../lib/cli/glib-sharp-2.0/glib-sharp.dll -r:/usr/lib/mono/2.0/mono.cairo.dll ./cpaned.cs ./fbox.cs ./gridview.cs ./cairohelper.cs ./iconlayout.cs ./icairocellrenderer.cs ./boxcellrenderer.cs ./pixbufcellrenderer.cs ./textcellrenderer.cs ./graph/axislocation.cs ./graph/axissizegroup.cs ./graph/basetreemodelplot.cs ./graph/datetimeaxis.cs ./graph/eventplot.cs ./graph/graph2d.cs ./graph/graph.cs ./graph/gtkstyleprovider.cs ./graph/histogramplot.cs ./graph/iaxis.cs ./graph/iplot.cs ./graph/istyleprovider.cs ./graph/itreemodelplot.cs ./graph/labelaxis.cs ./graph/legend.cs ./graph/linearaxis.cs ./graph/lineplot.cs ./graph/linkedlineplot.cs ./graph/plotcolor.cs ./graph/pointshape.cs ./graph/referencerangeplot.cs ./iconlayout.cs(414,25): error cs0029: cannot implicitly convert type `cairo.context' `cairo.context' ./iconlayout.cs(414,25): type `cairo.context' has 2 conflicting definitions, 1 comes `mono.cairo, version=1.0.5000.0, culture=neutral, publickeytoken=0738eb9f132ed756' , other `mono.cairo, version=2.0.0.0, culture=neutral, publickeytoken=0738eb9f132ed756' (in previous error) internal(1,1): type `cairo.context' has 2 conflicting definitions, 1 comes `mono.cairo, version=1.0.5000.0, culture=neutral, publickeytoken=0738eb9f132ed756' , other `mono.cairo, version=2.0.0.0, culture=neutral, publickeytoken=0738eb9f132ed756' (in previous error) ./iconlayout.cs(920,41): error cs1502: best overloaded method match `gdk.cairohelper.setsourcecolor(cairo.context, gdk.color)' has invalid arguments /usr/lib/cli/gdk-sharp-2.0/gdk-sharp.dll (location of symbol related previous error) ./iconlayout.cs(920,41): error cs1503: argument `#1' cannot convert `cairo.context' expression type `cairo.context' ./iconlayout.cs(920,41): (equally named types possibly different assemblies in previous error) /usr/lib/mono/gac/mono.cairo/2.0.0.0__0738eb9f132ed756/mono.cairo.dll (location of symbol related previous error) /usr/lib/mono/gac/mono.cairo/1.0.5000.0__0738eb9f132ed756/mono.cairo.dll (location of symbol related previous error) compilation failed: 3 error(s), 0 warnings
i can imagine 2 versions of cairo conflicting, can't figure out how fix it. ideas?
just clear 1 up:
i modified config.status use gmcs
rather mcs
, patched mono.cairo
references point @ version-specific dll, rather generic 1 in gac. after patching couple of cast bugs in lib, works great!
Comments
Post a Comment