[Mapserver-users] Compiling PHP_MapScript.dll
Mike Leahy
mgleahy at fes.uwaterloo.ca
Sat Dec 13 09:06:55 PST 2003
Rebecca,
Thanks for the help, although I've actually already got those binaries. They
work fine for me with the exception of the PostGIS driver which returns errors
when querying PostGIS layers. Someone has posted a copy of the mappostgis.c
with a fix in it on the PostGIS users list, so in order use it I had to either
wait for new binaries to be compiled with this fixed driver, or get mapserver
to compile myself.
Although I got the exe's to compile, I'm still missing the MapScript DLL, plus
I'm also missing some of the other DLLs that usually included with the usual
binary distribution. I can still use the old DLLs I guess, but I doubt I
won't run into problems later on if they're not the right versions...
Mike
Quoting "Astolfo,Rebecca [Burlington]" <Rebecca.Astolfo at ec.gc.ca>:
> 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
>
>
----------------------------------------
This mail sent through www.mywaterloo.ca
More information about the MapServer-users
mailing list