[Insight-users] VTK

alex Dowson alexdowson at hotmail.com
Tue Jan 24 23:11:49 EST 2012


Hi

Which CMake version are you using ?  Try to use latest version


alex

-----Original Message----- 
From: Massinissa Bandou
Sent: Tuesday, January 24, 2012 9:54 PM
To: insight-users at itk.org
Subject: [Insight-users] VTK

Hello

I tried to compile VTK using CMake2.8.7 and Visual Studio 2010.
Actually, I'm using Win7 64bits.
I used CMake to setup VTK but when I try to configure it, I got this error:

CMake Warning (dev) at Graphics/Testing/Cxx/CMakeLists.txt:27
(ADD_EXECUTABLE):
   Policy CMP0003 should be set before this line.  Add code such as

     if(COMMAND cmake_policy)
       cmake_policy(SET CMP0003 NEW)
     endif(COMMAND cmake_policy)

   as early as possible but after the most recent call to
   cmake_minimum_required or cmake_policy(VERSION).  This warning appears
   because target "GraphicsCxxTests" links to some libraries for which the
   linker must search:

     opengl32

   and other libraries with known full path:

     C:/Users/Massi/Desktop/VTK_BIN/bin/Debug/vtkRendering.lib

   CMake is adding directories in the second list to the linker search path 
in
   case they are needed to find libraries from the first list (for backwards
   compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to 
enable
   or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" 
for
   more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

I can't build it on VS, a pop up appear: One or more project in the
solution were not loaded correctly,

thank you for your help!

Massi



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users 



More information about the Insight-users mailing list