Opened 19 years ago
Closed 18 years ago
#1596 closed defect (fixed)
Mono/Linux requires dll.config file for c# module
Reported by: | 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)
Change History (8)
by , 19 years ago
Attachment: | mapscript_csharp.dll.config added |
---|
comment:1 by , 19 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 , 19 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:4 by , 18 years ago
Comitted to the CVS HEAD. Thank you for sparing no effort to workaround theese problems. Tamas
comment:6 by , 18 years ago
Component: | MapScript → MapScript-C# |
---|
comment:7 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.
dll.config file