[Mapserver-users] Compiling PHP_MapScript.dll
Mike Leahy
mgleahy at fes.uwaterloo.ca
Fri Dec 12 13:54:19 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0003_01C3C0D0.95FF6860
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello all,
=20
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). =20
=20
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:
=20
./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
=20
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". =20
=20
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.
=20
Thanks,
Mike
------=_NextPart_000_0003_01C3C0D0.95FF6860
Content-Type: text/html;
charset="us-ascii"
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>
<!--
/* 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;}
@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-CA link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello all,</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
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><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
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><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
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><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
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><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
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><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Mike</span></font></p>
</div>
</body>
</html>
------=_NextPart_000_0003_01C3C0D0.95FF6860--
More information about the MapServer-users
mailing list