[Mono-osx] Deploying a Mono app on mac without dependencies

Alexander Shulgin alexander.shulgin at yessoftware.com
Thu Jul 22 09:58:31 EDT 2010


On 22.07.2010 16:53, Tim Martin wrote:
> Hi,
>
> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/libgdiplus.dylib
>     at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
>     (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
>     at System.Drawing.GDIPlus..cctor () [0x00000] in<filename unknown>:0
[snip]
>
> The obvious conclusion is that it's trying to load libgdiplus.dylib, but
> I don't see how to change the search path for that library, since it
> isn't listed in otool -L output for the executable. I'm afraid I'm very
> new to Mac OS programming and totally stuck at this point.

Yes, that path is hard-coded in System.Drawing.dll.config file.  Try 
removing dllmap entry in that config file on the deployed machine, or 
don't include the config file in your package.

--
Alex


More information about the Mono-osx mailing list