[Mapserver-users] RE: Compiling PHP_MapScript.dll

Mike Leahy mgleahy at fes.uwaterloo.ca
Wed Jan 14 13:43:23 PST 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C3DABD.8A62C9F0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello all,

=20

I'm still stuck at this point.  I'm just wondering if anyone has been =
able
to successfully compile both mapserver and the php_mapscript.dll in the
cygwin environment, and if so, what was done to create the mapscript =
DLLs.
I don't get any errors when the make process runs for mapscript, it just
doesn't create any DLLs.  Is there a configuration setting I've =
overlooked,
or is there a way I can use the php_mapscript.o and php_proj.o files to
create DLLs?

=20

Many thanks,

Mike

=20

=20

=20

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

=20

-->=20

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_0001_01C3DABD.8A62C9F0
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>
<!--
 /* 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:navy;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<DEFANGED_META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><DEFANGED_meta name=3DGenerator content=3D"Microsoft =
Word 10 (filtered)"><!-- <DEFANGED_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;}
--></DEFANGED_STYLE>
</head>

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

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hello all,</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'>I’m still stuck at this =
point. 
I’m just wondering if anyone has been able to successfully compile =
both mapserver
and the php_mapscript.dll in the cygwin environment, and if so, what was =
done to
create the mapscript DLLs.  I don’t get any errors when the =
make
process runs for mapscript, it just doesn’t create any DLLs.  =
Is
there a configuration setting I’ve overlooked, or is there a way I =
can
use the php_mapscript.o and php_proj.o files to create =
DLLs?</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'>Many thanks,</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'>Mike</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><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
lang=3DEN-US 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> December 12, 2003 =
4:54 PM<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> 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=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>--> =
</span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:36.0pt'><font size=3D2 =
face=3DArial><span
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
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
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
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
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
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
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
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
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
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
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
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
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
style=3D'font-size:10.0pt;font-family:Arial'>Mike</span></font></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_0001_01C3DABD.8A62C9F0--




More information about the MapServer-users mailing list