PCL (Point Cloud Library)笔记


1 安装

    sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl

    sudo apt-get update

    sudo apt-get install libpcl-all

2 codeblocks调用PCL

    a.需要添加以下头文件目录:    

    /usr/include/pcl-1.7
    /usr/include/boost
    /usr/include/eigen3
    /usr/include/vtk-5.8

    其它目录视情况添加

    b.添加动态链接

3  采用eclipse显示点云时若报错:

ERROR: In /build/buildd/vtk-5.8.0/Rendering/vtkXOpenGLRenderWindow.cxx, line 1484
vtkXOpenGLRenderWindow (0x814ac40): bad X server connection. DISPLAY=

解决方案:Run-->Run configurations-->Environment 中添加环境变量$DISPLAY,值为0.0  

你可能感兴趣的:(PCL)