[Mapserver-users] Compiling PHP_MapScript.dll

Astolfo,Rebecca [Burlington] Rebecca.Astolfo at ec.gc.ca
Fri Dec 12 14:59:32 PST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3C103.9B354C90
Content-Type: text/plain

Hi,

 

I'm struggling through the installation too.  We are installing it on a
WinXP machine with IIS5.1.  I'm not sure if I understand exactly why you're
going the compiling route so ignore this if I've missed the intention.  

 

Try this file mapserver-4.0.1-win32-php4.3.3.zip
<http://www2.dmsolutions.ca/webtools/dl/mapserver-4.0.1-win32-php4.3.3.zip>
found at this site http://www2.dmsolutions.ca/webtools/dl/
<http://www2.dmsolutions.ca/webtools/dl/>  and you should not need to
compile anything for MapServer on Windows using IIS.  The
PHP_MapScript_4.0.1.dll is in this zipped file.

 

Good luck.  We're still plugging away ourselves.

Rebecca

 

 

-----Original Message-----
From: Mike Leahy [mailto:mgleahy at fes.uwaterloo.ca] 
Sent: December 12, 2003 4:54 PM
To: mapserver-users at lists.gis.umn.edu
Cc: mgleahy at fes.uwaterloo.ca
Subject: [Mapserver-users] Compiling PHP_MapScript.dll

 

Hello all,

 

I've gone through a lengthy process today of downloading all the necessary
components to compile MapServer 4.0.1 with PHP MapScript in Cygwin/WinXP.
To my surprise, I actually got it to work - not that there's a problem with
the MapServer code, I'm just not usually this lucky on my own with such a
complicated procedure.  My objective in this case was to get to a point
where I could use the fixed mappostgis.c that won't return PostgreSQL error
messages with the QueryByRect function called when identifying features on a
map (which I will be trying next).  

 

At any rate, the only thing I'm still lacking is the DLL for MapScript.  It
seems that while there are php_mapscript.o and php_mapscript_util.o files
created from the make process, I don't have any evidence of a DLL anyhere.
Looking at the makefile in the mapscript/php3 folder in the mapserver
source, it looks like it is supposed to create a php_mapscript.so file...and
while that is not what I want to get (since I'm running windows), this *.so
file does not exist anywhere either.  Basically, the last thing I did was
configure MapServer with the following options:

 

./configure --with-jpeg --with-gd=/usr --with-freetype=/usr --with-zlib=/usr
--with-png=/usr --with-pdf=/usr --with-tiff=/usr --without-eppl
--with-proj=/usr --with-ogr=/usr/bin/gdal-config
--with-gdal=/usr/bin/gdal-config --with-postgis=/usr/bin/pg_config
--with-wfs --with-wmsclient --with-wfsclient
--with-curl-config=/usr/bin/curl-config --disable-ignore-missing-data
--with-php=/usr/src/php-4.3.4

 

Then I ran MAKE, and after re-configuring/compiling PHP a couple times, it
worked.  The configuration I used for compiling PHP was "./configure
--prefix=/usr --with-regex=system".  

 

Can anyone suggest what extra steps and/or modifications I should make in
order to get the PHP_MapScript.dll compiled?  For now, I can still use the
PHP_MapScript.dll that comes with the binaries, but I'm worried this might
cause problems later on, since the MapScript/MapServer versions may not
match-up exactly.

 

Thanks,

Mike


------_=_NextPart_001_01C3C103.9B354C90
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;
	color:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Hi,</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>I'm struggling through the installation too.  We are
installing it on a WinXP machine with IIS5.1.  I'm not sure if I
understand exactly why you're going the compiling route so ignore this =
if
I've missed the intention.  </span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Try this file <a
href=3D"http://www2.dmsolutions.ca/webtools/dl/mapserver-4.0.1-win32-php=
4.3.3.zip">mapserver-4.0.1-win32-php4.3.3.zip</a> 
 found at this site <a =
href=3D"http://www2.dmsolutions.ca/webtools/dl/">http://www2.dmsolutions=
.ca/webtools/dl/</a>
and you should not need to compile anything for MapServer on Windows =
using IIS. 
The PHP_MapScript_4.0.1.dll is in this zipped file.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Good luck.  We're still plugging away =
ourselves.</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>Rebecca</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Mike Leahy
[mailto:mgleahy at fes.uwaterloo.ca] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> =
</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>December 12,
 2003</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=3D2 face=3DTahoma><span
 style=3D'font-size:10.0pt;font-family:Tahoma'>4:54 =
PM</span></font><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
mapserver-users at lists.gis.umn.edu<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> =
mgleahy at fes.uwaterloo.ca<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
[Mapserver-users]
Compiling PHP_MapScript.dll</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>Hello =
all,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>I've gone =
through a
lengthy process today of downloading all the necessary components to =
compile
MapServer 4.0.1 with PHP MapScript in Cygwin/WinXP.  To my =
surprise, I
actually got it to work - not that there's a problem with the
MapServer code, I'm just not usually this lucky on my own with such a
complicated procedure.  My objective in this case was to get to a =
point
where I could use the fixed mappostgis.c that won't return PostgreSQL
error messages with the QueryByRect function called when identifying =
features
on a map (which I will be trying next).  </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>At any rate, =
the only
thing I'm still lacking is the DLL for MapScript.  It seems that
while there are php_mapscript.o and php_mapscript_util.o files created =
from the
make process, I don't have any evidence of a DLL anyhere.  Looking
at the makefile in the mapscript/php3 folder in the mapserver source, =
it looks
like it is supposed to create a php_mapscript.so file...and while that =
is
not what I want to get (since I'm running windows), this *.so file does
not exist anywhere either.  Basically, the last thing I did was =
configure
MapServer with the following options:</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>./configure =
--with-jpeg
--with-gd=3D/usr --with-freetype=3D/usr --with-zlib=3D/usr =
--with-png=3D/usr
--with-pdf=3D/usr --with-tiff=3D/usr --without-eppl --with-proj=3D/usr
--with-ogr=3D/usr/bin/gdal-config --with-gdal=3D/usr/bin/gdal-config
--with-postgis=3D/usr/bin/pg_config --with-wfs --with-wmsclient =
--with-wfsclient
--with-curl-config=3D/usr/bin/curl-config --disable-ignore-missing-data
--with-php=3D/usr/src/php-4.3.4</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>Then I ran =
MAKE, and
after re-configuring/compiling PHP a couple times, it worked.  The
configuration I used for compiling PHP was "./configure --prefix=3D/usr
--with-regex=3Dsystem".  </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'> </span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'>Can anyone =
suggest what
extra steps and/or modifications I should make in order to get the
PHP_MapScript.dll compiled?  For now, I can still use the
PHP_MapScript.dll that comes with the binaries, but I'm worried this
might cause problems later on, since the MapScript/MapServer versions =
may not
match-up exactly.</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA style=3D'font-size:10.0pt;font-family:Arial'> </span><=
/font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'>Thanks,</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
lang=3DEN-CA =
style=3D'font-size:10.0pt;font-family:Arial'>Mike</span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C3C103.9B354C90--



More information about the MapServer-users mailing list