No subject


Thu Aug 21 14:30:17 EDT 2008


?


On Thu, Oct 9, 2008 at 11:51 AM, Luke Kucalaba <lkucalaba at dsci.com> wrote:

>  Our software team is having problems upgrading to CMake 2.6.2 from our
> current working build system that uses CMake 2.4.7.  In particular, we are
> using the "Visual Studio 7 .NET 2003", "NMake Makefiles", "Unix Makefiles",
> and "CodeBlocks - Unix Makefiles" project/makefile generators.
>
>
>
> The first problem we encountered was with generating "NMake Makefiles".  We
> use the "Microsoft Visual C++ Toolkit 2003" optimizing compiler in
> conjunction with the rest of the Visual Studio 7 .NET 2003 tools (like
> resource compiler and IDE), because we have a license for MSVC 7.1 and for
> the most part it does what we need it to do, and there is no reason for us
> to pay for an upgrade to another IDE or compiler on Windows.  Anyway, that
> being said, I wrote a MSDOS batch script (vctoolkit.bat, attached) that sets
> the appropriate combination of "Visual Studio 7 .NET 2003 Standard" and
> "Visual Studio  .NET Optimizing Toolkit" environment variables, by calling
> vcvars32.bat, and then by manually overriding the PATH,INCLUDE,LIB
> environment variables to point to the optimizing toolkit.  We also
> discovered that in addition to this, we needed to physically move a number
> of files out of the standard .NET bin folder so that the optimizing compiler
> wouldn't try to use those VC7 "standard" runtime files when performing
> multiple compile/link/compile/link steps internally (btw, the conflicting
> bin files we had to move are: c1.dll, c1xx.dll, c2.dll, cl.exe,
> cl.exe.config, link.exe, link.exe.config).  This was a bit challenging to
> set up at first (back when CMake 2.4.7 was released), but now we are
> satisfied that this method of configuring the command-line environment for
> nmake is satisfactory for our purposes and should invoke the optimizing
> compiler when using nmake (from .NET standard).
>
>
>
> I attached to this email a stdout/stderr dump of the cmake trace output.
>
>
>
> N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>cmake --trace -G"NMake Makefiles" ..
> > nmake-gen-trace.log 2>&1
>
>
>
> -------------------------------------------------------
>
>   Generating NMake using CMake 2.6.2 (command-prompt)
>
> -------------------------------------------------------
>
>
>
> N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>vctoolkit
>
> --- Setting Microsoft Visual C++ Toolkit 2003 environment variables... ---
>
> Setting environment for using Microsoft Visual Studio .NET 2003 tools.
>
> (If you have another version of Visual Studio or Visual C++ installed and
> wish
>
> to use its tools from the command line, run vcvars32.bat for that version.)
>
> Done.
>
>
>
> N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>cmake -G "NMake Makefiles" ..
>
> -- The C compiler identification is unknown
>
> -- The CXX compiler identification is unknown
>
> -- Check for CL compiler version
>
> -- Check for CL compiler version - failed
>
> -- Check if this is a free VC compiler
>
> -- Check if this is a free VC compiler - yes
>
> -- Check CL platform
>
> -- Check CL platform - 64 bit
>
> -- Using FREE VC TOOLS, NO DEBUG available
>
> -- Check for working C compiler: cl
>
> CMake Error: your C compiler: "cl" was not found.   Please set
> CMAKE_C_COMPILER to a valid compiler path or name.
>
> CMake Error: Internal CMake error, TryCompile configure of cmake failed
>
> -- Check for working C compiler: cl -- broken
>
> CMake Error at C:/Program Files/CMake
> 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
>
>   The C compiler "cl" is not able to compile a simple test program.
>
>
>
>   It fails with the following output:
>
>
>
>
>
>
>
>
>
>
>
>   CMake will not be able to correctly generate this project.
>
> Call Stack (most recent call first):
>
>   :2308322 (PROJECT)
>
>
>
>
>
> CMake Error: your C compiler: "cl" was not found.   Please set
> CMAKE_C_COMPILER to a valid compiler path or name.
>
> CMake Error: your CXX compiler: "cl" was not found.   Please set
> CMAKE_CXX_COMPILER to a valid compiler path or name.
>
> * Configuring incomplete, errors occurred!
>
>
>
>
>
> We did not encounter any problems like this when building MSVC71 NMake
> makefiles with CMake 2.4.7.  If anyone has any ideas or suggestions, it
> would be greatly appreciated.  I'm pretty much stumped and at this point I
> am willing to try anything to get this to work.  Thanks in advance.
>
>
>
> Sincerely,
>
> Luke
>
>
>
> Luke Kucalaba
>
> Senior Software Engineer
>
> D&S Consultants, Inc
>
> Columbus, Ohio
>
>
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>

------=_Part_128976_17748124.1223568087704
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">From your same command prompt that you ran cmake in (at &quot;<span class="Apple-style-span" style="font-family: Consolas; font-size: 11px; ">N:\dsci\repo\WMI\trunk\wxWMI\src\nmake</span>&quot;) what is the output of:<div>
&nbsp;&nbsp;cl</div><div>&nbsp;&nbsp;where cl</div><div>&nbsp;&nbsp;echo %PATH%<br><br></div><div>?<br></div><div><br></div><div><br><div class="gmail_quote">On Thu, Oct 9, 2008 at 11:51 AM, Luke Kucalaba <span dir="ltr">&lt;<a href="mailto:lkucalaba at dsci.com">lkucalaba at dsci.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">












<div lang="EN-US" link="blue" vlink="purple">

<div>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Our software team is having problems upgrading to CMake
2.6.2 from our current working build system that uses CMake <a href="http://2.4.7." target="_blank">2.4.7.</a>&nbsp; In
particular, we are using the &quot;Visual Studio 7 .NET 2003&quot;, &quot;NMake
Makefiles&quot;, &quot;Unix Makefiles&quot;, and &quot;CodeBlocks - Unix
Makefiles&quot; project/makefile generators.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">The first problem we encountered was with generating
&quot;NMake Makefiles&quot;.&nbsp; We use the &quot;Microsoft Visual C++
Toolkit 2003&quot; optimizing compiler in conjunction with the rest of the
Visual Studio 7 .NET 2003 tools (like resource compiler and IDE), because we
have a license for MSVC 7.1 and for the most part it does what we need it to
do, and there is no reason for us to pay for an upgrade to another IDE or
compiler on Windows.&nbsp; Anyway, that being said, I wrote a MSDOS batch
script (vctoolkit.bat, attached) that sets the appropriate combination of
&quot;Visual Studio 7 .NET 2003 Standard&quot; and &quot;Visual Studio&nbsp;
.NET Optimizing Toolkit&quot; environment variables, by calling vcvars32.bat, and
then by manually overriding the PATH,INCLUDE,LIB environment variables to point
to the optimizing toolkit.&nbsp; We also discovered that in addition to this,
we needed to physically move a number of files out of the standard .NET bin
folder so that the optimizing compiler wouldn&#39;t try to use those VC7
&quot;standard&quot; runtime files when performing multiple
compile/link/compile/link steps internally (btw, the conflicting bin files we
had to move are: c1.dll, c1xx.dll, c2.dll, cl.exe, cl.exe.config, link.exe,
link.exe.config).&nbsp; This was a bit challenging to set up at first (back
when CMake 2.4.7 was released), but now we are satisfied that this method of
configuring the command-line environment for nmake is satisfactory for our
purposes and should invoke the optimizing compiler when using nmake (from .NET
standard).</span></font></p>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">I attached to this email a stdout/stderr dump of the
cmake trace output.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">N:\dsci\repo\WMI\trunk\wxWMI\src\nmake&gt;cmake --trace
-G&quot;NMake Makefiles&quot; .. &gt; nmake-gen-trace.log 2&gt;&amp;1</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-------------------------------------------------------</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp; Generating NMake using CMake 2.6.2
(command-prompt)</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-------------------------------------------------------</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">N:\dsci\repo\WMI\trunk\wxWMI\src\nmake&gt;vctoolkit</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">--- Setting Microsoft Visual C++ Toolkit 2003 environment
variables... ---</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Setting environment for using Microsoft Visual Studio
.NET 2003 tools.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">(If you have another version of Visual Studio or Visual
C++ installed and wish</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">to use its tools from the command line, run vcvars32.bat
for that version.)</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Done.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">N:\dsci\repo\WMI\trunk\wxWMI\src\nmake&gt;cmake -G
&quot;NMake Makefiles&quot; ..</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- The C compiler identification is unknown</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- The CXX compiler identification is unknown</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check for CL compiler version</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check for CL compiler version - failed</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check if this is a free VC compiler</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check if this is a free VC compiler - yes</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check CL platform</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check CL platform - 64 bit</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Using FREE VC TOOLS, NO DEBUG available</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check for working C compiler: cl</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">CMake Error: your C compiler: &quot;cl&quot; was not
found.&nbsp;&nbsp; Please set CMAKE_C_COMPILER to a valid compiler path or
name.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">CMake Error: Internal CMake error, TryCompile configure
of cmake failed</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">-- Check for working C compiler: cl -- broken</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp; The C compiler &quot;cl&quot; is not able to
compile a simple test program.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp; It fails with the following output:</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp; CMake will not be able to correctly generate this
project.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Call Stack (most recent call first):</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp; :2308322 (PROJECT)</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">CMake Error: your C compiler: &quot;cl&quot; was not
found.&nbsp;&nbsp; Please set CMAKE_C_COMPILER to a valid compiler path or
name.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">CMake Error: your CXX compiler: &quot;cl&quot; was not
found.&nbsp;&nbsp; Please set CMAKE_CXX_COMPILER to a valid compiler path or
name.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">* Configuring incomplete, errors occurred!</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">We did not encounter any problems like this when building
MSVC71 NMake makefiles with CMake <a href="http://2.4.7." target="_blank">2.4.7.</a>&nbsp; If anyone has any ideas or
suggestions, it would be greatly appreciated.&nbsp; I'm pretty much
stumped and at this point I am willing to try anything to get this to
work.&nbsp; Thanks in advance.</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Sincerely,</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Luke</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">&nbsp;</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Luke Kucalaba</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Senior Software Engineer</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">D&amp;S Consultants, Inc</span></font></p>

<p><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">Columbus</span></font><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas">, Ohio</span></font><font size="1" face="Consolas"><span style="font-size:8.0pt;font-family:Consolas"></span></font></p>


<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">&nbsp;</span></font></p>

</div>

</div>


<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake at cmake.org">CMake at cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>

------=_Part_128976_17748124.1223568087704--


More information about the CMake mailing list