Re: [CMake] SOLVED: Generated successfully NMake Makefile using CMake for Cross Compiling, but compiling with nmake fails

2011-09-20 Thread Martin Kupke

  
  
Hi,

short info for those of you who run into the same pitfall.
I downloaded the free (free of charge) nmake tool version 1.50 from
the Microsoft website. The problem is this nmake tool which produces
the problems with blanks / spaces in folder- and filenames. Even
parameters which contain double quotes (") make problems in the
Makefile.
We have several installations of MS Visual Studio in different
versions (Visual Studio 2003, 2008, 2010) and now I tried the NMake
from Visual Studio 2003 which is file version 7.10.3077 and this
works fine. Of course this version is NOT free of charge, because
it's part of the buyable package from Microsoft.

Just the short form: the nmake tool version 1.50 isn't able to use
the generated Makefile.

Br,
Martin...

On 20.09.11 11:00, Martin Kupke wrote:

  Hi,

after many helpful hints from other users now I was able to create a 
NMake Makefile using CMake.
I'm working in a Windows XP environment in a cmd.exe command line 
interface (shell). The CMake tool created the typical Makefile including 
the subfolders etc. in my output folder, without any errors or warnings. 
To compile my simple test project (in moment it contains only a single 
source standard C file), I call nmake.exe in my output path in the 
console. This is the same as calling nmake.exe with the parameter -f 
Makefile.

The output of the nmake build process is:
 snip 
D:\novero\Discovery\impl\target\CarIF_Appl\output\Debugnmake -f Makefile

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'
Stop.
 snap 

I assume that there is a problem with the filename / foldername, because 
of the line:
'C:\Program' is not recognized as an internal or external command...
A search over the output files from CMake including the generated 
Makefile itself shows that all references in variables are set with 
double quote (") e.g. "C:\Program Files\CMake 2.8\bin\cmake.exe".

Many thanks for your helpful comments in advance.

Br,
Martin...



___
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



-- 
  
  
  


  
  martin
kupke
   can diagnostics
  engineer | senior software developer
  
  m: +49.151.5511.3632 | e: martin.ku...@novero.com
  skype:
martin.kupke_novero
| w: www.novero.com
  



meesmannstr.103 | 44807 Bochum | germany

   
  novero gmbh | parsevalstr.  7 a | 40468 dsseldorf | germany |
  amtsgericht dsseldorf | hrb 58283 |
  umsatzsteueridentifikationsnummer: de 814973142 |
  geschftsfhrender gesellschafter: razvan olosu 
  
  

  

  

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] SOLVED: Generated successfully NMake Makefile using CMake for Cross Compiling, but compiling with nmake fails

2011-09-20 Thread Eric Noulard
2011/9/20 Martin Kupke martin.ku...@novero.com

 Hi,

 short info for those of you who run into the same pitfall.
 I downloaded the free (free of charge) nmake tool version 1.50 from the 
 Microsoft website. The problem is this nmake tool which produces the problems 
 with blanks / spaces in folder- and filenames. Even parameters which contain 
 double quotes () make problems in the Makefile.
 We have several installations of MS Visual Studio in different versions 
 (Visual Studio 2003, 2008, 2010) and now I tried the NMake from Visual Studio 
 2003 which is file version 7.10.3077 and this works fine. Of course this 
 version is NOT free of charge, because it's part of the buyable package from 
 Microsoft.

 Just the short form: the nmake tool version 1.50 isn't able to use the 
 generated Makefile.

Thank you for the information.

May be Jom would be usable in your case
 https://qt.gitorious.org/qt-labs/jom

Pre-compiled JOM binaries may be found here:
ftp://ftp.qt.nokia.com/jom/

--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake