[Mono-winforms-list] Mono-1.1.4, gdiplus and Cairo on OSX

kangaroo grompf@sublimeintervention.com
Tue, 15 Mar 2005 14:10:19 -0500

On 15-Mar-05, at 1:24 PM, Jens Andersen wrote:

> Hello Win-Formers ;-),
> I'm trying to run a simple WinForms demo (see attachment) on my OSX 
> (10.3.8 with X installed) using Mono 1.1.4*. When starting the program 
> I'm then getting an error telling me that the gdiplus.dll can't be 
> found.


> Then I enable debug (export MONO_LOG_LEVEL=debug) and I can then see 
> that gdiplus.dll can't be loaded (surprise ;-)). Then I try to see if 
> libgdiplus is defined in pkgconfig but typing:
> "pkg-config --libs-only-L libgdiplus" but the command does return some 
> surprising stuff:
> "Package cairo was not found in the pkg-config search path.
> Perhaps you should add the directory containing `cairo.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'cairo', required by 'libgdiplus', not found"


> and correct cairo.pc is not defined in $MONO_HOME/lib/pkgconfig/. 
> Could some of you please tell me what I have to do now to get the 
> Winforms running on my OSX? (And yes I have tried to the the 
> application running using macpack but without and luck)

You have to use macpack; you cannot launch from command line (it also 
sets DYLD_LIBRARY_PATH for you)