Mapserver and Ming compilation

Sture Dingsøyr candalt at ONLINE.NO
Sun Feb 26 05:02:24 EST 2006


Hello everybody

I am compiling Mapserver 4.8.1 on Windows, and have some problem with the Ming library.

Before i try to compile Ming this is my mapserv.exe -v output:

MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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

I downloaded the ming-0.2a from (http://dl.maptools.org/dl/) that is ready to be compiled with Windows and nmake. After running nmake /f makefile.vc i successfully got a libming.lib library.

But when i try to compile Mapserver with this ming library i get the following (this is the last part of my output):

if exist c:\mapserver\gdal-1.3.1\gdal.pdb copy c:\mapserver\gdal-1.3.1\gdal.pdb .
1 file(s) copied.
lib /out:mapserver.lib mapbits.obj maphash.obj mapshape.obj mapxbase.obj  mapparser.obj maplexer.obj maptree.obj  mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj  maplegend.obj maputil.obj mapscale.obj mapquery.obj  maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj  maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj  mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj  mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj  mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj  mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj  mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj  mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj  classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj  mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj  c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5.1.2\regex\regerror.obj  c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj
Microsoft (R) Library Manager Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

link /dll /debug  mapbits.obj maphash.obj mapshape.obj mapxbase.obj  mapparser.obj maplexer.obj maptree.obj  mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj  maplegend.obj maputil.obj mapscale.obj mapquery.obj  maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj  maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj  mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj  mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj  mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj  mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj  mapmygis.obj mapimagemap.obj mapcopy.obj maprasterquery.obj  mapogcfilter.obj mapogcsld.obj mapthread.obj mapobject.obj  classobject.obj layerobject.obj mapwcs.obj mapgeos.obj strptime.obj  mapcpl.obj mapio.obj mappool.obj mapsvg.obj mapregex.obj mappluginlayer.obj  c:\mapserver\php-5.1.2\regex\regcomp.obj c:\mapserver\php-5.1.2\regex\regerror.obj  c:\mapserver\php-5.1.2\regex\regexec.obj c:\mapserver\php-5.1.2\regex\regfree.obj c:/mapserver/gdwin32/bgd.lib  C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib    C:/mapserver/gdal-1.3.1/frmts/jpeg/libjpeg/libjpeg.lib  c:\mapserver\proj-4.4.9/src/proj_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:\mapserver\gdal-1.3.1/gdal_i.lib c:/mapserver/curl-7.15.1/lib/libcurl.lib  C:\Mapserver\ming-0.2a/src/libming.lib C:\Mapserver\PDFlib-Lite-6.0.2\libs/pdflib/pdflib.lib  "C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib\WSOCK32.LIB" C:\mapserver\postgresql-8.1.3\src/interfaces/libpq/libpqdll.lib        /def:mapserver.def  /out:libmap.dll /implib:mapserver_i.lib
Microsoft (R) Incremental Linker Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in MSVCRT.lib(MSVCR70.dll)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in MSVCRT.lib(cinitexe.obj)
LIBC.lib(atox.obj) : error LNK2005: _atoi already defined in MSVCRT.lib(MSVCR70.dll)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: __strdup already defined in LIBC.lib(strdup.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: __fileno already defined in LIBC.lib(fileno.obj)
MSVCRT.lib(MSVCR70.dll) : error LNK2005: __getpid already defined in LIBC.lib(getpid.obj)
LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in MSVCRT.lib(cinitexe.obj); second definition ignored
LIBC.lib(atox.obj) : warning LNK4006: _atoi already defined in MSVCRT.lib(MSVCR70.dll); second definition ignored
MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __strdup already defined in LIBC.lib(strdup.obj); second definition ignored
MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __fileno already defined in LIBC.lib(fileno.obj); second definition ignored
MSVCRT.lib(MSVCR70.dll) : warning LNK4006: __getpid already defined in LIBC.lib(getpid.obj); second definition ignored
   Creating library mapserver_i.lib and object mapserver_i.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
mapswf.obj : error LNK2019: unresolved external symbol _compress2 referenced in function _bitmap2dbl
libmap.dll : fatal error LNK1120: 1 unresolved externals

Anybody got any ide what the problem is?

I am using Visual Studio .NET (version 7)


Regards
Sture


More information about the mapserver-users mailing list