VTK的NEW变量为空的解决解决方案

类似于这样的错误
Generic Warning: In C:\location\VTK6.0.0\Rendering\Core\vtkPolyDataMapper.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
posted @ 2016-07-08 20:24  李建业  阅读(426)  评论(0编辑  收藏  举报