类似于这样的错误
Generic Warning: In
C:locationVTK6.0.0RenderingCorevtkPolyDataMapper.cxx, line
27
Error: no override found for 'vtkPolyDataMapper'.
First-chance exception at 0x000007F7AA106C8F in Test.exe:
0xC0000005: Access violation reading location
0x0000000000000000.
解决方案见
http://stackoverflow.com/questions/18642155/no-override-found-for-vtkpolydatamapper
在编译器宏定义添加
vtkDomainsChemistry_AUTOINIT=1(vtkDomainsChemistryOpenGL2)
vtkRenderingContext2D_AUTOINIT=1(vtkRenderingContextOpenGL2)
vtkRenderingCore_INCLUDE="D:/Cylinder/build/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h"
vtkRenderingVolume_AUTOINIT=1(vtkRenderingVolumeOpenGL2)
CMAKE_INTDIR="Debug"
就ok