[Mono-osx] newbie mono developer needs advice on app

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Feb 25 20:28:32 EST 2011


On Fri, Feb 25, 2011 at 6:54 AM, Brian O'Neill <brian at freshideas.ie> wrote:
> Hi I am new to mono development and was hoping to get some advice.
> We are trying to develop GTK# 2.0 application with mono 2.10 working on Mac
> Snow Leoplard 10.6+. We are using a 3rd party .NET dll in our mono project
> on Mac. This 3rd party dll is referencing libgdiplus library which is later
> referencing libfreetype.dylib library located at
> /usr/X11/lib/libfreetype.dylib (at least this location is shown in mono
> debug mode when running our app).
> Currently we face 2 issues:
> 1) we get an error that libfreetype.dylib version is old, mono debug says
> there is 10.0 but it should be 13.0
> Question is can we just overwrite that lib with new one in package installer
> on mac? We have copied libfreetype.dylib from X11 xquartz 2.6.0 and that
> solved this issue (just to clear things out installing xquartz 2.6.0 does
> not solve out issue, we still get that error).
> Can we somehow add a reference to new libfreetype.dylib from mono project?

I would guess your app should be using
/Library/Frameworks/Mono.framework/Versions/Current/lib/libfreetype

Try setting DYLD_FALLBACK_LIBRARY_PATH in you app's launch script, as
described here:
http://mjhutchinson.com/journal/2010/01/24/creating_mac_app_bundle_for_gtk_app

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Mono-osx mailing list