"The environment is setup with a cmd called "run CMake.cmd" and attached
with the extension 'cmd' changed to 'ceemde'

"Where is the source code" =./ is assuming the directory from where I run
CMakeSetup as the working directory.  Causes the error dialog
---------------------------
Error
---------------------------
CMake Error: The source directory "./build/CMakeFiles/CMakeTmp" does not
exist.
Specify --help for usage, or press the help button on the CMake GUI.

(Press  Cancel to suppress any further messages.)
---------------------------
OK   Cancel
---------------------------


Does not make a "Visual Studio 9 2008 Win64".  The folder does exist
relative from my working directory  "C:\OpenGL\OpenSceneGraph\trunk".  But
not from the cmake directory "C:\OpenGL\cmake-2.6.1-win32-x86\bin"

By putting in the full path for "Where is the source code" =
"C:\OpenGL\OpenSceneGraph\trunk" the CMakeSetup goes further.  Then I run
into the issue of using "C:/Program Files (x86)/Microsoft Visual Studio
9.0/VC/bin/amd64/cl.exe" as the compiler and linker for a 64 bit machine and
the following error dialog appears:

=====Error Dialog========
---------------------------
Error
---------------------------
CMake Error at
C:/OpenGL/cmake-2.6.1-win32-x86/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32
(MESSAGE):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  9.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/OpenGL/OpenSceneGraph/trunk/build/CMakeFiles/CMakeTmp



  Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\VCExpress.exe
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec




  Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.


  Copyright (C) Microsoft Corp 2007.  All rights reserved.





  The project consists entirely of configurations that require support for
  platforms which are not installed on this machine.  The project cannot be
  loaded.


  The project consists entirely of configurations that require support for
  platforms which are not installed on this machine.  The project cannot be
  loaded.


  Invalid project





  Use:


  vcexpress [solutionfile | projectfile | anyfile.ext] [switches]





  The first argument for devenv is usually a solution file or project file.


  You can also use any other file as the first argument if you want to have
  the


  file open automatically in an editor.  When you enter a project file, the
  IDE


  looks for an .sln file with the same base name as the project file in the


  parent directory for the project file.  If no such .sln file exists, then
  the


  IDE looks for a single .sln file that references the project.  If no such
  single


  .sln file exists, then the IDE creates an unsaved solution with a default
  .sln


  file name that has the same base name as the project file.





  Command line builds:


  devenv solutionfile.sln /build [ solutionconfig ] [ /project
  projectnameorfile [ /projectconfig name ] ]


  Available command line switches:





  /Log        Logs IDE activity to the specified file for troubleshooting.


  /ResetSettings    Restores the IDE's default settings, optionally resets
to


          the specified VSSettings file.


  /SafeMode    Launches the IDE in safe mode loading minimal windows.





  Product-specific switches:





  /debugexe    Open the specified executable to be debugged.  The


          remainder of the command line is passed to this


          executable as its arguments.


  /useenv        Use PATH, INCLUDE, LIBPATH, and LIB environment variables


          instead of IDE paths for VC++ builds.





  To attach the debugger from the command line, use:


      VsJITDebugger.exe -p <pid>






  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:30 (PROJECT)



(Press  Cancel to suppress any further messages.)
---------------------------
OK   Cancel
---------------------------
===========

On Tue, Sep 23, 2008 at 5:07 PM, Bill Hoffman <[EMAIL PROTECTED]>wrote:

> Roger Martin wrote:
>
>> Setting the full path fixes it.  I'm wondering, on relative paths, if the
>> cmake home/bin directory is the root.
>>
>> Yes, ./ is the current directory of the project from where I run a cmd
>> script.
>>
>> ------------
>> With the paths fixed as you pointed out, I then get an error dialog with
>> ...
>> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
>>  9.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.
>> ...
>> But by hand-build-environment, I can compile and link a 64 bit program
>> with cl.exe and the Windows SDK
>>
>> I use Netbeans and Visual C++ 2008 Express IDE's.
>>
>> But for some complex projects such as http://www.openscenegraph.org CMake
>> is the right tool.
>>
>>
> I am still not quite following what works for you and what does not work
> for you.   Can you describe when the ./ does not work and what steps you
> take?
>
> Also, for the compiler not working, can you give the full error message?
>  If possible send the CMakeCache.txt and the CMakeFiles/CMakeOutput.log and
> CMakeFiles/CMakeError.log files.
>
> You do have to run CMake from an environment that works.  So, running
> CMakeSetup from the start menu may cause trouble if the global PATH and env
> is not correct.
>
> -Bill
>
# This is the CMakeCache file.
# For build in directory: .
# It was generated by CMake: C:/OpenGL/cmake-2.6.1-win32-x86/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 try to support.
CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.4

//Semicolon separated list of supported configuration types, only
// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything
// else will be ignored.
CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo

//C++ compiler
CMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio 
9.0/VC/bin/amd64/cl.exe

//C compiler
CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio 
9.0/VC/bin/amd64/cl.exe

//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING= /DWIN32 /D_WINDOWS /W3 /Zm1000

//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=/D_DEBUG /MDd /Zi  /Ob0 /Od /RTC1

//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=/MD /O1 /Ob1 /D NDEBUG

//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=/MD /O2 /Ob2 /D NDEBUG

//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=/MD /Zi /O2 /Ob1 /D NDEBUG

//Libraries linked by defalut with all C applications.
CMAKE_C_STANDARD_LIBRARIES:STRING='kernel32.lib user32.lib gdi32.lib 
winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib 
advapi32.lib '

//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING= /MANIFEST /STACK:10000000 /machine:x64

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

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

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

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

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/OpenSceneGraph

//Path to a program.
CMAKE_LINKER:FILEPATH=C:/Program Files (x86)/Microsoft Visual Studio 
9.0/VC/bin/amd64/link.exe

//make program
CMAKE_MAKE_PROGRAM:FILEPATH=C:/PROGRA~2/MICROS~1.0/Common7/IDE/VCExpress.exe

//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING= /MANIFEST /STACK:10000000 /machine:x64

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

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

//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL:YES

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=rc

//Flags for Fortran compiler.
CMAKE_RC_FLAGS:STRING=' '

//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING= /MANIFEST /STACK:10000000 /machine:x64

//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=/debug /INCREMENTAL:YES

//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=/INCREMENTAL:NO

//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=/INCREMENTAL:NO

//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=/debug /INCREMENTAL:YES

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Single output directory for building all executables.
EXECUTABLE_OUTPUT_PATH:PATH=

//Single output directory for building all libraries.
LIBRARY_OUTPUT_PATH:PATH=

//Value Computed by CMake
OpenSceneGraph_BINARY_DIR:STATIC=C:/OpenGL/OpenSceneGraph/trunk

//Value Computed by CMake
OpenSceneGraph_SOURCE_DIR:STATIC=C:/OpenGL/OpenSceneGraph/trunk


########################
# INTERNAL cache entries
########################

//Stored GUID
ALL_BUILD_GUID_CMAKE:INTERNAL=EBE93649-8613-4B8E-A30C-8CDBDFE3C9F9
//Advanced flag for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=C:/PROGRA~2/MICROS~1.0/Common7/IDE/VCExpress.exe
//This is the directory where this CMakeCahe.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=.
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=6
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_RELEASE_VERSION:INTERNAL=patch 1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=C:/OpenGL/cmake-2.6.1-win32-x86/bin/cmake.exe
//Advanced flag for variable: CMAKE_CONFIGURATION_TYPES
CMAKE_CONFIGURATION_TYPES-ADVANCED:INTERNAL=1
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=C:/OpenGL/cmake-2.6.1-win32-x86/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=C:/OpenGL/cmake-2.6.1-win32-x86/bin/ctest.exe
//Advanced flag for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//Result of TRY_COMPILE
CMAKE_C_COMPILER_WORKS:INTERNAL=FALSE
//Advanced flag for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_C_STANDARD_LIBRARIES
CMAKE_C_STANDARD_LIBRARIES-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=C:/OpenGL/cmake-2.6.1-win32-x86/bin/CMakeSetup.exe
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Visual Studio 9 2008 Win64
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=.
//Advanced flag for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
//Advanced flag for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//Advanced flag for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=C:/OpenGL/cmake-2.6.1-win32-x86/share/cmake-2.6
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//Suppress Warnings that are meant for the author of the CMakeLists.txt
// files.
CMAKE_SUPPRESS_DEVELOPER_WARNINGS:INTERNAL=TRUE
//Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Stored GUID
EDIT_CACHE_GUID_CMAKE:INTERNAL=DF006341-EC30-4828-BA7D-013EAF272BC9
//Stored GUID
INSTALL_GUID_CMAKE:INTERNAL=36E7D147-7838-49C4-9133-1A9E1D42D9F7
//Stored GUID
PACKAGE_GUID_CMAKE:INTERNAL=DCEAB695-606B-47BC-9566-BBD8E213F247
//Stored GUID
REBUILD_CACHE_GUID_CMAKE:INTERNAL=3746BB54-E38A-4428-AF8C-0C2592C1A391
//Stored GUID
RUN_TESTS_GUID_CMAKE:INTERNAL=0EB7E49F-4FBA-487D-98A0-105182961F1A
//Stored GUID
ZERO_CHECK_GUID_CMAKE:INTERNAL=288AB67F-951F-4A09-ACD8-E4E17D37CAD5

Attachment: CMakeError.log
Description: Binary data

Attachment: CMakeOutput.log
Description: Binary data

Attachment: run CMake.ceemde
Description: Binary data

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to