Re: [CMake] CMake 2.5 - MinGW fails with NMake Mafiles

2007-10-19 Thread Gonzalo Garramuño

[EMAIL PROTECTED] wrote:

On Friday 19 October 2007 13:11, David Cole wrote:

Do not pass -DCMAKE_SYSTEM=Windows-5.1 on the command line. CMake expects
to compute that value itself...

On 10/19/07, Gonzalo Garramuño [EMAIL PROTECTED] wrote:

MinGW CMake also says it supports NMake Makefiles (actually, tons of
formats which sounds super cool).  After compiling a MinGW CMake, I
tried using it to compile cmake again with NMake Makefiles and it also
worked.

But trying a 'NMake Makefiles' build on my project resulted in


cmake ../../../.. -DCMAKE_SYSTEM=Windows-5.1



This is wrong, where did you get this from ? 
If you got it from the cross compiling page, I'll fix that page.




Don't recall.  It used to be the only way to have 2.4.6 Unix Makefiles 
attempt to compile using the microsoft compiler.


Now that the new cmake adds MSYS, MINGW and Unix Makefiles, there seems 
to be no need for it anymore.  Thanks.  It seems like this may fix the 
other issues I was having too.


--
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.5 - MinGW fails with NMake Mafiles

2007-10-19 Thread a . neundorf-work
On Friday 19 October 2007 13:11, David Cole wrote:
 Do not pass -DCMAKE_SYSTEM=Windows-5.1 on the command line. CMake expects
 to compute that value itself...

 On 10/19/07, Gonzalo Garramuño [EMAIL PROTECTED] wrote:
  MinGW CMake also says it supports NMake Makefiles (actually, tons of
  formats which sounds super cool).  After compiling a MinGW CMake, I
  tried using it to compile cmake again with NMake Makefiles and it also
  worked.
 
  But trying a 'NMake Makefiles' build on my project resulted in
 
   cmake ../../../.. -DCMAKE_SYSTEM=Windows-5.1


This is wrong, where did you get this from ? 
If you got it from the cross compiling page, I'll fix that page.

First, you are not cross compiling so you should not preset any of the 
CMAKE_SYSTEM* variables.

Second, if you would be cross compiling, you would have to set 
CMAKE_SYSTEM_NAME to Windows and CMAKE_SYSTEM_VERSION to the version, the 
variable CMAKE_SYSTEM is constructed by cmake itself from these two values.


Alex
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.5 - MinGW fails with NMake Mafiles

2007-10-19 Thread Bill Hoffman

Gonzalo Garramuño wrote:


MinGW CMake also says it supports NMake Makefiles (actually, tons of 
formats which sounds super cool).  After compiling a MinGW CMake, I 
tried using it to compile cmake again with NMake Makefiles and it also 
worked.


What do you mean after compiling a MinGW CMake?  The binary from the 
Kitware download site works fine for all of those formats.  How did you 
build CMake, and with what compiler?



-Bill
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMake 2.5 - MinGW fails with NMake Mafiles

2007-10-18 Thread Gonzalo Garramuño


MinGW CMake also says it supports NMake Makefiles (actually, tons of 
formats which sounds super cool).  After compiling a MinGW CMake, I 
tried using it to compile cmake again with NMake Makefiles and it also 
worked.


But trying a 'NMake Makefiles' build on my project resulted in

 cmake ../../../.. -DCMAKE_SYSTEM=Windows-5.1 
-DEXECUTABLE_OUTPUT_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/bin 
-DLIBRARY_OUTPUT_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib 
-DCMAKE_LIBRARY_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib 
-DCMAKE_NATIVE_ARCH=32 -DCMAKE_BUILD_ARCH=32 -DCMAKE_BUILD_TYPE=Release 
-G 'NMake Makefiles'




-- The C compiler identification is MSVC

-- The CXX compiler identification is MSVC

System is unknown to cmake, create:

Platform/ to use this system, please send your config file to 
[EMAIL PROTECTED] so it can be added to cmake


-- Check for working C compiler: C:/Archivos de programa/Microsoft 
Visual Studio .NET 2003/Vc7/bin/cl.exe


CMake Error: This should not have happen. If you see this message, you 
are probably using a broken CMakeLists.txt file or a problematic release 
of CMake


CMake Error: Could not find cmake module 
file:Z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp/CMakeFiles/CMakeRCCompiler.cmake


CMake Error: Internal CMake error, TryCompile configure of cmake failed

-- Check for working C compiler: C:/Archivos de programa/Microsoft 
Visual Studio .NET 2003/Vc7/bin/cl.exe -- broken


CMake Error: The C compiler C:/Archivos de programa/Microsoft Visual 
Studio .NET 2003/Vc7/bin/cl.exe 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.

-- Configuring done


The generated CMakeCache.txt is attached.


--
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy
# This is the CMakeCache file.
# For build in directory: z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp
# It was generated by CMake: C:/Archivos de programa/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.


# EXTERNAL cache entries


//For backwards compatibility, what version of CMake commands and
// syntax should this version of CMake allow.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.5

//No help, variable specified on the command line.
CMAKE_BUILD_ARCH:UNINITIALIZED=32

//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=Release

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio 
.NET 2003/Vc7/bin/cl.exe

//C compiler.
CMAKE_C_COMPILER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio .NET 
2003/Vc7/bin/cl.exe

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=' '

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Archivos de programa/mrLiquid

//No help, variable specified on the command line.
CMAKE_LIBRARY_PATH:UNINITIALIZED=z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio .NET 
2003/Vc7/bin/link.exe

//Program used to build from makefiles.
CMAKE_MAKE_PROGRAM:STRING=nmake

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=