计算化学公社

标题: raspa中用VTK显示吸附密度出现问题 [打印本页]

作者
Author:
zyj19831206    时间: 2017-2-11 16:16
标题: raspa中用VTK显示吸附密度出现问题
编译了VTK,然后进入例子,首先运行cmake ./,然后make,
出现问题:
/home/zyj/Desktop/RASPA2-master/examples/Visualization/FullCell/Density/MFI/hexane/VTK/XY/main.cxx:1745:31: error: no matching function for call to ‘vtkRenderer::AddActor(vtkActor2D*&)’
     ren1->AddActor(textActorL2);
                               ^
In file included from /home/zyj/Desktop/RASPA2-master/examples/Visualization/FullCell/Density/MFI/hexane/VTK/XY/main.cxx:11:0:
/usr/local/include/vtk-7.1/vtkRenderer.h:76:8: note: candidate: void vtkRenderer::AddActor(vtkProp*)
   void AddActor(vtkProp *p);
        ^
/usr/local/include/vtk-7.1/vtkRenderer.h:76:8: note:   no known conversion for argument 1 from ‘vtkActor2D*’ to ‘vtkProp*’
CMakeFiles/simulate.dir/build.make:62: recipe for target 'CMakeFiles/simulate.dir/main.cxx.o' failed
make[2]: *** [CMakeFiles/simulate.dir/main.cxx.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/simulate.dir/all' failed
make[1]: *** [CMakeFiles/simulate.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2







欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3