[Mono-list] Nant / Osx

Mike Cleaver mike at moga.to
Mon Mar 10 21:29:44 EDT 2008

Hi all,

I've been having some troubles building my project under osx 10.5.2.   
Our project is normally compiled via a Monodevelop solution which has  
always worked fine - I'm just trying to get it to compile on my laptop.

I've written NANT scripts to build all of the different projects but  
have had trouble with:
1) Gdk - I use it for image resizing.  I have to have a reference  
directly to the gdk-sharp-2.0 alias -

				<include name="/Library/Frameworks/Mono.framework/Libraries/mono/ 
				<include name="/Library/Frameworks/Mono.framework/Libraries/mono/ 

Now I vaguely remember seeing a tutorial about using pkg-config to  
create a link to the dlls so that they can be easily referenced but  
couldnt find it when i looked today? Is there some way to get the NANT  
script to add mono package references instead?

2) When I actually run the app, it bombs out saying that it cant find  
the dll -

@@@ Failed to startup GDK - System.DllNotFoundException:  
   at (wrapper managed-to-native) GLib.Marshaller:g_malloc (uintptr)
   at GLib.Marshaller.StringToPtrGStrdup (System.String str) [0x00000]
   at GLib.Argv..ctor (System.String[] args, Boolean add_program_name)  
   at Gdk.Global.InitCheck (System.String[]& argv) [0x00000]
   at Mogato.Services.GdkResamplingService..ctor () [0x00000]

This is a concern, any comments?

3) I have similar issues for System.Runtime /  
System.Runtime.Serialization dlls as number 1.

So really I'm just having some troubles with packages / references as  
Monodevelop magically handled them for me before which is great but  
now I need to understand a little more myself.  Any pointers or ideas  

Mike Cleaver

FYI, I can compile under Monodevelop / Osx ok (as it handles reference  
packages) but point 2 is still a problem.  My laptop is a 1ghz g4 so  
MD doesn't run well enough and I'd prefer to use tm/vi.

More information about the Mono-list mailing list