[Mapserver-users] Mapserver 3.7dev win32 isues

Pedro Duarte pnduarte at mail.telepac.pt
Thu Jan 23 06:10:07 PST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C2C2E9.224CEB30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm compiling mapserver on win32 and found the following isues:
- mapparser.h is not being created (already posted here)
added the following to makefile.vc
LEX =3D flex
YACC =3D bison
....
mapparser.c: mapparser.y
 $(YACC) -p msyy -d -omapparser.c mapparser.y

- after adding postgis support got the following error
   Creating library mapserv.lib and object mapserv.exp
mapserver.lib(mappostgis.obj) : error LNK2001: unresolved external =
symbol _rindex
mapserv.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

after changing postgis.c line 322
  //pos_paren =3D strstr(pos_ftab, ")"); // Closing paren of clause
  pos_paren =3D rindex(pos_ftab,')');

to=20

  pos_paren =3D strstr(pos_ftab, ")"); // Closing paren of clause
//  pos_paren =3D rindex(pos_ftab,')');

it works


- shp2img -o xx.png parameter doesn't create any file, but shp2img > =
xx.png works


- When compiling mapscript java i get
   Creating library mapscript.lib and object mapscript.exp
mapscript_wrap.obj : error LNK2001: unresolved external symbol =
_msConstrainRect
mapscript_wrap.obj : error LNK2001: unresolved external symbol =
_msAddColor
mapscript_wrap.obj : error LNK2001: unresolved external symbol =
_msLoadPalette
mapscript.dll : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

and=20

outputFormatObj.java:125: setExtension(java.lang.String) is already =
defined in e
du.umn.gis.mapscript.outputFormatObj
  public void setExtension(String extension) {
              ^
outputFormatObj.java:129: setMimetype(java.lang.String) is already =
defined in ed
u.umn.gis.mapscript.outputFormatObj
  public void setMimetype(String mimetype) {
              ^
2 errors

Please send some comments and make the updates if possible

Pedro Duarte

------=_NextPart_000_0004_01C2C2E9.224CEB30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I'm compiling mapserver on win32 and =
found the=20
following isues:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- mapparser.h is not being created =
(already posted=20
here)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>added the following to =
makefile.vc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>LEX =3D flex<BR>YACC =3D =
bison<BR>....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mapparser.c: =
mapparser.y<BR> $(YACC) -p msyy=20
-d -omapparser.c mapparser.y</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>- after adding postgis support got the =
following=20
error</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>   Creating library =
mapserv.lib and=20
object mapserv.exp<BR>mapserver.lib(mappostgis.obj) : error LNK2001: =
unresolved=20
external symbol _rindex<BR>mapserv.exe : fatal error LNK1120: 1 =
unresolved=20
externals<BR>NMAKE : fatal error U1077: 'link' : return code=20
'0x460'<BR>Stop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>after changing postgis.c line =
322</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>  //pos_paren =3D =
strstr(pos_ftab, ")"); //=20
Closing paren of clause<BR>  pos_paren =3D=20
rindex(pos_ftab,')');</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>to </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>  pos_paren =3D =
strstr(pos_ftab, ")"); //=20
Closing paren of clause<BR>//  pos_paren =3D=20
rindex(pos_ftab,')');<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it works</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>- shp2img -o xx.png parameter doesn't =
create any=20
file, but shp2img > xx.png works</DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2>- When compiling mapscript java i =
get</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>   Creating library =
mapscript.lib and=20
object mapscript.exp<BR>mapscript_wrap.obj : error LNK2001: unresolved =
external=20
symbol _msConstrainRect<BR>mapscript_wrap.obj : error LNK2001: =
unresolved=20
external symbol _msAddColor<BR>mapscript_wrap.obj : error LNK2001: =
unresolved=20
external symbol _msLoadPalette<BR>mapscript.dll : fatal error LNK1120: 3 =

unresolved externals<BR>NMAKE : fatal error U1077: 'link' : return code=20
'0x460'<BR>Stop.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>and </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>outputFormatObj.java:125:=20
setExtension(java.lang.String) is already defined in=20
e<BR>du.umn.gis.mapscript.outputFormatObj<BR>  public void=20
setExtension(String extension)=20
{<BR>           &n=
bsp; =20
^<BR>outputFormatObj.java:129: setMimetype(java.lang.String) is already =
defined=20
in ed<BR>u.umn.gis.mapscript.outputFormatObj<BR>  public void=20
setMimetype(String mimetype)=20
{<BR>           &n=
bsp; =20
^<BR>2 errors</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Please send some comments and make the =
updates if=20
possible</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Pedro Duarte</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01C2C2E9.224CEB30--




More information about the MapServer-users mailing list