计算化学公社

 找回密码 Forget password
 注册 Register
Views: 8637|回复 Reply: 0
打印 Print 上一主题 Last thread 下一主题 Next thread

[其它程序] raspa中用VTK显示吸附密度出现问题

[复制链接 Copy URL]

609

帖子

2

威望

4351

eV
积分
5000

Level 6 (一方通行)

跳转到指定楼层 Go to specific reply
楼主
编译了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


本版积分规则 Credits rule

手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图

GMT+8, 2024-11-27 09:24 , Processed in 0.365591 second(s), 21 queries , Gzip On.

快速回复 返回顶部 返回列表 Return to list