Ticket #1596 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: scottellington@… Owned by: szekerest
Priority: high Milestone:
Component: MapScript-C# Version: 4.6
Severity: normal Keywords:
Cc:

Description

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.

Attachments

mapscript_csharp.dll.config Download (91 bytes) - added by scottellington@… 6 years ago.
dll.config file

Change History

Changed 6 years ago by scottellington@…

dll.config file

Changed 6 years ago by sdlime

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

Changed 6 years ago by scottellington@…

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

Changed 6 years ago by szekerest

  • owner changed from sdlime to szekerest
Assigned

Changed 6 years ago by szekerest

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

Tamas

Changed 6 years ago by szekerest

Backported to Branch-4-8

Changed 6 years ago by sdlime

  • component changed from MapScript to MapScript-C#

Changed 6 years ago by szekerest

  • status changed from new to closed
  • resolution set to fixed
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


Note: See TracTickets for help on using tickets.