Mapscript compilation on Windows
Sture Dingsøyr
candalt at ONLINE.NO
Wed Nov 23 03:16:20 PST 2005
Hi again...
Thanx for quick response...with the help of your answer...i solved the problem :-)
When i build the binary i did this serveral times, and each time i added some functionality..eg. WMS, PROJ, POSTGIS just to confirm that things worked.
In the mapserver directory a libmap.dll is created along with mapserv.exe.
When i had compiled mapscript and copied the php_mapscript.dll to the c:\php\ext catalog i forgot to also copy the libmap.dll to c:\php (i have c:\php in my PATH variable).
Once i did this <? phpinfo ?> now outputs "INPUT=POSTGIS" and everything works great...
Thanx again :-)
Best regards
Sture
The php mapscript would not indicate that. I does not indicate any
supported formats. If your php mapscript is linked with a mapserver
library built with Postgis, then you should have it. The best thing is
to open a simple map file with a postgis layer using mapscript.
Later,
Sture Dingsoyr wrote:
> Hi
>
> I have compiled Mapserver on my windows machine with these options:
>
> This is the output from my "mapserv.exe -v"
>
> MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> INPUT=SHAPEFILE DEBUG=MSDEBUG
>
>
> Here POSTGIS is enabled so everything looks fine. I then want to compile
> MAPSCRIPT. This also works fine..and i get the "php_mapscript.dll" that
> also works fine in PHP.
>
> When i do a <? phpinfo ?> i get:
> MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
> SUPPORTS=WCS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> DEBUG=MSDEBUG
>
>
> My problem is that the "php_mapscript.dll" do not says it supports
> POSTGIS. (look at the <? phpinfo ?> result above).
>
> Anybody have any ideas...
>
> The reason i am compiling is that i need a mapserver that supports both
> POSTGIS and ORACLE SDE in MAPSCRIPT.
>
> All help appriciated :-)
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list