0
我試過pcl17來構建我的源代碼。如何解決在點雲庫中找不到的vtkAppendPolyData.h文件?
當我rosmake它顯示vtkAppendPolyData.h未找到。 (the full msg)
[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'
-------------------------------------------------------------------------------}
如何解決?
謝謝〜
我已經安裝了libvtk5-dev。我嘗試使用libvtk- *來安裝,但沒有新的安裝。接下來做什麼?謝謝〜 – sam
我發現我應該將src從<*>更改爲包含。如何防止更改源代碼?謝謝〜 –
sam