微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Mono / Ubuntu – 冲突的定义

我试图在Ubuntu上构build一个库(Medsphere.Widgets),并且给我一个错误我有一个很好的search,但没有人似乎有一个答案。 configuration脚本工作正常,并完成没有警告或错误。 当我去运行make时,它是这样做的:

polynomial@ubuntu:~/Projects/Medsphere/$ make Making all 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' to `Cairo.Context' ./IconLayout.cs(414,25): The type `Cairo.Context' has two conflicting deFinitions,one comes from `Mono.Cairo,Version=1.0.5000.0,Culture=neutral,PublicKeyToken=0738eb9f132ed756' and the other from `Mono.Cairo,Version=2.0.0.0,PublicKeyToken=0738eb9f132ed756' (in the prevIoUs error) Internal(1,1): The type `Cairo.Context' has two conflicting deFinitions,PublicKeyToken=0738eb9f132ed756' (in the prevIoUs error) ./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

我只能想象开罗的两个版本是冲突的,但我无法弄清楚如何解决这个问题。 有任何想法吗?

.NET窗口捕获

用户凭据保存在Windows应用程序中

NamedpipeClientStream无法连接,保持超时

记事本字符解码

为什么Console.Readline没有按预期执行

只是为了清除这个:

修改了config.status来使用gmcs而不仅仅是mcs并修补了所有的Mono.Cairo引用,以便它们指向版本特定的DLL,而不是GAC中的通用。 在lib中修改了几个bug之后,它工作的很好!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐