[Mapserver-users] Compiling on Win32

PLAIRE Rory Rory.PLAIRE at Co.Benton.OR.US
Wed Mar 10 14:38:46 EST 2004


Thanks Brent!

I'll give it a shot. 

Actually, I have used SWIG to generate the C# wrapper for MapServer... I
looked at most of the code it generates, and it really looks like it will
work well. I appreciate how it uses the P/Invoke mechanism to call the
MapServer dll since this will allow the wrapper to port to other runtime
platforms... now, if I can only get it to compile into one... ;)

I hope that I will be sharing a favorable outcome.

Thanks again,
-rory 8)

 -----Original Message-----
From: 	Brent Fraser [mailto:bfraser at geoanalytic.com] 
Sent:	Wednesday, March 10, 2004 11:36 AM
To:	PLAIRE Rory; mapserver-users at lists.gis.umn.edu
Subject:	Re: [Mapserver-users] Compiling on Win32

 << File: default.htm >> Rory,

  I've attached my doc on how to build Mapserver on a Win2k (Windows 2000)
o/s.  It includes a step on creating mapparser.h using flex.

  The doc is a little out of date; it covers 4.0 but not 4.1 (I'm not sure
if there are any significant changes in the build process).

  And this is just A way of building it, not necessarily THE way.  Frank W.
and others have put a lot of work into the nmake.opt file to make building
as painless as possible.

  As for making a DLL, see the step in the doc about making a library and
select "Win32 Dynamic-Link Library" instead of  "Win32 Static Library" as
the project type in VC++.  You'll likely need to create a ".def" file with
the functions you want to expose in the DLL and add it to the project before
you compile.

    That being said, I agree with Sean that if there's a way to expose the
functions to C# via Swig you may want to investigate it (keeping up with
Mapserver releases on your own can be a killer!).  From www.swig.org:

"Support for C# and the Chicken scheme compiler was added in SWIG 1.3.18. "

so there may be some hope.

Brent Fraser
Geodata Janitor/Therapist
GeoAnalytic Inc.


----- Original Message ----- 
From: "PLAIRE Rory" <Rory.PLAIRE at Co.Benton.OR.US>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, March 09, 2004 11:22 AM
Subject: [Mapserver-users] Compiling on Win32


> Greetings,
>
> Many thanks to all who work on Mapserver... a great tool to bring GIS
closer
> to everyone!
>
> I am trying to compile Mapserver on Win32 so that I can create a C#
wrapper
> with SWIG. Two issues come up: 1) I can't find documentation on how to
> generate mapparser.h from mapparser.y, although I've used Flex to no avail
> and 2) It isn't clear how to generate Mapserver as a DLL, although I know
> that some editing of the build will be needed.
>
> I am lamentably green in the VC++ build process, so these questions will
> take me some time to iron out. Perhaps someone would be kind enough to
point
> to the right direction to start me off.
>
> Appreciative,
> -rory
>
> Rory Plaire
> GIS Programmer/Analyst
> Benton County, Oregon
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list