Unable to load DLL 'csharpmapscript': The specified module could not be found.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to load DLL 'csharpmapscript': The specified module could not be found.

Michel.Dastous

Hi,

 

We are building mapserver 7.0 on windows, and it appears that the default build configuration generates a DLL file ‘mapscript.dll’, however the SWIG wrapper ‘mapscript_csharp.dll’ is looking for ‘csharpmapscript.dll’ instead:

 

mapscriptPINVOKE.cs:

  protected class SWIGStringHelper {

 

    public delegate string SWIGStringDelegate(string message);

    static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);

 

    [DllImport("csharpmapscript", EntryPoint="SWIGRegisterStringCallback_mapscript")]

    public static extern void SWIGRegisterStringCallback_mapscript(SWIGStringDelegate stringDelegate);

 

    static string CreateString(string cString) {

      return cString;

    }

 

    static SWIGStringHelper() {

      SWIGRegisterStringCallback_mapscript(stringDelegate);

    }

  }

 

 

This problem was mentioned in 2015, in this post:

http://lists.osgeo.org/pipermail/mapserver-users/2015-December/078523.html

 

Any recommendation on how this should be correctly fixed?

 

Thanks,

 

Michel

 


_______________________________________________
mapserver-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapserver-dev
Loading...