No subject


Thu Aug 21 14:30:17 EDT 2008


  cl

  where cl

  echo %PATH%

?

=20

=20

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.

=20

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).

=20

I attached to this email a stdout/stderr dump of the cmake trace output.

=20

N:\dsci\repo\WMI\trunk\wxWMI\src\nmake>cmake --trace -G"NMake Makefiles"
.. > nmake-gen-trace.log 2>&1

=20

-------------------------------------------------------

  Generating NMake using CMake 2.6.2 (command-prompt)

-------------------------------------------------------

=20

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.

=20

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.

=20

  It fails with the following output:

=20

=20

=20

=20

=20

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  :2308322 (PROJECT)

=20

=20

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!

=20

=20

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.

=20

Sincerely,

Luke

=20

Luke Kucalaba

Senior Software Engineer

D&S Consultants, Inc

Columbus, Ohio

=20

=20


_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake

=20


------_=_NextPart_001_01C92A28.AF10BB1C
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"State"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"City"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks David for the quick =
response.&nbsp;
Sorry I was having problems with message size, so I couldn&#8217;t =
attach the
files I wanted to originally.&nbsp; I&#8217;ll inline the vctoolkit.bat =
file here,
which is a small DOS script we use to setup the MSVC71 toolkit =
environment:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>@echo =
off<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>if =
&quot;%VCTOOLKIT_VARS_ARE_SET%&quot; =3D=3D
&quot;true&quot; goto done<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>echo --- Setting Microsoft Visual =
C++
Toolkit 2003 environment variables... ---<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>rem Load VC++ 7.1 standard =
environment variables<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>call =
vcvars32.bat<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>rem Prepend VC++ toolkit =
paths<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>set
PATH=3D&quot;%VCToolkitInstallDir%&quot;\bin;%PATH%<o:p></o:p></span></fo=
nt></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>set
INCLUDE=3D&quot;%VCToolkitInstallDir%&quot;\include;%INCLUDE%<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>set
LIB=3D&quot;%VCToolkitInstallDir%&quot;\lib;%LIB%<o:p></o:p></span></font=
></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>set =
VCTOOLKIT_VARS_ARE_SET=3Dtrue<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>echo =
Done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>:done<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>@echo =
on<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Here&#8217;s the output of the =
requested
commands (although &#8220;where&#8221; is not a supported dos prompt =
command in
Windows XP, so I couldn&#8217;t run that =
one):<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>N:\dsci\repo\WMI\trunk\wxWMI\src\nma=
ke&gt;vctoolkit<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>--- Setting Microsoft Visual C++ =
Toolkit
2003 environment variables... ---<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Setting environment for using =
Microsoft
Visual Studio .NET 2003 tools.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>(If you have another version of =
Visual
Studio or Visual C++ installed and wish<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>to use its tools from the command =
line,
run vcvars32.bat for that version.)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>N:\dsci\repo\WMI\trunk\wxWMI\src\nma=
ke&gt;cl<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Microsoft (R) 32-bit C/C++ =
Optimizing
Compiler Version 13.10.3077 for 80x86<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Copyright (C) Microsoft Corporation
1984-2002. All rights reserved.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>usage: cl [ option... ] filename... =
[
/link linkoption... ]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>N:\dsci\repo\WMI\trunk\wxWMI\src\nma=
ke&gt;where
cl<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>'where' is not recognized as an =
internal
or external command,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>operable program or batch =
file.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>N:\dsci\repo\WMI\trunk\wxWMI\src\nma=
ke&gt;which
cl<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>'which' is not recognized as an =
internal
or external command,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>operable program or batch =
file.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>N:\dsci\repo\WMI\trunk\wxWMI\src\nma=
ke&gt;echo
%PATH%<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>&quot;C:\Program Files\Microsoft =
Visual
C++ Toolkit 2003\&quot;\bin;C:\Program Files\Microsoft Visual Studio =
.NET
2003\Common7\IDE<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>;C:\Program Files\Microsoft Visual =
Studio
.NET 2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET =
2003\Common7\T<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>ools;C:\Program Files\Microsoft =
Visual
Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft =
Visual
S<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>tudio .NET
2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.N<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>ET\Framework\v1.1.4322;C:\WINDOWS\Mi=
crosoft.NET\Framework\v1.1.4322\;C:\Program
Files\Borland\BDS\4.0\Bin;C:\Program Fil<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>es\Microsoft Visual Studio .NET
2003\Vc7\bin;C:\Program Files\CMake
2.6\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>stem32\Wbem;C:\Program Files\Common
Files\GTK\2.0\bin;C:\Program Files\doxygen\bin;C:\Program Files\ATI
Technologies\ATI<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>.ACE\Core-Static;C:\Documents and
Settings\dsci\My Documents\Borland Studio Projects\Bpl;C:\Program =
Files\CMake
2.6\bin;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Luke<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> David =
Cole
[mailto:david.cole at kitware.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Thursday, October =
09, 2008
12:01 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Luke Kucalaba<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> cmake at cmake.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [CMake] =
NMake
problems when upgrading to CMake 2.6.2</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>From your same command prompt that you ran cmake in (at =
&quot;</span></font><span
class=3Dapple-style-span><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.5pt;
font-family:Consolas'>N:\dsci\repo\WMI\trunk\wxWMI\src\nmake</span></font=
></span>&quot;)
what is the output of:<o:p></o:p></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;&nbsp;cl<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;&nbsp;where cl<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>&nbsp;&nbsp;echo =
%PATH%<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>On Thu, Oct 9, 2008 at 11:51 AM, Luke Kucalaba &lt;<a
href=3D"mailto:lkucalaba at dsci.com">lkucalaba at dsci.com</a>&gt; =
wrote:<o:p></o:p></span></font></p>

<div link=3Dblue vlink=3Dpurple>

<div>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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=3D"http://2.4.7." =
target=3D"_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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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'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><o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o=
:p></p>

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

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>N:\dsci\repo\WMI\trunk\wxW=
MI\src\nmake&gt;cmake
--trace -G&quot;NMake Makefiles&quot; .. &gt; nmake-gen-trace.log =
2&gt;&amp;1</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--------------------------=
-----------------------------</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;
Generating NMake using CMake 2.6.2 =
(command-prompt)</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--------------------------=
-----------------------------</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>N:\dsci\repo\WMI\trunk\wxW=
MI\src\nmake&gt;vctoolkit</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>---
Setting Microsoft Visual C++ Toolkit 2003 environment variables... =
---</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Setting
environment for using Microsoft Visual Studio .NET 2003 =
tools.</span></font><o:p></o:p></p>

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

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

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Done.</span></font><o:p></=
o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>N:\dsci\repo\WMI\trunk\wxW=
MI\src\nmake&gt;cmake
-G &quot;NMake Makefiles&quot; ..</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
The C compiler identification is unknown</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
The CXX compiler identification is unknown</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check for CL compiler version</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check for CL compiler version - failed</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check if this is a free VC compiler</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check if this is a free VC compiler - yes</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check CL platform</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check CL platform - 64 bit</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Using FREE VC TOOLS, NO DEBUG available</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check for working C compiler: cl</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>CMake
Error: Internal CMake error, TryCompile configure of cmake =
failed</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>--
Check for working C compiler: cl -- broken</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;
It fails with the following output:</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;
CMake will not be able to correctly generate this =
project.</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Call
Stack (most recent call first):</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;
:2308322 (PROJECT)</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>*
Configuring incomplete, errors occurred!</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>We
did not encounter any problems like this when building MSVC71 NMake =
makefiles
with CMake <a href=3D"http://2.4.7." target=3D"_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><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Sincerely,</span></font><o=
:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Luke</span></font><o:p></o=
:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>&nbsp;</span></font><o:p><=
/o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Luke
Kucalaba</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>Senior
Software Engineer</span></font><o:p></o:p></p>

<p><font size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>D&amp;S
Consultants, Inc</span></font><o:p></o:p></p>

<p><st1:place w:st=3D"on"><st1:City w:st=3D"on"><font size=3D1 =
face=3DConsolas><span
  =
style=3D'font-size:8.0pt;font-family:Consolas'>Columbus</span></font></st=
1:City><font
 size=3D1 face=3DConsolas><span =
style=3D'font-size:8.0pt;font-family:Consolas'>, <st1:State
 w:st=3D"on">Ohio</st1:State></span></font></st1:place><o:p></o:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o=
:p></p>

<p><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o=
:p></p>

</div>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><br>
_______________________________________________<br>
CMake mailing list<br>
<a href=3D"mailto:CMake at cmake.org">CMake at cmake.org</a><br>
<a href=3D"http://www.cmake.org/mailman/listinfo/cmake" =
target=3D"_blank">http://www.cmake.org/mailman/listinfo/cmake</a><o:p></o=
:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</div>

</div>

</body>

</html>

------_=_NextPart_001_01C92A28.AF10BB1C--


More information about the CMake mailing list