本帖最后由 ZOUZOU 于 2016-5-13 16:51 编辑
我在尝试官网的tutorials,但每次代码一运行到visualization部分的时候就会出错……结果都是segmentation fault ( core dumped ),所有的教程都是。
我没有修改代码,用的都是/pcl-master/doc/tutorials/content/sources.
用的PCL版本 pcl-1.8.0rc2, VTK 版本 是VTK7.0, Ubuntu 是 14.04 LTS.
我用了GDB查错, 说是VTK的问题, 我是不是应该装回老版本的VTK?
下面是gdb信息, 代码是alignment_prerejective(rigid pose estimation):
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff66adae5 in vtkTextProperty::GetBackgroundColor(double&, double&, double&) () from /usr/lib/libvtkRenderingCore-7.0.so.1
(gdb) bt
#0 0x00007ffff66adae5 in vtkTextProperty::GetBackgroundColor(double&, double&, double&) () from /usr/lib/libvtkRenderingCore-7.0.so.1
#1 0x00007fffe870276c in vtkAxisActor2D::vtkAxisActor2D() () from /usr/lib/libvtkRendering.so.5.8
#2 0x00007fffe8702955 in vtkAxisActor2D::New() () from /usr/lib/libvtkRendering.so.5.8
#3 0x00007fffe8201380 in vtkLegendScaleActor::vtkLegendScaleActor() () from /usr/lib/libvtkHybrid.so.5.8
#4 0x00007fffe8201bf5 in vtkLegendScaleActor::New() () from /usr/lib/libvtkHybrid.so.5.8
#5 0x00007ffff21c68eb in pcl::visualization::PCLVisualizerInteractorStyle::Initialize() () from /usr/lib/libpcl_visualization.so.1.7
#6 0x00007ffff21f3a7a in pcl::visualization::PCLVisualizer::PCLVisualizer(std::string const&, bool) () from /usr/lib/libpcl_visualization.so.1.7
#7 0x00000000004d2edf in main (argc=3, argv=0x7fffffffdc68) at /home/xxx/A_Travail/alignment_prerejective/alignment_prerejective.cpp:111
I really appreciate any help, thank you. 谢谢
|