Compile MapSevrer with VS2005 (MapServer BuiltKit source code)

Zhonghai Wang zhonghaiw at GMAIL.COM
Wed Jun 14 11:28:06 EDT 2006


hi guys,

I am trying to compile MapServer with VS2005 now, and I've struggle with it
for almost one day, but I am still in the dark...the following is done for
the compilation, and any ideas from you will be so helpful.

1.source code download: -- the MapServer BuildKit from Howard Butler
   http://hobu.stat.iastate.edu/mapserver/build_output/
   and I have downloaded the latest package version "
mapserver-4.8.3-2-msvc71-buildk-kit.zip"
2.and I follow the compilation guide here:

http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024
   to compile MapServer, according to this doc, I should at first compile
the GDAL package, and then come to the MapServer package. But when I am
trying to compile the GDAL
   package under VS2005 command prompt with the command "nmake /f
makefile.vc", there are some error messages appears, the scenario is:
********************************
*C:\buildkit\gdal-1.3.2>nmake /f makefile.vc clean
*C:\buildkit\gdal-1.3.2>nmake /f makefile.vc
*
*
*
*and here come the error messages, I paste only the first one here, because
I think if I fix this problem, the other error may be fixed at the same
time:
*
*msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
std::basic_string<char,struct s
*td::char_traits<char>,class std::allocator<char> > __cdecl
std::operator+<char,s
*truct std::char_traits<char>,class std::allocator<char> >(class
std::basic_strin
*g<char,struct std::char_traits<char>,class std::allocator<char> > const
&,char c
*onst *)" (
??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_string*
*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z<*@DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z>)
already defined in geos
*.lib(WKTReader.obj)
*
*********************************

Because I want to use CSharp/MapScript under the .NET FW 2.0, and I've also
got some info from the Doc:
http://mapserver.gis.umn.edu/docs/howto/mapscriptcscompile, it says that I
should compile MapServer and the related libraries using VS2005 for .NET FW
2.0, I begin with the VS2005 command prompt instead of following the
compilation guide in the mapserver README.WIN32, which gives:
***

To build the package using the Makefile.vc and NMAKE:

 - Edit nmake.opt to select (or deselect) optional components of
   the MapServer.  Please read the notes below about each component
   before you move ahead with the compilation.

 - Open a DOS prompt window

 - Run the VCVARS32.BAT script to initialize the VC++ environment
   variables.  VCVARS32.BAT is automatically generated by the MSVC++
   install procedure and should be located in the BIN sub-directory of
   your MSVC++ installation.

 - Then start the build with:
     nmake /f Makefile.vc

This will create "mapserv.exe" (the main MapServer CGI program), the
other command-line utilities, "mapserver.lib" and "libmap.dll" that is
used by theMapScript modules.

***

I am now just wondering if it's possible to compile MapServer and related
libraries with VS2005, since the MSVCP80.dll can always not be found. Did
anyone have some experiences about that?

I would really appreciate it if you give me some HINTS for my compilation.

zhonghai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060614/a8d30ce5/attachment.html


More information about the mapserver-users mailing list