[vtkusers] vtk x64, please help

Shakes Shekhar.Chandra at sci.monash.edu.au
Wed Jun 3 03:42:58 EDT 2009


Hi Alan,

Use the built-in Console that comes with the SDK. Then use the setenv 
command to select build type (like "setenv \release \x64"). The color 
changes if in Release or Debug mode.

Then run cmake from that command line. It should detect and run cl 
properly. I have used this method for Vista x64 Ultimate and VTK 5.2.1 
successfully in the past.

HTH
Cheers
Shakes

Alan Mutka wrote:
> Hello! I'm trying to build x64 VTK on Vista:
> 
> Configuration:
> Vista x64 Business SP1
> Framework 3.5 + SP1
> Visual Studio 2008 Professional x86 and x64 WoW (enabled compiler for 
> x64 arhitecture)
> Microsoft Windows SDK 6.1
> VTK 5.4
> Cmake 2.6.4
> 
> Before running Cmake I select compiler for Visual Studio 2008...
> CMD:  ..... vcvarchall.bat x64
> 
> Cmake work greate when I select Visual Studio 9 2008 (32 bit), but what 
> ever I do before, compiling VTK for  x64 version (Visual Studio 9 2008 
> x64) always throws:
> 
>   Check for working C compiler: cl
> 
>   Check for working C compiler: cl -- broken
> 
>   CMake Error at C:/Program Files (x86)/CMake
>   2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
> 
>   The C compiler "cl" is not able to compile a simple test program.
> 
>   It fails with the following output:
> 
>   Change Dir: C:/VTK54_source/binaries/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.
> 
> 
> What I'm missing, please help!
> Thank You!
> Alan
> 
> 
> _______________________________________________
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Shekhar_Chandra.vcf
Type: text/x-vcard
Size: 247 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090603/920e2fc8/attachment.vcf>


More information about the vtkusers mailing list