0

我已经尝试过pcl17来构建我的源代码。

当我 rosmake 显示未找到 vtkAppendPolyData.h 时。(完整的味精)

    [100%] Building CXX object CMakeFiles/correspondence_grouping.dir/src/correspondence_grouping.o
    In file included from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/common/impl/io.hpp:45:0,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/common/io.h:488,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/io/file_io.h:42,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/io/pcd_io.h:44,
                     from /home/sam/code/ros/pcl/pcl_3d_recognition/src/correspondence_grouping.cpp:1:
    /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/point_types.h:56:0: 警告: ignoring #pragma warning  [-Wunknown-pragmas]
    In file included from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/common/impl/io.hpp:45:0,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/common/io.h:488,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/io/file_io.h:42,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/io/pcd_io.h:44,
                     from /home/sam/code/ros/pcl/pcl_3d_recognition/src/correspondence_grouping.cpp:1:
    /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/point_types.h:636:0: 警告: ignoring #pragma warning  [-Wunknown-pragmas]
    In file included from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/visualization/common/common.h:40:0,
                     from /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/visualization/pcl_visualizer.h:50,
                     from /home/sam/code/ros/pcl/pcl_3d_recognition/src/correspondence_grouping.cpp:10:
    /home/sam/code/ros/pcl/perception_pcl_unstable/pcl17/include/pcl-1.7/pcl17/visualization/vtk.h:51:31: 嚴重錯誤: vtkAppendPolyData.h:沒有此一檔案或目錄
    編譯插斷。
    make[3]: *** [CMakeFiles/correspondence_grouping.dir/src/correspondence_grouping.o] Error 1
    make[3]: Leaving directory `/home/sam/code/ros/pcl/pcl_3d_recognition/build'
    make[2]: *** [CMakeFiles/correspondence_grouping.dir/all] Error 2
    make[2]: Leaving directory `/home/sam/code/ros/pcl/pcl_3d_recognition/build'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/sam/code/ros/pcl/pcl_3d_recognition/build'
  -------------------------------------------------------------------------------}                   

如何解决?

谢谢~

4

1 回答 1

0

编译器中的VTK库是否包含路径?

您可能还想检查是否安装了 libvtk5-dev 软件包,如此所述。

于 2012-09-24T08:05:54.133 回答