[vtkusers] Building VTK+QT with Visual Studio 2010 C++ in Win7

Leandro Gazoni lgazoni at gmail.com
Thu May 8 22:42:00 EDT 2014


Hello!

I´m use an older version of CMAKE 2.8.9 and worked normally but the version
of cmake-2.8.12.2-win32-x86 has shown the same error.

thanks


Leandro Gazoni


2014-04-02 11:57 GMT-03:00 Kevin Funk <kevin.funk at kdab.com>:

> On Wednesday 26 March 2014, 00:49, Rodrigo Lovera wrote:
> > Hello everyone,
> >
> >
> > I'm trying to get back on my thesis work using VTK and QT on C++ visual
> > studio environment, on my old pc didn't have issues while building vtk
> > library with qt use but now im getting the following error msg at cmake.
> > Hope someone can help me get rid of it. Thanks in advance.
> >
> > I was building VTK 5.10.1 with QT 4.8.2 and using Cmake 2.8.12
> >
> > The error in cmake goes as follows:
> >
> > CMake Warning (dev) in Common/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkCommon" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtksys;wsock32;vtksys
> >
> > Link implementation:
> >
> > vtksys;wsock32
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Filtering/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkFiltering" has an INTERFACE_LINK_LIBRARIES property. This
> > should be preferred as the source of the link interface for this library
> > but because CMP0022 is not set CMake is ignoring the property and using
> the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkCommon;vtkCommon
> >
> > Link implementation:
> >
> > vtkCommon
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Graphics/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkGraphics" has an INTERFACE_LINK_LIBRARIES property. This
> should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkFiltering;vtkverdict;vtkFiltering
> >
> > Link implementation:
> >
> > vtkFiltering;vtkverdict
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Imaging/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkImaging" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkFiltering;vtkFiltering
> >
> > Link implementation:
> >
> > vtkFiltering
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in IO/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkIO" has an INTERFACE_LINK_LIBRARIES property. This should be
> > preferred as the source of the link interface for this library but
> because
> > CMP0022 is not set CMake is ignoring the property and using the link
> > implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> >
> vtkFiltering;vtkDICOMParser;vtkNetCDF;vtkNetCDF_cxx;LSDyna;vtkmetaio;vtksqli
> > te;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat;vtksys;vfw32;vtkFiltering
> >
> > Link implementation:
> >
> >
> vtkFiltering;vtkDICOMParser;vtkNetCDF;vtkNetCDF_cxx;LSDyna;vtkmetaio;vtksqli
> > te;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat;vtksys;vfw32
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Rendering/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkRendering" has an INTERFACE_LINK_LIBRARIES property. This
> > should be preferred as the source of the link interface for this library
> > but because CMP0022 is not set CMake is ignoring the property and using
> the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> >
> vtkGraphics;vtkImaging;vtkIO;vtkftgl;vtkfreetype;opengl32;vtkGraphics;vtkIma
> > ging
> >
> > Link implementation:
> >
> > vtkGraphics;vtkImaging;vtkIO;vtkftgl;vtkfreetype;opengl32
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Hybrid/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkHybrid" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkRendering;vtkIO;vtkexoIIc;vfw32;vtkftgl;vtkRendering;vtkIO
> >
> > Link implementation:
> >
> > vtkRendering;vtkIO;vtkexoIIc;vfw32;vtkftgl
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in VolumeRendering/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkVolumeRendering" has an INTERFACE_LINK_LIBRARIES property.
> This
> > should be preferred as the source of the link interface for this library
> > but because CMP0022 is not set CMake is ignoring the property and using
> the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkRendering;vtkIO;opengl32;vtkRendering;vtkIO
> >
> > Link implementation:
> >
> > vtkRendering;vtkIO;opengl32
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Widgets/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkWidgets" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> >
> vtkRendering;vtkHybrid;vtkVolumeRendering;opengl32;vtkRendering;vtkHybrid;vt
> > kVolumeRendering
> >
> > Link implementation:
> >
> > vtkRendering;vtkHybrid;vtkVolumeRendering;opengl32
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Views/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkViews" has an INTERFACE_LINK_LIBRARIES property. This should
> be
> > preferred as the source of the link interface for this library but
> because
> > CMP0022 is not set CMake is ignoring the property and using the link
> > implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkInfovis;vtkInfovis
> >
> > Link implementation:
> >
> > vtkInfovis
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Infovis/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkInfovis" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkWidgets;vtklibxml2;vtkalglib;vtkWidgets
> >
> > Link implementation:
> >
> > vtkWidgets;vtklibxml2;vtkalglib
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in GenericFiltering/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkGenericFiltering" has an INTERFACE_LINK_LIBRARIES property.
> > This should be preferred as the source of the link interface for this
> > library but because CMP0022 is not set CMake is ignoring the property and
> > using the link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkFiltering;vtkGraphics;vtkFiltering;vtkGraphics
> >
> > Link implementation:
> >
> > vtkFiltering;vtkGraphics
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Geovis/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkGeovis" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkWidgets;vtkViews;vtkproj4;vtkWidgets;vtkViews
> >
> > Link implementation:
> >
> > vtkWidgets;vtkViews;vtkproj4
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
> >
> > CMake Warning (dev) in Charts/CMakeLists.txt:
> > Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link
> > interface. Run "cmake --help-policy CMP0022" for policy details. Use the
> > cmake_policy command to set the policy and suppress this warning.
> >
> > Target "vtkCharts" has an INTERFACE_LINK_LIBRARIES property. This should
> > be preferred as the source of the link interface for this library but
> > because CMP0022 is not set CMake is ignoring the property and using the
> > link implementation as the link interface instead.
> >
> > INTERFACE_LINK_LIBRARIES:
> >
> > vtkViews;vtkftgl;vtkViews
> >
> > Link implementation:
> >
> > vtkViews;vtkftgl
> >
> > This warning is for project developers. Use -Wno-dev to suppress it.
>
> This is a *warning* after all, not an error.
>
> What is the real error you get?
>
> Greets
>
> --
> Join us at Qt Developer Days 2014 in Berlin! - https://devdays.kdab.com
>
> Kevin Funk | kevin.funk at kdab.com | Software Engineer
> KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
> Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
> KDAB - Qt Experts - Platform-independent software solutions
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140508/302ed11f/attachment.html>


More information about the vtkusers mailing list