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

Brian O'Neill brian at freshideas.ie
Mon Feb 28 10:03:13 EST 2011


Thanks Michael, I appreciate you taking the time to reply.

I have created a script just to run our mono test exe on Mac to see if
adding DYLD_FALLBACK_LIBRARY_PATH will solve our issue.
It did not solve our problem, we get exception about the libfreetype
version. I did not yet create the app bundle (plist etc), it's just a sh
script to run our app in project bin/debug folder.
Here is script code to run our app:
-----------
#!/bin/sh

DIR=$(cd "$(dirname "$0")"; pwd)
MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
export
DYLD_FALLBACK_LIBRARY_PATH="$DIR:$MONO_FRAMEWORK_PATH/lib:/lib:/usr/lib"
export PATH="$MONO_FRAMEWORK_PATH/bin:$PATH"
exec mono "$DIR/test.exe"
------------------

Now I wanted to see the mono debug info but for some reason I'm not able to
see/get any debug info.
If I manually run a command in Terminal: 'MONO_LOG_LEVEL=debug test.exe' I
will see lots of debug info which is useful to debug problems.

I wanted to get the same debug info when running script but I can't get
anything. Was trying several options with MONO_LOG_LEVEL=debug and without
it. With --debug etc.
When running script below debuglog.txt file is created but there no debug
info, file is empty. When running this script I only see new Terminal window
and then our test app will start. There is no debug info anywhere.
Debug script version:
------------
#!/bin/sh

DIR=$(cd "$(dirname "$0")"; pwd)
MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
export
DYLD_FALLBACK_LIBRARY_PATH="$DIR:$MONO_FRAMEWORK_PATH/lib:/lib:/usr/lib"
export PATH="$MONO_FRAMEWORK_PATH/bin:$PATH"
MONO_LOG_LEVEL=debug
exec mono --debug "$DIR/test.exe" $* 2>&1 1> "$DIR/debuglog.txt"
------------

Will Terminal window be displayed when running this sh script via Mac .app
bundle ?

Any help is appreciated.

Brian O'Neill
FreshIdeas: Website Development,
Internet Strategy & Online Marketing
Email: brian at freshideas.ie
Website: http://www.freshideas.ie



On 25 February 2011 11:54, 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?
>
> 2) after manual update to libfreetype.dylib version 13.0 we get another
> error that /usr/share/fonts/ttf are missing, but there is no such folder in
> default X11 install, again we did a manual copy of fonts folder from xquartz
> 2.6.0 install, after that our application was working fine.
> Question is can we bundle fonts folder in the package installer and install
> it on mac without any issues?
>
> Any help or clues would be very helpful.
>
> Thanks
>
> Brian O'Neill
> FreshIdeas: Website Development,
> Internet Strategy & Online Marketing
> Email: brian at freshideas.ie
> Website: http://www.freshideas.ie
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110228/ad548429/attachment.html 


More information about the Mono-osx mailing list