[Mapserver-users] Compiling on Win32
Brent Fraser
bfraser at geoanalytic.com
Wed Mar 10 11:35:41 PST 2004
This is a multi-part message in MIME format.
------=_NextPart_000_1EA2_01C4069C.33273990
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
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
------=_NextPart_000_1EA2_01C4069C.33273990
Content-Type: text/html;
name="default.htm"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="default.htm"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office"
xmlns:w=3D"urn:schemas-microsoft-com:office:word"
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 9">
<meta name=3DOriginator content=3D"Microsoft Word 9">
<link rel=3DFile-List href=3D"./default_files/filelist.xml">
<title>Building Mapserver on Windows 2000 Professional</title>
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:black;}
h1
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:1;
font-size:24.0pt;
font-family:"Times New Roman";
color:black;
mso-font-kerning:18.0pt;
font-weight:bold;}
h2
{mso-style-next:Normal;
margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:2;
font-size:14.0pt;
font-family:Arial;
color:black;
font-weight:bold;
font-style:italic;}
h3
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:3;
font-size:13.5pt;
font-family:"Times New Roman";
color:black;
font-weight:bold;}
h4
{mso-style-next:Normal;
margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
text-indent:.5in;
mso-pagination:widow-orphan;
page-break-after:avoid;
mso-outline-level:4;
font-size:12.0pt;
font-family:"Times New Roman";
color:red;
font-weight:normal;
text-decoration:underline;
text-underline:single;}
h5
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
mso-outline-level:5;
font-size:10.0pt;
font-family:"Times New Roman";
color:black;
font-weight:bold;}
p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:1.0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:black;}
p.MsoBodyTextIndent2, li.MsoBodyTextIndent2, div.MsoBodyTextIndent2
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:.5in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
color:black;}
p.MsoBodyTextIndent3, li.MsoBodyTextIndent3, div.MsoBodyTextIndent3
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:2.0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Courier New";
mso-fareast-font-family:"Times New Roman";
color:black;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p
{margin-right:0in;
mso-margin-top-alt:auto;
mso-margin-bottom-alt:auto;
margin-left:0in;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
color:black;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:244653890;
mso-list-type:hybrid;
mso-list-template-ids:-632159582 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l1
{mso-list-id:617295798;
mso-list-type:hybrid;
mso-list-template-ids:1199055508 67698689 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:Symbol;}
@list l2
{mso-list-id:684553769;
mso-list-type:hybrid;
mso-list-template-ids:1660826886 -1453924570 67698713 67698715 67698703 =
67698713 67698715 67698703 67698713 67698715;}
@list l2:level1
{mso-level-tab-stop:37.8pt;
mso-level-number-position:left;
margin-left:37.8pt;
text-indent:-19.8pt;}
@list l3
{mso-list-id:851072441;
mso-list-type:hybrid;
mso-list-template-ids:-861110950 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l3:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l4
{mso-list-id:878976176;
mso-list-type:hybrid;
mso-list-template-ids:-1498408904 -1945216774 67698691 67698693 =
67698689 67698691 67698693 67698689 67698691 67698693;}
@list l4:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l4:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
margin-left:1.5in;
text-indent:-.25in;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l5
{mso-list-id:895121582;
mso-list-type:hybrid;
mso-list-template-ids:-196601694 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l5:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l6
{mso-list-id:1015183965;
mso-list-type:hybrid;
mso-list-template-ids:1287020686 67698689 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l6:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l7
{mso-list-id:1021204738;
mso-list-type:hybrid;
mso-list-template-ids:-912074850 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l7:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l8
{mso-list-id:1040201633;
mso-list-type:hybrid;
mso-list-template-ids:-1312242734 -1945216774 67698691 67698693 =
67698689 67698691 67698693 67698689 67698691 67698693;}
@list l8:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l9
{mso-list-id:1396122113;
mso-list-type:hybrid;
mso-list-template-ids:1981342504 67698703 67698713 67698715 67698703 =
67698713 67698715 67698703 67698713 67698715;}
@list l9:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l10
{mso-list-id:1441799138;
mso-list-type:hybrid;
mso-list-template-ids:834194618 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l10:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l11
{mso-list-id:1658804234;
mso-list-type:hybrid;
mso-list-template-ids:2005321994 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l11:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l12
{mso-list-id:1703088520;
mso-list-type:hybrid;
mso-list-template-ids:1606324824 -1945216774 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l12:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:90.6pt;
mso-level-number-position:left;
margin-left:90.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l13
{mso-list-id:1780485405;
mso-list-type:hybrid;
mso-list-template-ids:2094146056 67698689 300819282 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l13:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
margin-left:1.0in;
text-indent:-.25in;
font-family:Symbol;}
@list l13:level2
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:108.6pt;
mso-level-number-position:left;
margin-left:108.6pt;
text-indent:-18.6pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@list l14
{mso-list-id:1852794568;
mso-list-type:hybrid;
mso-list-template-ids:-1916083746 -1126150300 67698713 67698715 =
67698703 67698713 67698715 67698703 67698713 67698715;}
@list l14:level1
{mso-level-tab-stop:.75in;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<meta name=3DCREATED content=3D"20030430;16022959">
<meta name=3DCHANGED content=3D"20030430;16033915">
<!--[if gte mso 9]><xml>
<u1:DocumentProperties>
<u1:Author>Geoanalytic Inc.</u1:Author>
<u1:LastAuthor>Geoanalytic Inc.</u1:LastAuthor>
<u1:Revision>29</u1:Revision>
<u1:TotalTime>4370</u1:TotalTime>
<u1:Created>2003-02-19T16:30:00Z</u1:Created>
<u1:LastSaved>2003-04-30T16:29:00Z</u1:LastSaved>
<u1:Pages>6</u1:Pages>
<u1:Words>1624</u1:Words>
<u1:Characters>9258</u1:Characters>
<u1:Company>GeoAnalytic Inc.</u1:Company>
<u1:Lines>77</u1:Lines>
<u1:Paragraphs>18</u1:Paragraphs>
<u1:CharactersWithSpaces>11369</u1:CharactersWithSpaces>
<u1:Version>9.2720</u1:Version>
</u1:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u2:WordDocument>
=
<u2:DisplayHorizontalDrawingGridEvery>0</u2:DisplayHorizontalDrawingGridE=
very>
=
<u2:DisplayVerticalDrawingGridEvery>0</u2:DisplayVerticalDrawingGridEvery=
>
<u2:UseMarginsForDrawingGridOrigin/>
<u2:Compatibility>
<u2:FootnoteLayoutLikeWW8/>
<u2:ShapeLayoutLikeWW8/>
<u2:AlignTablesRowByRow/>
<u2:ForgetLastTabAlignment/>
<u2:LayoutRawTableWidth/>
<u2:LayoutTableRowsApart/>
</u2:Compatibility>
</u2:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u3:shapedefaults u4:ext=3D"edit" spidmax=3D"1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u5:shapelayout u6:ext=3D"edit">
<u5:idmap u6:ext=3D"edit" data=3D"1"/>
</u5:shapelayout>
</xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal align=3Dcenter =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><span style=3D'font-size:16.0pt'>An =
Introduction to
Building Mapserver on Windows 2000 Professional</span></b></p>
<p class=3DMsoNormal align=3Dcenter =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><span style=3D'font-size:16.0pt'>August 6, =
2003<o:p></o:p></span></b></p>
<p class=3DMsoNormal align=3Dcenter =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><span style=3D'font-size:16.0pt'>(updated Oct =
1, 2003)</span></b></p>
<p class=3DMsoNormal align=3Dcenter =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center'><b><span style=3D'font-size:16.0pt'>Brent =
Fraser</span></b></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<h1><span style=3D'font-size:16.0pt'>What is MapServer?</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Mapserver is a web mapping tool.</p>
<h1><span style=3D'font-size:16.0pt'>How do I install it?</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Set up IIS on your Windows server, put the mapserv.exe in the cgi-bin
directory, build a mapserver-compliant web site.</p>
<h1><span style=3D'font-size:16.0pt'>Why compile it?</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l13 level1 =
lfo2;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>debug it to track down problems</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l13 level1 =
lfo2;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>debug it to find out what it=92s doing =
(compensate for
lacking documentation!)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l13 level1 =
lfo2;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>add features (standard options and possibly your =
own
code)</p>
<h1><span style=3D'font-size:16.0pt'>What do I need?</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 =
lfo4;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>access to the Internet to download source code =
(and a
couple of tools)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 =
lfo4;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>Microsoft=92s Visual C++ compiler</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 =
lfo4;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>knowledge of how to create projects in VC++</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:-.25in;mso-list:l6 level1 =
lfo4;tab-stops:list 1.0in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>knowledge of how to use the Windows Command =
Prompt</p>
<p> </p>
<h1><span style=3D'font-size:16.0pt'>1.<span style=3D"mso-spacerun: =
yes">=A0
</span>Build enviroment Choices</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Mapserver is written almost entirely in ANSI C. It has been =
compiled on
Win95, 98, 2000, XP, ME, XP, MacOS, Linux, Sun Unix, and likely other =
operating
systems.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
To build Mapserver on Windows you will need <b><u>either</u></b>:</p>
<p>
=
Visual
Studio: nmake,
VC++ &nb=
sp; &nbs=
p;  =
;
(covered in this document)</p>
<p>
Flex =
and
Bison parser tools (<a
href=3D"http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html">http://=
www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html</a>)
(covered in this document)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<b><u>or<o:p></o:p></u></b></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
=
cygwin, gnu
c
compiler  =
; =
&=
nbsp; &n=
bsp;
(<b><u>NOT</u></b> covered in this document)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<h1><span style=3D'font-size:16.0pt'>2. Dependancies</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<b><u>Required</u></b><u> Source Code:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Mapserver 4.0 2003-08-01 (or greater) <a
href=3D"http://mapserver.gis.umn.edu/dload.html">http://mapserver.gis.umn=
.edu/dload.html</a>
</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Regex &n=
bsp; &nb=
sp; &nbs=
p; <span
style=3D"mso-spacerun: yes">=A0=A0=A0=A0 =
</span> <a
href=3D"ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz">ftp://ftp.gnu.=
org/pub/gnu/regex/regex-0.12.tar.gz</a></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
- =
regular
expresssion parser</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
GD 2.0.15 (or
greater)  =
; =
<a =
href=3D"http://www.boutell.com/gd/">http://www.boutell.com/gd/</a></p>
<p> &nbs=
p;
- graphics draw library</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<b><u>Recommended</u></b><u> Source Code:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Proj 4.4.7 (or
greater)  =
; =
<a =
href=3D"http://www.remotesensing.org/proj/">http://www.remotesensing.org/=
proj/</a></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
&=
nbsp;
- map projections</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
FreeType 2.1.4 (or
greater)  =
;
<a =
href=3D"http://sourceforge.net/project/showfiles.php?group_id=3D3157">htt=
p://sourceforge.net/project/showfiles.php?group_id=3D3157</a></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
&=
nbsp;
- vector font rendering (rotation, scaling)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
GDAL 1.1.9 (or
greater)  =
; =
<a =
href=3D"http://www.remotesensing.org/gdal/index.html">http://www.remotese=
nsing.org/gdal/index.html</a></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>24-bit rendering</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>raster re-projection</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>lots of additional input formats<u><o:p></o:p></u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<u>Optional Libraries:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
ECW libraries</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
&=
nbsp;
- adds reading of ECW compressed imagery</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
PostgreSQL database application</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
&=
nbsp;
- adds reading of spatial data from a relational database</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<u>Mapserver Options Not Covered Here:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>WFS =
Client and Server<span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>- OGIS =
Web Feature Service (send
vectors to the client)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>WMS =
Client<span style=3D'mso-tab-count:
3'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0 </span>- OGIS Web Mapping Service Client
(request maps from other servers)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
SDE &nbs=
p;  =
; =
- ESRI spatial-enabled data store</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
MING_Flash &nb=
sp; &nbs=
p; -
output format</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
EPPL7 &n=
bsp; &nb=
sp; &nbs=
p;
- image processing</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
OracleSpatial =
&=
nbsp; -
relational data store</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
MapScript =
(PHP) &n=
bsp; -
server-side scripting</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<h1><span style=3D'font-size:16.0pt'>3. Filesystem =
Organization</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
The following is my recommended organization of the libraries, but it is =
not
required:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
..\ MapServer </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
&=
nbsp;
20030801  =
;
(MapServer release date or nightly build date)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ freetype-2.1.4</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ gd-2.0.15</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>\ =
gd</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ gdal-1.1.9</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ mapserver-4.0</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>\ =
mapserver
(library)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>\ =
mapserv
(exe)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ proj-4.4.7</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>\ regex-0.12</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>\ =
regex</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
There are other ways to organize the code but this method:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.75in;text-indent:-.25in;mso-list:l1 level1 =
lfo8;tab-stops:list .75in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>supports multiple nightly builds in development
computer</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.75in;text-indent:-.25in;mso-list:l1 level1 =
lfo8;tab-stops:list .75in'><![if !supportLists]><span
style=3D'font-family:Symbol'>=B7<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]>allows you to reliably upgrade to new versions =
of
source code (but it can waste disk space since the dependancies may be
duplicated.)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<h1><span style=3D'font-size:16.0pt'>4. Building From the Ground =
Up</span></h1>
<h2> The preliminaries</h2>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:37.8pt;text-indent:-19.8pt;mso-list:l2 level1 =
lfo10;tab-stops:list 37.8pt'><![if !supportLists]>1.<span
style=3D'font:7.0pt "Times New Roman"'> =
</span><![endif]>Install
VC++ 6.0 (or Visual Studio with VC++ 6.0) on your software development
computer. Make sure the VC98\bin directory is in your path so you =
can run
nmake from the command line.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:37.8pt;text-indent:-19.8pt;mso-list:l2 level1 =
lfo10;tab-stops:list 37.8pt'><![if !supportLists]>2.<span
style=3D'font:7.0pt "Times New Roman"'> =
</span><![endif]>Create
a directory called =93MapServer=94. It can be a subdirectory =
anywhere on your
development computer. This is optional.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:37.8pt;text-indent:-19.8pt;mso-list:l2 level1 =
lfo10;tab-stops:list 37.8pt'><![if !supportLists]>3.<span
style=3D'font:7.0pt "Times New Roman"'> =
</span><![endif]>Create
a sub-directory called =9320030801=94. The name corresponds to the =
date of
the Mapserver nightly build or release date. This is not a =
requirement,
but it is useful in separating MapServer=92s source code snapshots if =
you intend
to build pre-release source code.</p>
<h2>Building the dependencies</h2>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>1.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
"proj"</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l11 level1 =
lfo12;tab-stops:
list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download (<a =
href=3D"http://www.remotesensing.org/proj/">http://www.remotesensing.org/=
proj/</a>)
into your =93nightly build=94 (eg 20030801) dir and unpack</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l11 level1 =
lfo12;tab-stops:
list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>in the src directory, change PVALUE to PJ_VALUE in:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>src\projects.h (line 162, line 348)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'>src\pj_param.c (line 39, line 43)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>edit src\makefile.vc to enable debug build.<span
style=3D"mso-spacerun: yes">=A0 </span>Comment out line 11, Uncomment =
line 12:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>#OPTFLAGS=3D<span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0 </span>/nologo /Ox =
/ML<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>OPTFLAGS=3D<span
style=3D'mso-tab-count:1'> </span>/nologo /Zi /Fdproj.pdb</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>from the command line, execute the following:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>cd =
proj-4.4.5\src</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>vcvars32</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>nmake /f =
makefile.vc
all</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>2.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
=93gdal=94</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download (<a
href=3D"http://www.remotesensing.org/gdal/index.html">http://www.remotese=
nsing.org/gdal/index.html</a>)
and unpack</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>edit the nmake.opt file to enable debug build.<span
style=3D"mso-spacerun: yes">=A0 </span>Comment out line 11, Uncomment =
line 12:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in;text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>#OPTFLAGS=3D<span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0 </span>/nologo /Ox =
/ML<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>OPTFLAGS=3D<span
style=3D'mso-tab-count:1'> </span>/nologo /Zi =
/Fd$(GDAL_ROOT)\gdal.pdb<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>GDAL 1.1.9 requires a change in the nmake.opt to change =
the
reference from =93core=94 to =93gcore=94 (Frank is aware of this and it =
will be fixed
in the next release):</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>INC<span
style=3D'mso-tab-count:1'>=A0 </span>=3D<span =
style=3D'mso-tab-count:1'>=A0=A0=A0 </span>-I$(GDAL_ROOT)\port
-I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\core<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>INC<span
style=3D'mso-tab-count:1'>=A0 </span>=3D<span =
style=3D'mso-tab-count:1'>=A0=A0=A0 </span>-I$(GDAL_ROOT)\port
-I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>from the command line:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>cd =
gdal-1.1.9</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier New"'>nmake /f =
makefile.vc</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>3.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
=93freetype=94</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download (<a
href=3D"http://sourceforge.net/project/showfiles.php?group_id=3D3157">htt=
p://sourceforge.net/project/showfiles.php?group_id=3D3157</a>)
(look under freetype2 for something that looks like <span =
style=3D'font-family:
"Courier New"'>ft214.zip</span>) and unpack.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>use the FreeType supplied VC++ workspace file in <span
style=3D'font-family:"Courier New"'>builds\win32\visualc</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>build the library</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>4.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
=93regex=94</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l0 level1 =
lfo14;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download (<a
href=3D"ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz">ftp://ftp.gnu.=
org/pub/gnu/regex/regex-0.12.tar.gz</a>)
and unpack.</p>
<p class=3DMsoNormal =
style=3D'margin-left:90.6pt;text-indent:-18.6pt;mso-list:l0 level1 =
lfo14;
tab-stops:list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>create a VC++ Win32 static library project =93regex=94 =
in the regex-0.12
directory</p>
<p class=3DMsoNormal =
style=3D'margin-left:90.6pt;text-indent:-18.6pt;mso-list:l0 level1 =
lfo14;
tab-stops:list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>add <span style=3D'font-family:"Courier =
New"'>regex.c</span> to
project (right click the project name in the file view panel, the select =
Add
Files to Project)</p>
<p class=3DMsoNormal =
style=3D'margin-left:90.6pt;text-indent:-18.6pt;mso-list:l0 level1 =
lfo14;
tab-stops:list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>under Project -> Settings -> C/C++ -> =
Category:
Preprocessor, add Preprocessor Definitions: </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>,HAVE_STRING_H,REGEX_MALLOC</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l3 level1 =
lfo16;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>build the library</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <span
style=3D'mso-tab-count:2'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 </span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>5.<span
style=3D'font-size:7.5pt'> =
</span><u>Building =93gd=94</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download (<a =
href=3D"http://www.boutell.com/gd/">http://www.boutell.com/gd/</a>)
(select =93Download .zip=94) and unpack.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>create a VC++ Win32 static library project called =
=93gd=94 in the
gd-2.0.15 directory</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add the files specified below to the project.<span
style=3D"mso-spacerun: yes">=A0 </span>Select the File View tab in VC++, =
right
click on =93gd files=94 and select =93add Files to Project=94 from the =
pop-up
menu.<span style=3D"mso-spacerun: yes">=A0 </span>Go up a directory to =
the gd-2.0.15
directory. Cut and paste the line below into the =93file name:=94 text =
box in the
open file dialog:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>"wbmp.c"
"gd.c" "gd_gd.c" "gd_gd2.c" =
"gd_io.c"
"gd_io_dp.c" "gd_io_file.c" "gd_io_ss.c"
"gd_jpeg.c" "gd_png.c" "gd_ss.c"
"gd_topal.c" "gd_wbmp.c" "gdcache.c"
"gdfontg.c" "gdfontl.c" "gdfontmb.c"
"gdfonts.c" "gdfontt.c" "gdft.c" =
"gdhelpers.c"
"gdkanji.c" "gdtables.c" "gdxpm.c" =
<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>set preprocessor definitions: </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>,HAVE_LIBPNG,HAVE_LIBZ,HAVE_LIBFREETYPE,HAVE_LIBJPEG</span></p>
<p class=3DMsoBodyTextIndent =
style=3D'margin-left:90.6pt;text-indent:-18.6pt;
mso-list:l10 level1 lfo6;tab-stops:list 90.6pt'><![if =
!supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>set additional include directories:</p>
<p class=3DMsoBodyTextIndent style=3D'margin-left:1.5in'><span =
style=3D'font-family:
"Courier =
New"'>,..\,..\..\gdal-1.1.9\frmts\zlib,..\..\gdal-1.1.9\frmts\png\libpng,=
..\..\gdal-1.1.9\frmts\jpeg\libjpeg, =
..\..\freetype-2.1.4\include<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>build the library</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <span
style=3D'color:red'>NOTE:<span style=3D"mso-spacerun: yes">=A0 =
</span>There is now an
=93nmake.opt=94 file delivered with Mapserver to deal with a lot of the =
details
covered below.<span style=3D"mso-spacerun: yes">=A0 </span>This is the =
preferred method
of building Mapserver, but if you are having trouble with it, follow =
steps 6
and 7 below:<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>6.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
the mapserver library</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download mapserver-4.0.tar.gz from <a
href=3D"http://mapserver.gis.umn.edu/dload.html">http://mapserver.gis.umn=
.edu/dload.html</a>
and save in your <span style=3D'font-family:"Courier =
New"'>20030801</span>
directory.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>unpack all files from tar file to create a <span
style=3D'font-family:"Courier New"'>mapserver-4.0</span> directory =
within your <span
style=3D'font-family:"Courier New"'>20030801</span> directory.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l10 level1 =
lfo6;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>download <span style=3D'font-family:"Courier =
New"'>flex.exe</span>,
<span style=3D'font-family:"Courier New"'>bison.exe</span>, and <span
style=3D'font-family:"Courier New"'>bison.simple</span> (<a
href=3D"http://www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html">http://=
www.monmouth.com/~wstreett/lex-yacc/lex-yacc.html</a>)
into the <span style=3D'font-family:"Courier New"'>mapserver-4.0</span>
directory.<span style=3D"mso-spacerun: yes">=A0 </span>Using a text =
editor, create <span
style=3D'font-family:"Courier New"'>parser.bat</span>:</p>
<p class=3DMsoNormal style=3D'margin-left:1.0in;text-indent:.5in'><span
style=3D'font-family:"Courier New"'>flex.exe -Pmsyy -i -omaplexer.c =
maplexer.l<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in;text-indent:.5in'><span
style=3D'font-family:"Courier New"'>bison.exe -p msyy -d -omapparser.c
mapparser.y<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l5 level1 =
lfo18;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>run <span style=3D'font-family:"Courier =
New"'>parser.bat</span>
once to create mapparser.h.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l5 level1 =
lfo18;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>create a VC++ static library workspace named =
=93mapserver=94 in
the <span style=3D'font-family:"Courier New"'>mapserver-4.0</span> =
directory
(VC++ will create a <span style=3D'font-family:"Courier =
New"'>mapserver</span>
sub-dir)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l5 level1 =
lfo18;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add <span style=3D'font-family:"Courier =
New"'>cgiutil.c</span>
and all the <span style=3D'font-family:"Courier New"'>map*.c</span> =
(<b><u>except</u></b><u>
</u><span style=3D'font-family:"Courier New"'>mapserv.c</span><b> and =
</b><span
style=3D'font-family:"Courier New"'>mapserv_fcgi.c</span>) files to the =
project</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l5 level1 =
lfo18;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add the following preprocessor definitions:</p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>,USE_GDAL,
USE_TTF, USE_PROJ, NEED_STRNCASECMP, NEED_STRCASECMP, USE_GD_FT, =
USE_GD_PNG,
USE_GD_JPEG, IGNORE_MISSING_DATA, USE_OGR, USE_TIFF, USE_JPEG, =
HAVE_BOOLEAN<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add the following Additional Include directories:</p>
<p class=3DMsoBodyTextIndent style=3D'margin-left:1.5in'><span =
style=3D'font-family:
"Courier =
New"'>..\..\gdal-1.1.9\gcore,..\..\gdal-1.1.9\port,..\..\gdal-1.1.9\alg,.=
.\..\gdal-1.1.9\ogr,..\..\gdal-1.1.9\ogr\ogrsf_frmts,..\..\gdal-1.1.9\frm=
ts\jpeg\libjpeg,..\..\gdal-1.1.9\frmts\gtiff\libtiff,..\..\gd-2.0.15,..\.=
.\regex-0.12,..\..\proj-4.4.7\src<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]><b><span =
style=3D'font-size:14.0pt;mso-bidi-font-size:12.0pt'>compile
to mapserver.lib</span></b></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>7.<span
style=3D'font-size:7.5pt'> =
</span><u>Building the
mapserver executable</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>create console application called mapserv in the <span
style=3D'font-family:"Courier New"'>mapserver-4.0</span> directory</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add <span style=3D'font-family:"Courier =
New"'>mapserv.c</span>
to the project</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add the following <u>Preprocessor definitions</u>:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'> =
<span style=3D'font-family:"Courier =
New"'>,USE_PROJ,USE_WMS_SVR<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l4 level1 =
lfo22;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add <u>Additional include dirs:<o:p></o:p></u></p>
<p class=3DMsoBodyTextIndent style=3D'margin-left:1.5in'><span =
style=3D'font-family:
"Courier =
New"'>..\..\gd-2.0.15,..\..\regex-0.12,..\..\proj-4.4.7\src<o:p></o:p></s=
pan></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l4 level1 =
lfo22;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add <u>additional Object/library modules:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><i>Debug version</i>:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>..\mapserver\debug\mapserver.lib
..\..\regex-0.12\regex\debug\regex.lib ..\..\proj-4.4.7\src\proj.lib =
..\..\gd-2.0.15\gd\debug\gd.lib
..\..\gdal-1.1.9\gdal.lib =
..\..\freetype-2.1.4\objs\freetype214ST_D.lib<o:p></o:p></span></p>
<p style=3D'margin-left:1.5in'><i>Release version</i>:</p>
<p style=3D'margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>..\mapserver\release\mapserver.lib
..\..\regex-0.12\regex\release\regex.lib ..\..\proj-4.4.7\src\proj.lib
..\..\gd-2.0.15\gd\release\gd.lib ..\..\gdal-1.1.9\gdal.lib
..\..\freetype-2.1.4\objs\freetype214.lib<br =
style=3D'mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br =
style=3D'mso-special-character:line-break'>
<![endif]><o:p></o:p></span></p>
<p style=3D'margin-left:90.6pt;text-indent:-18.6pt;mso-list:l8 level1 =
lfo20;
tab-stops:list 90.6pt'><![if !supportLists]><span =
style=3D'font-size:14.0pt;
mso-bidi-font-size:12.0pt'>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]><b><span =
style=3D'font-size:14.0pt;mso-bidi-font-size:
12.0pt'>compile to mapserv.exe</span></b><span =
style=3D'font-size:14.0pt;
mso-bidi-font-size:12.0pt'><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;page-break-before:always;mso-list:=
l12 level1 lfo24;
tab-stops:list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]><u>Test</u> your mapserv.exe by opening a command =
prompt
window, cd to it=92s location, and execute it with the =93-v=94 =
option:</p>
<p style=3D'margin-left:.5in;text-indent:.5in'><span =
style=3D'font-family:"Courier New"'>cd
C:\Development\MapServer\20030428\mapserver_dev\mapserv<o:p></o:p></span>=
</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in;text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>mapserv
=96v</span></p>
<p class=3DMsoBodyTextIndent><span style=3D'font-family:"Courier =
New"'>MapServer
version 4.0 OUTPUT=3DPNG OUTPUT=3DJPEG SUPPORTS=3DPROJ =
SUPPORTS=3DFREETYPE
SUPPORTS=3DWMS_SERVER INPUT=3DTIFF INPUT=3DJPEG INPUT=3DOGR INPUT=3DGDAL =
INPUT=3DSHAPEFILE<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><u>The output means:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier New"'>MapServer =
version
4.0<span =
style=3D'mso-tab-count:3'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
</span> </span>=96 version 4.0</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>OUTPUT=3DPNG &=
nbsp; &n=
bsp;
</span>- this exe will create PNG graphic files for output</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>OUTPUT=3DJPEG =
&=
nbsp;
</span>- this exe will create JPEG graphic files for output</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>SUPPORTS=3DPROJ
&=
nbsp;
</span>- this exe will re-project data if projection is specified in map =
file</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>SUPPORTS=3DFREETYPE =
</span>- this exe will allow the use of TrueType fonts</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>SUPPORTS=3DWMS_SERVER &nbs=
p;
</span>- this exe will will act as a OGIS WMS server</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>INPUT=3DTIFF
&=
nbsp;
</span>- this exe will read TIFF images without going thru GDAL</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>INPUT=3DJPEG
&=
nbsp;
</span>- this exe will read jpeg images without going thru GDAL</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier New"'>INPUT=3DOGR
&=
nbsp; &n=
bsp;
</span>- this exe will read OGR supported vector formats (e.g TAB, =
shapefile,
etc)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>INPUT=3DGDAL
&=
nbsp;
</span>- this exe will read and write GDAL raster formats (e.g jpg, tif,
Geotif, BIL, etc)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><span style=3D'font-family:"Courier =
New"'>INPUT=3DSHAPEFILE &n=
bsp;
</span>- this exe will shapefiles without going thru GDAL/OGR</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>8.<span
style=3D'font-size:7.5pt'> =
</span><u>Building
Shp2img</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>shp2img.exe</span> is
a stand-alone executable (a web server is not required) that can do all =
the map
graphic rendering mapserv.exe can do, but does not render scale bar or
reference map graphic and does not do querying.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l12 level1 =
lfo24;tab-stops:
list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>create console application called shp2img in the =
mapserver_dev
directory</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l12 level1 =
lfo24;tab-stops:
list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add shp2img.c to the project</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l12 level1 =
lfo24;tab-stops:
list 90.6pt'><![if !supportLists]>-<span style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>add the following <u>Preprocessor definitions</u>:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:2.0in'><span style=3D'font-family:"Courier =
New"'>,USE_PROJ<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l7 level1 =
lfo26;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>set <u>Additional include directories:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:126.6pt'><span style=3D'font-family:"Courier =
New"'>..\..\gd-2.0.15,..\..\regex-0.12,..\..\proj-4.4.7\src</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l7 level1 =
lfo26;tab-stops:list 90.6pt'><![if !supportLists]>-<span
style=3D'font:7.0pt "Times New =
Roman"'>
</span><![endif]>set <u>Object/library modules:</u></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.0in'><i>Debug version:</i></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>..\mapserver\debug\mapserver.lib
..\..\regex-0.12\regex\debug\regex.lib ..\..\proj-4.4.7\src\proj.lib
..\..\gd-2.0.15\gd\debug\gd.lib ..\..\gdal-1.1.9\gdal.lib
..\..\freetype-2.1.4\objs\freetype214ST_D.lib<o:p></o:p></span></p>
<p style=3D'margin-left:1.0in'><i>Release version:</i></p>
<p style=3D'margin-left:1.5in'><span style=3D'font-family:"Courier =
New"'>..\mapserver\release\mapserver.lib
..\..\regex-0.12\release\regex.lib ..\proj-4.4.7\src\proj.lib ..\
..\gd-2.0.15\gd\release\gd.lib ..\..\gdal-1.1.9\gdal.lib
..\freetype-2.1.4\objs\freetype214ST.lib<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:90.6pt;text-indent:-18.6pt;mso-list:l7 level1 =
lfo26;tab-stops:list 90.6pt'><![if !supportLists]><span
style=3D'font-size:14.0pt;mso-bidi-font-size:12.0pt'>-<span =
style=3D'font:7.0pt "Times New =
Roman"'>
</span></span><![endif]><b><span =
style=3D'font-size:14.0pt;mso-bidi-font-size:
12.0pt'>compile to shp2img.exe</span></b><span =
style=3D'font-size:14.0pt;
mso-bidi-font-size:12.0pt'><o:p></o:p></span></p>
<p> </p>
<h1><span style=3D'font-size:16.0pt'>5. Testing the Mapserver =
Build</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Test
with shp2img</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Create a map file and test using shp2img:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in;text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>shp2img
-m C:\Inetpub\wwwroot\test\test.map -o test.jpg</span></p>
<p class=3DMsoNormal><span style=3D'mso-bidi-font-family:Arial'>Test =
mapserv.exe on
the command line</span><span =
style=3D'font-size:10.0pt;font-family:Arial'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><span =
style=3D'mso-bidi-font-family:
Arial'><span style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
</span></span><span
style=3D'font-family:"Courier New"'>mapserv =
QUERY_STRING=3Dxxxxxxxxxxxx</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Test
mapserv.exe with the Itasca demo</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'>Download and install the Itasca demo</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'>Move your mapserv.exe to your cgi-bin directory.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'>Browse to your Itasca demo</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<more info TBD></p>
<h1><span style=3D'font-size:16.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></h1>
<h1><span style=3D'font-size:16.0pt'>6. Debugging Mapserver</span></h1>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Map
Rendering problems</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Map
Query Problems</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<more info TBD></p>
<h1><span style=3D'font-size:16.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></h1>
<h1><span style=3D'font-size:16.0pt'>7. Enabling Other Capabilities of =
MapServer</span></h1>
<h3 style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l9 level1 =
lfo28;
tab-stops:list .5in'><![if !supportLists]>1.<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>Adding ECW Reading Capabilities</h3>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'>Download ERMapper=92s =93ECW Compression/Decompression =
SDK for
Windows=94 from <a =
href=3D"http://www.ermapper.com/">www.ermapper.com</a> -
downloads, and install.</p>
<p class=3DMsoBodyTextIndent2><span style=3D'font-family:"Times New =
Roman"'>Edit
GDAL=92s nmake.opt file. Uncomment and change the ECWDIR =
assignment to
point to the location of the ECW libraries. The path must be in =
MSDOS
format (use =93dir /X=94 to show name in MSDOS =
format):<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in;text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>ECWDIR
=3D C:\PROGRA~1\ERMapp~1\ECWCom~1.1</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>Uncomment the next two lines as well:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in;text-indent:.5in'><span style=3D'font-family:"Courier =
New"'>ECWLIB
=3D $(ECWDIR)\lib\NCSEcw.lib $(ECWDIR)\lib\NCSEcwC.lib =
\</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-family:"Courier =
New"'>
<span style=3D'mso-tab-count:1'>=A0=A0=A0 =
</span>
$(ECWDIR)\lib\NCSUtil.lib</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>From the command line execute:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-family:"Courier New"'> <span
style=3D'mso-tab-count:1'>=A0=A0=A0 </span>cd gdal-1.1.9</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-family:"Courier New"'> <span
style=3D'mso-tab-count:1'>=A0=A0=A0 </span>nmake /f makefile.vc =
clean</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-family:"Courier New"'> <span
style=3D'mso-tab-count:1'>=A0=A0=A0 </span>nmake /f =
makefile.vc</span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>Add the following Object/library modules to the Link =
dialog
for mapserv.exe (and shp2img if you want).</p>
<p class=3DMsoBodyTextIndent2 =
style=3D'margin-left:1.0in'>C:\PROGRA~1\ERMapp~1\ECWCom~1.1\lib\NCSEcw.li=
b
C:\PROGRA~1\ERMapp~1\ECWCom~1.1\lib\NCSEcwC.lib
C:\PROGRA~1\ERMapp~1\ECWCom~1.1\lib\NCSUtil.lib</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>These ECW libraries are just the =93stubs=94 of the =
functions
allowing the exe to be linked without any errors. Before you can =
use an
exe (like mapserv.exe) that makes use of the functions, you must =
copy the
corresponding ECW DLLs into the same directory as the exe, or into the =
O/S
system32 directory.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <span
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>To use =
ECW raster files, simply reference
them as you would other raster files in the DATA statement in the LAYER =
object
of your map file.</p>
<p> </p>
<h3 style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l9 level1 =
lfo28;
tab-stops:list .5in'><![if !supportLists]>2.<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>Adding PostGIS Reading Capabilities</h3>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>PostGIS is a spatial enabling layer added to the open =
source
database PostgreSQL. MapServer requires the PostGIS functions to =
be added
to PostgreSQL (MapServer will not read geometry data from a PostgreSQL =
database
without it) PostgreSQL is primarily built for Unix/Linux but will =
run on
Windows. While there is a Windows version of PostgreSQL available =
for
running with Cygwin (a Unix-like environment for Windows), we use the =
native
Windows port created by Multera/PeerDirect. </p>
<h4>NOTE:<span style=3D"mso-spacerun: yes">=A0 </span>The port was a =
beta, and is
no longer available</h4>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
text-indent:.5in'>Download the Multera binaries from <a
href=3D"ftp://209.61.187.152/multera/postgres_beta2.zip">ftp://209.61.187=
.152/multera/postgres_beta2.zip</a>.<span
style=3D"mso-spacerun: yes">=A0 </span>Unpack and <u>follow the install
documentation included in the zip file</u>. Add the PostGIS layer =
to
PostgreSQL by downloading it from <a =
href=3D"http://postgis.refractions.net/">http://postgis.refractions.net</=
a>.
Unpack and install. There are a couple of ways of creating data in
PostGIS, but one of the easiest is the shp2pgsql utility included in the
PostGIS download.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Make
the following changes to the mapserver lib project:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Add the following <u>Preprocessor definition</u>:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:.5in'><span style=3D'font-family:"Courier =
New"'>,USE_POSTGIS<o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
Add the following <u>Additional include directories:</u> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
<span style=3D'font-family:"Courier New"'>, =
C:\programs\Postgresql\include </span>(or
where ever you=92ve installed PostgreSQL)</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D"mso-spacerun: yes">=A0=A0 </span>Add the following =
Object/library module in
the mapserv exe project=92s link dialog:</p>
<p class=3DMsoBodyTextIndent2>C:\programs\PostgreSQL\lib\libpq.lib<span
style=3D'font-family:"Times New Roman"'> (or where ever you=92ve =
installed
PostgreSQL)<o:p></o:p></span></p>
<p> </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Do
a <span style=3D'font-family:"Courier New"'>mapserv =96v</span>. =
You should
see <span style=3D'font-family:"Courier New"'>INPUT=3DPOSTGIS</span> =
included in
the capabilities list.</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> To
access data stored in PostGIS, add a layer to your map file using the =
following
example as a guide:</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
CONNECTIONTYPE postgis </p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
CONNECTION "user=3Dmyaccount password=3Dmypass dbname=3Dmydb
host=3Dwww.myserver.com"</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> =
DATA "alberta from (select name from cities where province =
like
'Alberta') as foo using unique city_id using SRID=3D-1"</p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></p>
<h3 style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l9 level1 =
lfo28;
tab-stops:list .5in'><![if !supportLists]>3.<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>Adding WMS Server Capabilities <this section is =
under
construction></h3>
<h5>Building the dependencies<span =
style=3D'font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><o:p></o:p></span></h5>
<p class=3DMsoNormal =
style=3D'margin-left:.75in;text-indent:-.25in;mso-list:l14 level1 lfo30;
tab-stops:list .75in'><![if !supportLists]><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-bidi-font-family:"Times New Roman"'>1.<span
style=3D'font:7.0pt "Times New Roman"'> =
</span></span><![endif]><u>Building
"zlib"</u><u><span =
style=3D'font-size:10.0pt;font-family:Arial;
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></u></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- create a <span =
style=3D'font-family:
"Courier New"'>zlib-1.1.4 </span><span =
style=3D'mso-bidi-font-family:Arial'>dir</span>
into your =93nightly build=94 (eg 20030202) dir<span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- download zlib from <a
href=3D"http://www.gzip.org/zlib">http://www.gzip.org/zlib</a> into your =
new zlib
dir<span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:"Times =
New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- unpack<span =
style=3D'font-size:
10.0pt;font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- copy makfile.nt and =
zlib.dnt
from zlib=92s nt dir up one level to the zlib dir<span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- from the command =
line, execute
the following:<span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>vcvars32</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>nmake
/f makefile.nt</span><span style=3D'font-size:10.0pt;font-family:Arial;
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'margin-left:.75in;text-indent:-.25in;mso-list:l14 level1 lfo30;
tab-stops:list .75in'><![if !supportLists]><span =
style=3D'font-size:10.0pt;
font-family:Arial;mso-bidi-font-family:"Times New Roman"'>2.<span
style=3D'font:7.0pt "Times New Roman"'> =
</span></span><![endif]><u>Building
"libcurl"</u><u><span =
style=3D'font-size:10.0pt;font-family:Arial;
mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></u></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- download libcurl from =
<a
href=3D"http://curl.haxx.se/download.html">http://curl.haxx.se/download.h=
tml</a>
(the zip package) into your =93nightly build=94 (eg 20030202) dir<span
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:"Times =
New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- unpack<span =
style=3D'font-size:
10.0pt;font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- cd to the libcurl =
directory<span
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:"Times =
New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- from the command =
line, execute
the following:<span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>vcvars32</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>nmake
vc</span><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.0in'>- really only the =
library needs to
be made (the above builds the library and curl.exe).<span =
style=3D"mso-spacerun:
yes">=A0 </span>If you want to build only the library, cd to the lib dir =
and do:<span
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:"Times =
New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>vcvars32</span><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:1.5in'><span =
style=3D'font-family:"Courier New"'>nmake
-f Makefile.vc6 CFG=3Ddebug-dll</span><span =
style=3D'font-size:10.0pt;font-family:
Arial;mso-bidi-font-family:"Times New Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'mso-tab-count:2'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 </span>(requires
ws2_32.lib to be linked in)</p>
<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>Add =
the
following preprocesser directive to the mapserver and mapserv =
projects:<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><span
style=3D'font-family:"Courier New"'>, USE_WMS_SVR</span><span =
style=3D'font-size:
10.0pt;font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></p>
<h3 style=3D'margin-left:.5in;text-indent:-.25in;mso-list:l9 level1 =
lfo28;
tab-stops:list .5in'><![if !supportLists]>4.<span style=3D'font:7.0pt =
"Times New Roman"'>
</span><![endif]>Adding WFS Server Capabilities <this section is =
under
construction></h3>
<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:Arial;mso-bidi-font-family:
"Times New Roman"'><span =
style=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </span>Add =
the
following preprocesser directive to the mapserver and mapserv =
projects:<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'margin-left:.5in;text-indent:.5in'><span
style=3D'font-family:"Courier New"'>, USE_WFS_SVR</span><span =
style=3D'font-size:
10.0pt;font-family:Arial;mso-bidi-font-family:"Times New =
Roman"'><o:p></o:p></span></p>
<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></p>
</div>
</body>
</html>
------=_NextPart_000_1EA2_01C4069C.33273990--
More information about the MapServer-users
mailing list