Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mapserver-bot opened this issue Apr 3, 2012 · 7 comments
Closed

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

mapserver-bot opened this issue Apr 3, 2012 · 7 comments

Comments

@mapserver-bot
Copy link

Reporter: scottellington@comcast.net
Date: 2006/01/04 - 22:55
Trac URL: http://trac.osgeo.org/mapserver/ticket/1596

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.
@mapserver-bot
Copy link
Author

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

@mapserver-bot
Copy link
Author

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

@mapserver-bot
Copy link
Author

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

Assigned

@mapserver-bot
Copy link
Author

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


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

Tamas

@mapserver-bot
Copy link
Author

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


Backported to Branch-4-8

@mapserver-bot
Copy link
Author

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


@mapserver-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant