[vtkusers] VTK and Visual C++ 2009 win64 On Vista

Michael Jackson mike.jackson at bluequartz.net
Tue Oct 20 08:28:19 EDT 2009


Are you doing any of the following:

   Using VS Express version and trying to compile 64 bit?
   Did you try launching cmake-gui.exe from a "VS Win64 Command Prompt"
   Did you verify that the "C:/Program Files (x86)/Microsoft Visual  
Studio 9.0/VC/bin/amd64/cl.exe" exists.

Mike

On Oct 19, 2009, at 10:24 PM, ruben.hernando.vaca at upc.edu wrote:

> Hi,
>
> Well I have installed VTK 5.4.2 on XP Windows on 32 bit system. Now  
> I can't compile VTK with the follow software:
>
> -Windows Vista Home Premium. 64 bits System.
> -CMake 2.6
> -vtk-5.4.2
>
> The configuration of CMAKE is:
>
> // 
> **************************************************************************
> //                                
> CMakeCache                                *
> // 
> **************************************************************************
>
> # This is the CMakeCache file.
> # For build in directory: c:/VTK_VC2008/VTK-win5
> # It was generated by CMake: C:/Program Files (x86)/CMake 2.6/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/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)/VTK
>
> //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/ 
> devenv.com
>
> //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=OFF
>
> //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=OFF
>
> //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
> VTK_BINARY_DIR:STATIC=C:/VTK_VC2008/VTK-win5
>
> //Location of the OpenGL extensions header file (glext.h).
> VTK_GLEXT_FILE:FILEPATH=C:/VTK_VC2008/Source/VTK/Utilities/ 
> ParseOGLExt/headers/glext.h
>
> //Location of the GLX extensions header file (glxext.h).
> VTK_GLXEXT_FILE:FILEPATH=C:/VTK_VC2008/Source/VTK/Utilities/ 
> ParseOGLExt/headers/glxext.h
>
> //Value Computed by CMake
> VTK_SOURCE_DIR:STATIC=C:/VTK_VC2008/Source/VTK
>
> //Location of the WGL extensions header file (wglext.h).
> VTK_WGLEXT_FILE:FILEPATH=C:/VTK_VC2008/Source/VTK/Utilities/ 
> ParseOGLExt/headers/wglext.h
>
>
> ########################
> # INTERNAL cache entries
> ########################
>
> //Stored GUID
> ALL_BUILD_GUID_CMAKE:INTERNAL=E5087943-5EE4-4CD6-AE79-4C39DA8AEC79
> //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/ 
> devenv.com
> //This is the directory where this CMakeCahe.txt was created
> CMAKE_CACHEFILE_DIR:INTERNAL=c:/VTK_VC2008/VTK-win5
> //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 4
> //Path to CMake executable.
> CMAKE_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.6/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:/Program Files (x86)/CMake 2.6/bin/ 
> cpack.exe
> //Path to ctest program executable.
> CMAKE_CTEST_COMMAND:INTERNAL=C:/Program Files (x86)/CMake 2.6/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:/Program Files (x86)/CMake 2.6/bin/ 
> cmake-gui.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=C:/VTK_VC2008/Source/VTK
> //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:/Program Files (x86)/CMake 2.6/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=FALSE
> //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=83133BD7-A1EA-4EFE-98BC-3C31870F5008
> //Stored GUID
> INSTALL_GUID_CMAKE:INTERNAL=6511713B-C549-415E-8F56-4ED56A29740D
> //Stored GUID
> PACKAGE_GUID_CMAKE:INTERNAL=FDB00136-442B-48F0-A21D-C2F5EB70A6C6
> //Stored GUID
> REBUILD_CACHE_GUID_CMAKE:INTERNAL=ED54CBF1-A534-419C-8897-D127321F5627
> //Stored GUID
> RUN_TESTS_GUID_CMAKE:INTERNAL=0DDFA544-0EC3-42C8-A4F8-648F21A46B97
> VTKFREETYPE_BINARY_DIR:INTERNAL=C:/VTK_VC2008/VTK-win5/Utilities/ 
> freetype
> VTKFREETYPE_SOURCE_DIR:INTERNAL=C:/VTK_VC2008/Source/VTK/Utilities/ 
> freetype
> VTKFTGL_BINARY_DIR:INTERNAL=C:/VTK_VC2008/VTK-win5/Utilities/ftgl
> VTKFTGL_SOURCE_DIR:INTERNAL=C:/VTK_VC2008/Source/VTK/Utilities/ftgl
> //Stored GUID
> ZERO_CHECK_GUID_CMAKE:INTERNAL=7C254C73-9EB0-4B83-9335-44BE7BFFB392
> // 
> **************************************************************************
> //                          END   
> CMAKECACHE                                *
> // 
> **************************************************************************
>
>
>
>
> The output of CMAKE after configuration is:
>
> // 
> **************************************************************************
> //                         OUTPUT  
> CMAKE                                    *
> // 
> **************************************************************************
>
> Check for working C compiler: C:/Program Files (x86)/Microsoft  
> Visual Studio 9.0/VC/bin/amd64/cl.exe
> Check for working C compiler: C:/Program Files (x86)/Microsoft  
> Visual Studio 9.0/VC/bin/amd64/cl.exe -- broken
> CMake Error at C:/Program Files (x86)/CMake 2.6/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:/VTK_VC2008/VTK-win5/CMakeFiles/CMakeTmp
>
>
>
>  Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
>  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
>
>
>
>  Microsoft (R) Visual Studio Version 9.0.21022.8.
>
>  Copyright (C) Microsoft Corp.  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:
>
>  devenv [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:
>
>
>
>  /Build		Builds the solution or project with the specified solution
>
>  		configuration.  For example "Debug".  If multiple platforms
>
>  		are possible, the configuration name must be enclosed in quotes
>
>  		and contain platform name.  For example: "Debug|Win32".
>
>  /Clean		Deletes build outputs.
>
>  /Command	Starts the IDE and executes the command.
>
>  /Deploy		Builds and then deploys the specified build configuration.
>
>  /Edit		Opens the specified files in a running instance of this
>
>  		application.  If there are no running instances, it will
>
>  		start a new instance with a simplified window layout.
>
>  /LCID		Sets the default language in the IDE for the UI.
>
>  /Log		Logs IDE activity to the specified file for troubleshooting.
>
>  /NoVSIP		Disables the VSIP developer's license key for VSIP testing.
>
>  /Out		Appends the build log to a specified file.
>
>  /Project	Specifies the project to build, clean, or deploy.
>
>  		Must be used with /Build, /Rebuild, /Clean, or /Deploy.
>
>  /ProjectConfig	Overrides the project configuration specified in the
>  solution
>
>  		configuration.  For example "Debug".  If multiple platforms are
>
>  		possible, the configuration name must be enclosed in quotes
>
>  		and contain platform name.  For example: "Debug|Win32".
>
>  		Must be used with /Project.
>
>  /Rebuild	Cleans and then builds the solution or project with the
>
>  		specified configuration.
>
>  /ResetAddin	Removes commands and command UI associated with the  
> specified
>  Add-in.
>
>  /ResetSettings	Restores the IDE's default settings, optionally  
> resets to
>
>  		the specified VSSettings file.
>
>  /ResetSkipPkgs	Clears all SkipLoading tags added to VSPackages.
>
>  /Run		Compiles and runs the specified solution.
>
>  /RunExit	Compiles and runs the specified solution then closes the  
> IDE.
>
>  /SafeMode	Launches the IDE in safe mode loading minimal windows.
>
>  /Upgrade	Upgrades the project or the solution and all projects in it.
>
>  		A backup of these files will be created as appropriate.  Please
>
>  		see Help on 'Visual Studio Conversion Wizard' for more
>
>  		information on the backup process.
>
>
>
>  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:5 (PROJECT)
>
>
> Configuring incomplete, errors occurred!
>
> // 
> **************************************************************************
> //                        END OUTPUT  
> CMAKE                                 *
> // 
> **************************************************************************
>
> Please help me. How to figure out this problem?
>
> Regards
>
> Ruben.
>
>
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list