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>&gt;<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 &quot;nmake /f <a href="http://makefile.vc">makefile.vc</a> install&quot; 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> &lt;<a href="mailto:hobu@iastate.edu">hobu@iastate.edu
</a>&gt; 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&nbsp;&nbsp;The buildkit on <a href="http://hobu.stat.iastate.edu">hobu.stat.iastate.edu</a> is *specifically*<br>for MSVC 2003.&nbsp;&nbsp;This is because all of the &quot;support&quot; libraries have<br>been compiled for you.&nbsp;&nbsp;For example, in your pasted output, it is
<br>complaining about linkage errors with GEOS.&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;Maybe someday, when I get MSVC 2005, I<br>will roll out a buildkit for that as well.&nbsp;&nbsp;In the interim, you are
<br>probably best off by downloading everything you need as source and<br>building it all up individually.&nbsp;&nbsp;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>&gt;hi there,<br>&gt;<br>&gt;been pasted this message in MapServer mailing list, but I realized
<br>&gt;that it may be better if I paste it here, since it's GDAL problem.<br>&gt;Sorry for the duplicated message.<br>&gt;<br>&gt;I am trying to compile GDAL with VS2005, but there are&nbsp;&nbsp;a lot of<br>&gt;error messages after the namake /f &lt;
<a href="http://makefile.vc">http://makefile.vc</a>&gt;<a href="http://makefile.vc">makefile.vc</a><br>&gt;command. Here is what I have done:<br>&gt;<br>&gt;1.source code download: -- the MapServer BuildKit from Howard Butler
<br>&gt;<br>&gt;&lt;<a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/</a>&gt;<a href="http://hobu.stat.iastate.edu/mapserver/build_output/">http://hobu.stat.iastate.edu/mapserver/build_output/
</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;and I have downloaded the latest package version<br>&gt; &quot;mapserver-4.8.3-2-msvc71-buildk-kit.zip&quot;<br>&gt;2.and I follow the compilation guide here:<br>&gt;<br>&gt;&lt;<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>&gt;<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>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;to compile MapServer, according to this doc, I should at first<br>&gt; compile the GDAL package, and then come to the MapServer package.<br>&gt; But when I am trying to compile the GDAL<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;package under VS2005 command prompt with the command &quot;nmake /f
<br>&gt; &lt;<a href="http://makefile.vc/">http://makefile.vc/</a>&gt;<a href="http://makefile.vc">makefile.vc</a>&quot;, there are some error messages<br>&gt; appears, the scenario is:<br>&gt;********************************
<br>&gt;*C:\buildkit\gdal-1.3.2&gt;nmake /f &lt;<a href="http://makefile.vc/">http://makefile.vc/</a>&gt;<a href="http://makefile.vc">makefile.vc</a> clean<br>&gt;*C:\buildkit\gdal-1.3.2&gt;nmake /f &lt;<a href="http://makefile.vc/">
http://makefile.vc/</a>&gt;<a href="http://makefile.vc">makefile.vc</a><br>&gt;*<br>&gt;*<br>&gt;*<br>&gt;*and here come the error messages, I paste only the first one here,<br>&gt;because I think if I fix this problem, the other error may be fixed
<br>&gt;at the same time:<br>&gt;*<br>&gt;*msvcprt.lib(MSVCP80.dll) : error LNK2005: &quot;class<br>&gt;std::basic_string&lt;char,struct s<br>&gt;*td::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl<br>
&gt;std::operator+&lt;char,s<br>&gt;*truct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(class<br>&gt;std::basic_strin<br>&gt;*g&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;
<br>&gt;const &amp;,char c<br>&gt;*onst *)&quot;<br>&gt;(&lt;<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4867349&amp;i=0">http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4867349&amp;i=0
</a>&gt;<br>&gt;??$?HDU?$char_traits@...*<br>&gt;*&lt;<a href="http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4867349&amp;i=1">http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4867349&amp;i=1</a>&gt;*@...)
<br>&gt;already defined in geos<br>&gt;*.lib(WKTReader.obj)<br>&gt;*<br>&gt;*********************************<br>&gt;I am really confused now, i am just wondering if GDAL can be<br>&gt;compiled with VS2005, or it can only be compiled with VC ++ 6?
<br>&gt;<br>&gt;thanks for any information.<br>&gt;<br>&gt;zhonghai<br>&gt;_______________________________________________<br>&gt;Gdal-dev mailing list<br>&gt;<a href="mailto:Gdal-dev@lists.maptools.org">Gdal-dev@lists.maptools.org
</a><br>&gt;<a href="http://lists.maptools.org/mailman/listinfo/gdal-dev">http://lists.maptools.org/mailman/listinfo/gdal-dev</a><br><br></blockquote></div><br>