[Mono-list] Mono-list Digest, Vol 91, Issue 29

jeff clausius jeffc at sourcegear.com
Thu Nov 29 16:59:38 UTC 2012


Thanks for the suggestion.  Do you have any Mac users doing this?

I installed XCode (to get the Mac native X11 on Lion [10.7.5]),
installed XQuarz, as well as the latest Macports to get/install GTK.

Running the app w/ this env. var now yields the following error:

Could not set X locale modifiers
Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using
built-in colorscheme

Unhandled Exception: System.EntryPointNotFoundException:
GdipCreateFromXDrawable_linux
  at (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipCreateFromXDrawable_linux (intptr,intptr,intptr&)
  at System.Drawing.Graphics.FromXDrawable (IntPtr drawable, IntPtr
display) [0x00000] in <filename unknown>:0


The error message "Gtk not found" combined with the
EntryPointNotFoundException in GdipCreateFromXDrawable_linux() leads me
to believe that flag either causes Mono to not look at the correct
LD_LIBRARY_PATH or the right filename (as macports uses
libgtk-x11-2.0.dylib).

Any suggestions on overcoming this issue?

TIA
Jeff

On 11/28/2012 6:00 AM, mono-list-request at lists.ximian.com wrote:
> WinForms works the worst on Mac. Although I don't have a Mac, I recommend the
> users of my WinForms app to run their app this way, and it seems to work
> fine for them: "MONO_MWF_MAC_FORCE_X11=1 mono yourapp.exe"
> That makes it so it runs the app using the X11 driver rather than the Mac
> (Carbon) one, which means the app should work as well as on Linux. The only
> problem is that it requires an X11 server to be installed on the Mac.


More information about the Mono-list mailing list