MapServer / MapServer-import

3 stars 2 forks source link

Mono/Linux requires dll.config file for c# module #1596

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: scottellington@comcast.net Date: 2006/01/04 - 22:55

To run the C# module on Mono/Linux, a dll.config file is needed.  This simply
maps the library file the DllImport is looking for to its unix equivalent.  It
would be  helpful to include this in the MapServer distribution.

Note: this file will be benign on Windows.
tbonfort commented 12 years ago

Author: sdlime Date: 2006/01/04 - 23:59

Would this just live in the mapscript/csharp directory? If not, then where? Or 
is this a file generated by Swig? (forgive me, not a C# guy at all)

Steve
tbonfort commented 12 years ago

Author: scottellington@comcast.net Date: 2006/01/05 - 00:13

Yes.  In the csharp directory.

It basically should go wherever the created dll is, so in the same directory as
mapscript_csharp.dll would be mapscript_csharp.dll.config.  

I manually created it, and it will be consumed by Mono.  It is simply a way of
mapping windows dll library names to unix names.  There is information here if
you are curious:

http://www.mono-project.com/Interop_with_Native_Libraries

Scott
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/16 - 01:15

Assigned
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/19 - 01:24


Comitted to the CVS HEAD. Thank you for sparing no effort to workaround theese
problems.

Tamas
tbonfort commented 12 years ago

Author: szekerest Date: 2006/03/19 - 18:15


Backported to Branch-4-8
tbonfort commented 12 years ago

Author: szekerest Date: 2006/08/05 - 20:35

The default mapping for MONO on Linux maps to libmapscript.so therefore the
dll.config file is not really needed. However I have placed the sample into the
mapscript/csharp/config. Must not use this file on MONO/Windows.
This issue was commented in chapter 3.4 of
http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile