[vtkusers] VTK
Dženan Zukić
dzenanz at gmail.com
Wed Jan 25 03:30:05 EST 2012
Which version of VTK are you trying? I have the same setup as you (CMake2.8.7
and Visual Studio 2010 on Win7 x64) and it works for me both for VTK5.6.1
and VTK5.8.0.
2012/1/24 Massinissa Bandou <Massinissa.Bandou at usherbrooke.ca>
>
> Hello
>
> I'm new on VTK and 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<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 <http://www.vtk.org/Wiki/VTK_FAQ>
>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtkusers<http://www.vtk.org/mailman/listinfo/vtkusers>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120125/ef7f9c03/attachment.htm>
More information about the vtkusers
mailing list