[vtkusers] vtk and cmake

Andreas Brüning mail-andi at web.de
Fri Oct 16 10:29:14 EDT 2009


Dear vtk-user,

i have a problem while building the vtk project with cmake. I downloadet the vtk sources monthes ago, it was version 5.2.0. That time i uses VisualStudio 2005 and everything worked fine. I built the project with cmake2.4. 

Now i got Visual Studio 2008 and i have to built the vtk project again. but it doesnt work. When i press configure in Cmake i get the following error message:

CMake Error at C:/Programme/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:/andi/test_vtk_VS2008/CMakeFiles/CMakeTmp

  Run Build Command:C:\PROGRA~1\MICROS~2\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

  Microsoft (R) Visual Studio Version 8.0.50727.762.
  Copyright (C) Microsoft Corp 1984-2005.  All rights reserved.

  The selected file is a solution file, but was created by a newer version of
  this application and cannot be opened.

  The operation could not be completed.  Unbekannter Fehler

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


Configuring incomplete, errors occurred!

I tried the same with the latest version of Cmake (2.6.4) but the same error occured. I also checked out the latest version of VTk via CVS and it is the same. 

Does anybody know what is wrong? Is it because i have Visual Studio 2008 and also VisualStudio 2005 installed? 

Thanks in advance
Andi

_______________________________________________________________
Neu: WEB.DE DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
http://produkte.web.de/go/02/




More information about the vtkusers mailing list