Hi Howard,<br><br>thanks you so much for the important HINTS.<br><br>so you mean that I must compile all the needed libraries in the BuildKit package myself with VS2005? Is this compilation guide still valid for the whole compilation?
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024" target="_blank">http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024
</a>><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024" target="_blank">http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024.
</a><br><br>so the steps may be:<br>1. compile the required libraries for GDAL (according to the component that I need)<br>2. compile GDAL<br>3. compile the required libraries for MapServer<br>4. compile MapServer<br><br>
and here is the last question^_^:<br>what does the command "nmake /f <a href="http://makefile.vc">makefile.vc</a> install" mean? for this command which parameters in the nmake.opt file should be set correctly?<br>
<br>I really appreciate your help.<br><br>best regards<br><br>zhonghai<br><br><div><span class="gmail_quote">On 6/14/06, <b class="gmail_sendername">Howard Butler</b> <<a href="mailto:hobu@iastate.edu">hobu@iastate.edu
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Zhonghai,<br><br>Yes GDAL can be compiled with MSVC 6, MSVC 2003, and MSVC 2005 --
<br>from scratch The buildkit on <a href="http://hobu.stat.iastate.edu">hobu.stat.iastate.edu</a> is *specifically*<br>for MSVC 2003. This is because all of the "support" libraries have<br>been compiled for you. For example, in your pasted output, it is
<br>complaining about linkage errors with GEOS. This is because GEOS was<br>compiled with MSVC 2003, and the two C++ runtimes (MSVC 2003 (7.1)<br>and MSVC 2005 (8.0)) are incompatible. To successfully use the<br>buildkit, you would have to recompile *every* library that
<br>MapServer/GDAL brings in with MSVC 2005.<br><br>The buildkit is not of much use if you have to recompile everything<br>for your compiler platform. Maybe someday, when I get MSVC 2005, I<br>will roll out a buildkit for that as well. In the interim, you are
<br>probably best off by downloading everything you need as source and<br>building it all up individually. Alternatively, you could switch to<br>MSVC 2003 and use the buildkit, or start with the buildkit and go in<br>and recompile each and every support library that you plan to
<br>link/use with MapServer/GDAL and MSVC 2005.<br><br>Howard<br><br><br><br><br>At 03:04 PM 6/14/2006, Zhonghai Wang wrote:<br>>hi there,<br>><br>>been pasted this message in MapServer mailing list, but I realized
<br>>that it may be better if I paste it here, since it's GDAL problem.<br>>Sorry for the duplicated message.<br>><br>>I am trying to compile GDAL with VS2005, but there are a lot of<br>>error messages after the namake /f <
<a href="http://makefile.vc">http://makefile.vc</a>><a href="http://makefile.vc">makefile.vc</a><br>>command. Here is what I have done:<br>><br>>1.source code download: -- the MapServer BuildKit from Howard Butler
<br>><br>><<a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/</a>><a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/
</a><br>> and I have downloaded the latest package version<br>> "mapserver-4.8.3-2-msvc71-buildk-kit.zip"<br>>2.and I follow the compilation guide here:<br>><br>><<a href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024">
http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024</a>><a href="http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024">http://www.nabble.com/Windows-build-kit-for-MSVC-7.1-t1143108.html#a2997024
</a><br>><br>> to compile MapServer, according to this doc, I should at first<br>> compile the GDAL package, and then come to the MapServer package.<br>> But when I am trying to compile the GDAL<br>> package under VS2005 command prompt with the command "nmake /f
<br>> <<a href="http://makefile.vc/">http://makefile.vc/</a>><a href="http://makefile.vc">makefile.vc</a>", there are some error messages<br>> appears, the scenario is:<br>>********************************
<br>>*C:\buildkit\gdal-1.3.2>nmake /f <<a href="http://makefile.vc/">http://makefile.vc/</a>><a href="http://makefile.vc">makefile.vc</a> clean<br>>*C:\buildkit\gdal-1.3.2>nmake /f <<a href="http://makefile.vc/">
http://makefile.vc/</a>><a href="http://makefile.vc">makefile.vc</a><br>>*<br>>*<br>>*<br>>*and here come the error messages, I paste only the first one here,<br>>because I think if I fix this problem, the other error may be fixed
<br>>at the same time:<br>>*<br>>*msvcprt.lib(MSVCP80.dll) : error LNK2005: "class<br>>std::basic_string<char,struct s<br>>*td::char_traits<char>,class std::allocator<char> > __cdecl<br>
>std::operator+<char,s<br>>*truct std::char_traits<char>,class std::allocator<char> >(class<br>>std::basic_strin<br>>*g<char,struct std::char_traits<char>,class std::allocator<char> >
<br>>const &,char c<br>>*onst *)"<br>>(<<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=0">http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=0
</a>><br>>??$?HDU?$char_traits@...*<br>>*<<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=1">http://www.nabble.com/user/SendEmail.jtp?type=post&post=4867349&i=1</a>>*@...)
<br>>already defined in geos<br>>*.lib(WKTReader.obj)<br>>*<br>>*********************************<br>>I am really confused now, i am just wondering if GDAL can be<br>>compiled with VS2005, or it can only be compiled with VC ++ 6?
<br>><br>>thanks for any information.<br>><br>>zhonghai<br>>_______________________________________________<br>>Gdal-dev mailing list<br>><a href="mailto:Gdal-dev@lists.maptools.org">Gdal-dev@lists.maptools.org
</a><br>><a href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev</a><br><br></blockquote></div><br>