Opened 18 years ago

Closed 18 years ago

#1596 closed defect (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (8)

by scottellington@…, 18 years ago

Attachment: mapscript_csharp.dll.config added

dll.config file

comment:1 by sdlime, 18 years ago

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

comment:2 by scottellington@…, 18 years ago

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

comment:3 by szekerest, 18 years ago

Owner: changed from sdlime to szekerest
Assigned

comment:4 by szekerest, 18 years ago

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

Tamas

comment:5 by szekerest, 18 years ago

Backported to Branch-4-8

comment:6 by sdlime, 18 years ago

Component: MapScriptMapScript-C#

comment:7 by szekerest, 18 years ago

Resolution: fixed
Status: newclosed
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.