<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
If adding the parameter -G "NMake Makefiles" to my command line,
then the output is different...but still errors:<br>
********************* snip output *********************<br>
Cross Compiling<br>
-- The C compiler identification is unknown<br>
-- The CXX compiler identification is unknown<br>
-- Check for working C compiler:
C:/WindRiver/diab/5.9.0.0/WIN32/bin/dcc.exe<br>
-- Check for working C compiler:
C:/WindRiver/diab/5.9.0.0/WIN32/bin/dcc.exe --<br>
broken<br>
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCComp<br>
iler.cmake:52 (MESSAGE):<br>
The C compiler "C:/WindRiver/diab/5.9.0.0/WIN32/bin/dcc.exe" is
not able to<br>
compile a simple test program.<br>
<br>
It fails with the following output:<br>
<br>
Change Dir:
D:/novero/Discovery/impl/target/CarIF_Appl/output/CMakeFiles/CMak<br>
eTmp<br>
<br>
Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"<br>
<br>
nmake -f CMakeFiles\cmTryCompileExec.dir\build.make /nologo
-L<br>
CMakeFiles\cmTryCompileExec.dir\build<br>
<br>
"C:\Program Files\CMake 2.8\bin\cmake.exe" -E
cmake_progress_report<br>
D:\novero\Discovery\impl\target\CarIF_Appl\output\CMakeFiles\CMakeTmp\CMakeFil<br>
es<br>
1<br>
<br>
Building C object
CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj<br>
<br>
C:\WindRiver\diab\5.9.0.0\WIN32\bin\dcc.exe -o<br>
CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj -c<br>
D:\novero\Discovery\impl\target\CarIF_Appl\output\CMakeFiles\CMakeTmp\testCCom<br>
piler.c<br>
<br>
<br>
Target Unknown. Use the -t option or set a default target with
dctrl -t<br>
<br>
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return
code<br>
'0x1'<br>
<br>
Stop.<br>
<br>
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return
code<br>
'0x2'<br>
<br>
Stop.<br>
<br>
********************* snap output *********************<br>
<br>
As you can see above, now the CMAKE_C_FLAGS are not recognized.<br>
set(CMAKE_C_FLAGS "-tPPCVLEEN:simple")<br>
<br>
<br>
<br>
<br>
On 19.09.11 15:24, Eric Noulard wrote:
<blockquote
cite="mid:%20%3CCAPASGLqhsJzZbHEEk8skC05zfRa8JVgSPusG3MFvUJRGfMVjeA@mail.gmail.com"
type="cite">
<pre wrap="">2011/9/19 Martin Kupke <a class="moz-txt-link-rfc2396E" href="mailto:martin.kupke@novero.com"><martin.kupke@novero.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">I'm using CMake in version 2.8.5 and just want to cross compile with a
decicated Compiler / Linker set on my Windows machine. Of course I've read
the FAQ and the Tutorial, afterwards I started trying to use CMake on a DOS
(cmd.exe) command line interface with CMakeLists.txt and a toolchain file.
After all tests failed to get CMake work in the Win32 environment, I tried
it in my private Linux (Debian Squeeze) and the same procedure is
successful. In Linux environment it works as described, in Win32 not.
My PC has installed Windows XP including SP3.
CMake version 2.8.5 is installed.
My development path contains a CMakeLists.txt and a toolchain_ppc.cmake
file, because I want to compile on my WinXP code for an embedded hardware
using a PPC processor.
The toolchain_ppc.cmake file contains the following settings:
set (CMAKE_GENERATOR "NMake Makefiles")
</pre>
</blockquote>
<pre wrap="">
I'm not sure whether if CMAKE_GENERATOR can be set in the toolchain file?
[...]
</pre>
<blockquote type="cite">
<pre wrap="">D:\novero\Discovery\impl\target\CarIF_Appl\output>cmake -D
CMAKE_TOOLCHAIN_FILE="..\toolchain_ppc.cmake" ..
</pre>
</blockquote>
<pre wrap="">did you try to add '-G "NMake Makefiles"' to your command line?
[...]
</pre>
</blockquote>
<blockquote
cite="mid:%20%3CCAPASGLqhsJzZbHEEk8skC05zfRa8JVgSPusG3MFvUJRGfMVjeA@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">I just want to use a standard Assembler, C Compiler and Linker.
I don't need CXX (C++) in my build environment and even I don't need (want)
any Visual Studio in my Cross Compilation.
The generator for CMake shall be "NMake Makefiles" so that the generated
Makefile can be used with "NMake".
Hopefully you can help me out of this.
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at
<a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title></title>
<br>
<div class="moz-signature">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:KievitOT-Regular;
        panose-1:2 0 5 3 4 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<hr size="2" width="100%">
<p class="MsoNormal"><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);" lang="EN-CA">martin
kupke<o:p></o:p></span></b></p>
<p class="MsoNormal"> <span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">can diagnostics
engineer | senior software developer<o:p></o:p></span> </p>
<p class="MsoNormal"><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);">m</span></b><span
style="font-family: KievitOT-Regular; color: rgb(192, 0,
0);">:</span><span style="font-family: KievitOT-Regular;
color: rgb(31, 73, 125);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(15, 36,
62);">+49.151.5511.3632</span><span style="font-family:
KievitOT-Regular; color: rgb(38, 38, 38);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);">| </span><b><span style="font-family:
KievitOT-Regular; color: rgb(192, 0, 0);">e</span></b><span
style="font-family: KievitOT-Regular; color: rgb(192, 0,
0);">:</span><span style="font-family: KievitOT-Regular;
color: rgb(155, 37, 74);"> </span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);"><a href="mailto:martin.kupke@novero.com"><span
style="color: blue;">martin.kupke@novero.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">skype:</span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);"> </span><span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">martin.kupke_novero
</span><span style="font-family: KievitOT-Regular; color:
rgb(0, 32, 96);">| </span><span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);">w:</span><span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);"> <a href="http://www.novero.com"><span
style="color: blue;">www.novero.com</span></a><br>
<br>
</span> <span style="font-family: KievitOT-Regular; color:
rgb(192, 0, 0);"></span> <img
src="cid:part1.02070003.02040607@novero.com" alt="novero
GmbH"><br>
<span style="font-family: KievitOT-Regular; color: rgb(15,
36, 62);">meesmannstr.103 | 44807 Bochum | germany</span>
<span style="font-family: KievitOT-Regular; color: rgb(31,
73, 125);"><o:p></o:p></span></p>
<p class="MsoNormal"> <span style="font-family:
KievitOT-Regular; color: rgb(15, 36, 62);"><br>
novero gmbh | parsevalstr. </span> <span
style="font-family: KievitOT-Regular; color: rgb(15, 36,
62);" lang="DE">7 a | 40468 düsseldorf | germany |
amtsgericht düsseldorf | hrb 58283 |
umsatzsteueridentifikationsnummer: de 814973142 |
geschäftsführender gesellschafter: razvan olosu</span> <span
style="font-family: KievitOT-Regular; color: rgb(31, 73,
125);" lang="DE"><o:p></o:p></span> </p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>