pcl_ros/point_cloud.h: No such file or directory
One of my source file include library pcl_ros/point_cloud.h
However, the error pops up
/home/chao/catkin_ws/src/beginner_tutorials/src/pointcloudlistener.cpp:2:33: fatal error: pcl_ros/point_cloud.h: No such file or directory
My pcl_ros/point_cloud.h
file locates at /usr/local/include/pcl-1.8/pcl_ros/point_cloud.h
. I change the lines in my Cmakefile like below. But the error still exists. How can I fix this problem?
include_directories(
# include
${catkin_INCLUDE_DIRS}
/usr/local/include/pcl-1.8
)
Asked by Chao Chen on 2020-07-10 00:50:56 UTC
Comments
Does your CMakeLists.txt contains
find_package(PCL REQUIRED)
?Asked by kosmastsk on 2020-07-10 02:59:24 UTC
Yeah. It was working in another computer. But it does not work in this laptop. All I can think it's the library problem
Asked by Chao Chen on 2020-07-10 11:19:56 UTC
How did you install it?
Asked by kosmastsk on 2020-07-10 11:37:11 UTC