Finally compiled my MapServer 4.2.3, but got error when using it as cgi app.
Jingyu Bai
baijingyu at HOTMAIL.COM
Sat Sep 18 09:13:59 PDT 2004
Hi, thanks for the help from this forum and after reading most useful posts
in forum I can finally compiled the map server in MT option which is using
LIBCMT.LIB in VC 6++ under XP. The mapserv.exe file size is much bigger
than the mapserver distribution version (mine is 369k). I used DOS command
line >mapserv -v and got:
D:\Projects\mapserver-4.2.3>mapserv -v
MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=JPEG INPUT=ORACLESPATIAL
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
This means I at least compiled the Map server but when I put this exe file
in apache cgi-bin folder and trying to test it from web using
http://localhost/cgi-bin/mapserv.exe?map=D:\Projects\mapserver-4.2.0-
distribution\httpdoc\data\example1-1.map&mode=map
I got a Microsoft popup fatal error window and ask me if I want to send
"mapserv.exe has encountered a problem and needs to close. We are sorry
for the inconvenience." ...
If I only use
http://localhost/cgi-bin/mapserv.exe without paramters, I wouldn't get
microsoft error window instead I got a msg in my IE browser saying
"No query information to decode. QUERY_STRING is set, but empty. "
If I use Map Server binary distribution mapserv.exe and I wouldn't get
above error.
I got Map Server compiled by reading all helpful post here but why I still
get the error when trying to use it as a cgi script ???!!! Is this related
to the option I used to compile GDAL and mapserver? if so could somebody
send me your working windows VC version of GDAL namke.opt file and
mapserver makefile.vc to me? Please help me. Thanks
More information about the MapServer-users
mailing list