[Mono-osx] System.Drawing not working on OSX 10.8 (latest Mono)

kjpou kjpou at pt.lu
Mon Mar 4 14:53:17 UTC 2013


Zinali

You need to reference both of the assemblies in your solution -

sysdrawing-coregraphics-Mac and sysdrawing-Mac

It is a little confusing about that but if you open up the solution file 
of the

sysdrawing-coregraphics-master

You will see how the references are made in the Samples.

Again mono does not need to be built because it is not used so not to 
worry about that.  It is only referencing the source files from the mono 
directory and the rest is is built using MonoMac.

I have not tried the Makefile yet so do not know anything about that part.

If that still does not work let me know and I will try to recreate it 
with a fresh repo clone.

Kenneth

On 3/4/13 2:38 AM, Zinali wrote:
> Hello,
>
> Thank you for your quick reply!  Here is what I'm doing and what I'm getting
> in more detail. This is on a Mac OS 10.6.8 system, so I cannot install
> Xamarin to for the iOS references, are those required for a Mac only build?
>
> First my directory setup:
>
> local:mono-git ee$ ls
> maccore				monomac
> mono				sysdrawing-coregraphics-master
>
> I did a make distclean in the mono directory so I imagine no build artifacts
> should be there.
>
> I opened the sysdrawing-coregraphics solution in MonoDevelop (v3.1.1 for
> mono version 3.0.6)
>
> I tried to build the sysdrawing-coregraphics-Mac project and received a
> number of errors suggesting I reference the System.Drawing assembly, I see
> that sysdrawing-coregraphics-Mac references sysdrawing-Mac which seems to
> implement most if not all of what the build is complaining about, so I'm a
> bit confused (build log below).  I also tried simply using the Makefile in
> sysdrawing-coregraphics by typing make monomac but that also failed with
> some different pieces missing.  I'm sure I'm doing something wrong but I
> can't figure out what it is!
>
> Building: sysdrawing-coregraphics-Mac (Debug)
> Performing main compilation...
> /Library/Frameworks/Mono.framework/Versions/3.0.6/bin/mcs /noconfig
> "/r:/Library/Frameworks/Mono.framework/Versions/3.0.6/lib/mono/4.0/mscorlib.dll"
> -nostdlib
> "/out:/Users/ee/mono-git/sysdrawing-coregraphics-master/sysdrawing-coregraphics-Mac/bin/Debug/sysdrawing-coregraphics-Mac.dll"
> "/r:/Library/Frameworks/Mono.framework/Versions/3.0.6/lib/mono/4.0/System.dll"
> "/r:/Library/Frameworks/Mono.framework/Versions/3.0.6/lib/mono/4.0/System.Core.dll"
> "/r:/Library/Frameworks/Mono.framework/Versions/3.0.6/lib/mono/4.0/System.Xml.dll"
> "/r:/Users/ee/mono-git/monomac/src/MonoMac.dll"
> "/r:/Users/ee/mono-git/sysdrawing-coregraphics-master/sysdrawing-Mac/bin/Debug/System.Drawing.dll"
> /nologo /warn:4 /debug:full /optimize- /codepage:utf8 -unsafe
> "/define:DEBUG;MONOMAC;MAISONABE"  /t:library
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Imaging/BitmapData.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/Blend.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/Brushes.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/CharacterRange.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/ColorBlend.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/CombineMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/CompostingMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/CompostingQuality.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/CoordinateSpace.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/DashCap.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/DashStyle.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/FillMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/FlushIntention.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/FontStyle.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/GraphicsUnit.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/ImageConverter.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Imaging/ImageFormat.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/ImageFormatConverter.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Imaging/ImageLockMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/InterpolationMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/LineCap.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/LineJoin.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/MatrixOrder.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathData.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/PathPointType.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/Pens.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Imaging/PixelFormat.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/PixelOffsetMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Printing/PrintPageEventHandler.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/SmoothingMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/StringAligment.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/StringFormatFlags.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/SystemColors.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Text/TextRenderingHint.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/ToolboxBitmapAttribute.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/WarpMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/WrapMode.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/PointConverter.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/SizeConverter.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/RectangleConverter.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/SizeFConverter.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/GraphicsContainer.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/GraphicsPath.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/GraphicsState.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/Matrix.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Imaging/ImageAttributes.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Printing/PageSettings.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Printing/PrintDocument.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Printing/PrintPageEventArgs.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Printing/PrinterSettings.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/Utilities/Locale.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Bitmap.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Brush.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Color.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Font.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/FontFamily.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics-DrawImage.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Image.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/KnownColor.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/KnownColors.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Pen.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Region.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/SolidBrush.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/StringFormat.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics-DrawEllipticalArc.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/sysdrawing-coregraphics-Mac/System.Drawing/Icon.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing/IconConverter.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/Utilities/ConversionHelpers.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/HatchStyle.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs"
> "/Users/ee/mono-git/sysdrawing-coregraphics-master/Utilities/GeomUtilities.cs"
> "/Users/ee/mono-git/mono/mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientMode.cs"
> Compilation failed: 39 error(s), 14 warnings
>
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Bitmap.cs(451,15):
> warning CS0108: `System.Drawing.Bitmap.Save(string)' hides inherited member
> `System.Drawing.Image.Save(string)'. Use the new keyword if hiding was
> intended
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Image.cs(168,15):
> (Location of the symbol related to previous warning)
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(169,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchHorizontal(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(191,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchVertical(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(215,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchGrid(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(257,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchPercentage(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(369,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchUpwardDiagonal(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(454,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.HatchSphere(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(1186,18):
> warning CS0628:
> `System.Drawing.Drawing2D.HatchBrush.DrawPolkaDotPattern(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(187,18):
> warning CS0628:
> `System.Drawing.TextureBrush.DrawTexture(MonoMac.CoreGraphics.CGContext)':
> new protected member declared in sealed class
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/Matrix.cs(317,25):
> error CS0012: The type `System.Drawing.PointF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/Matrix.cs(326,25):
> error CS0012: The type `System.Drawing.PointF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Bitmap.cs(151,11):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Bitmap.cs(239,11):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Bitmap.cs(245,11):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics-DrawImage.cs(29,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(100,26):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(112,32):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(393,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(486,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(517,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(992,20):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(995,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(1252,26):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(1292,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(1740,13):
> error CS0012: The type `System.Drawing.PointF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics.cs(1740,28):
> error CS0029: Cannot implicitly convert type `System.Drawing.PointF
> [System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]' to
> `System.Drawing.PointF [System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a]'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Graphics-DrawEllipticalArc.cs(614,14):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Image.cs(93,5):
> warning CS0162: Unreachable code detected
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Image.cs(120,5):
> warning CS0162: Unreachable code detected
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/Image.cs(155,4):
> warning CS0162: Unreachable code detected
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(150,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(482,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(490,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(498,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(506,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(799,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(1181,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(1189,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/HatchBrush.cs(1347,18):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(190,12):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(195,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(204,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(214,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(223,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(233,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(240,13):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing/TextureBrush.cs(305,18):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(310,31):
> warning CS0472: The result of comparing value type `System.Drawing.Color'
> with null is always `false'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(310,51):
> warning CS0472: The result of comparing value type `System.Drawing.Color'
> with null is always `false'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(590,35):
> error CS0012: The type `System.Drawing.RectangleF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(606,28):
> error CS0012: The type `System.Drawing.PointF' is defined in an assembly
> that is not referenced. Consider adding a reference to assembly
> `System.Drawing, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(623,24):
> error CS0165: Use of unassigned local variable `shading'
> /Users/ee/mono-git/sysdrawing-coregraphics-master/System.Drawing.Drawing2D/LinearGradientBrush.cs(633,14):
> error CS0029: Cannot implicitly convert type `null' to `<error>'
>
>
> Build complete -- 39 errors, 14 warnings
>
> Many thanks!
>
> erik
>
> kjpou1 wrote
>> Hello Zinali
>>
>> Could you confirm the build error for me.  It should be in the iOS build
>> with CoreGraphics DrawShading not existing.  I am still waiting on when
>> this will be added to MonoTouch.
>>
>> If that is the only error then you should be able to just right click
>> the Mac version of the System.Drawing project and build only that one.
>>   From there just follow what is done in the Mac Samples.
>>
>> You should also not have to build mono to get this to work as the
>> SystemDrawing is only using the sources from mono to build from. This
>> should all be moved to the MonoMac build in the future without the
>> reliance on mono but we have not had a chance to do that yet.
>>
>> Any other problems please report it and we will try to get you a fix.
>>
>> On 3/2/13 7:31 PM, Zinali wrote:
>>> Hello,
>>>
>>> I'm wondering what is the status of this implementation. I tried building
>>> against a git checkout of mono and am getting errors regarding LineCap
>>> missing.  I'm a complete newbie at building mono so I well could have
>>> done
>>> something wrong.  Essentially, I fetched mono from git built that, then
>>> fetched monomac, maccore, and sysdrawing-coregraphics all next to the
>>> mono
>>> directory and tried to build.
>>>
>>> Many thanks,
>>>
>>> erik
>>>
>>>
>>> Miguel de Icaza-6 wrote
>>>> Hey guys,
>>>>
>>>>       A few months ago, I started an implementation of System.Drawing on
>>>> top
>>>> of CoreGraphics, ideally this would preserve the API, but use the system
>>>> libraries instead of depending on Cairo/Pixman:
>>>>
>>>> https://github.com/mono/sysdrawing-coregraphics
>>>>
>>>> Miguel
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://mono.1490590.n4.nabble.com/System-Drawing-not-working-on-OSX-10-8-latest-Mono-tp4656801p4658798.html
>>> Sent from the Mono - OSX mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Mono-osx mailing list
>>>
>> Mono-osx at .ximian
>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>>
>> _______________________________________________
>> Mono-osx mailing list
>> Mono-osx at .ximian
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-not-working-on-OSX-10-8-latest-Mono-tp4656801p4658807.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>



More information about the Mono-osx mailing list