When i create a qt gui vtk application by Cmake,then i run it with vs 2017.It appears fllowing warning.Any counld tell me how could i cancel this warning?Thank you a lot.enter image description here
Asked
Active
Viewed 2,984 times
0
-
How did you create a VTK application with CMake? How can we reproduce your problem? Which platform are you working on? Please think in generic terms such that your question serves the community and not just yourself. SO is not a service centre for debugging your problems. – normanius Oct 09 '18 at 08:59
1 Answers
2
You should use QVTKOpenGLWidget instead.
You can disable deprecation warning if absolutely needed by setting the cmake variable :
VTK_LEGACY_SILENT:ON

Mathieu Westphal
- 2,544
- 1
- 19
- 33
-
E2512 the argument to a feature-test macro must be a simple identifier vtkCommonCore VTK-8.1.0\Common\Core\vtkSetGet.h – Sayan Bera Jun 29 '20 at 12:49
-
-
on setting the above flag in CMAKE, there is error while building in VS2017 – Sayan Bera Jun 30 '20 at 02:03
-