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

Alex Soto dxdream at gmail.com
Mon Oct 1 18:49:49 UTC 2012


mmm this is not happening here, but I got monomac.dll compiled from source, not the one that comes with MonoDevelop

Download this 2 projects

https://github.com/mono/maccore     <- or you can directly download zip file by clicking here

https://github.com/mono/monomac   <- or you can directly download zip file by clicking here

Place maccore and monomac folders together  somewhere  ie: Desktop, see below

       /Users/yourusenamer/Desktop/maccore
       /Users/yourusenamer/Desktop/monomac

then open terminal

and go to monomac src folder, type this in terminal, don forget to replace your user name

           cd /Users/yourusenamer/Desktop/monomac/src

Once you are inside src folder just type

           make

hit enter key, and it will compile monomac.dll for you


In your monodevelop project remove the reference to monomac in your project references

then right clic on references folder > edit references and browse to  

         /Users/yourusenamer/Desktop/monomac/src

and you will find your freshly baked monomac.dll double clic on it and it should get added to your project references

Hope you can get over my instructions if not just reply :P

Alex

El 01/10/2012, a las 13:06, aresm <mono at reikan.co.uk> escribió:

> Hi
> 
> I'm hoping someone might have a simple pointer for me here.
> 
> As soon as I construct a Bitmap (System.Drawing.Bitmap) in my Mono,
> everything just hangs.  I noticed this in a complex application, and tried
> it in a very simple MonoMac demo app (one window, no code other than the
> MonoMac new project code except to create an instance of a Bitmap).
> 
> My understanding from reading other information about this is that on the
> first use of Bitmap, a call to the global GdiPlus Initialisation code is
> called and it's this that causes a problem.
> 
> I'm succesfully using the same version of the Mono framework (2.10.9) on OSX
> 10.7.4 (Lion) without any issue, and I believe it's also worked on at least
> one 10.8 machine also.
> 
> Note that my 10.8 machine is a new (2 days old) Mac Mini with a fresh 10.8
> install and very few applications installed (just Xcode, MonoDevelop, Mono
> framework and a few other bits and pieces).
> 
> I wonder if this is an issue with the bindings to Cecil built into GdiPlus
> in Mono?
> 
> Incidentally, I realise that System.Drawing is not the native graphics
> interface for OSX, but the software I'm writing was originally written for
> the PC and ported to Mac.  Eventually the System.Drawing code will be
> replaced with CoreGraphics based code but that's a BIG task right now!
> 
> Does anyone have any ideas about this problem and how I might be able to fix
> it?
> 
> Thanks for any input.
> 
> Rich
> 
> 
> 
> --
> View this message in context: http://mono.1490590.n4.nabble.com/System-Drawing-not-working-on-OSX-10-8-latest-Mono-tp4656801.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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20121001/a53eba27/attachment.html>


More information about the Mono-osx mailing list