udacity / SFND_Lidar_Obstacle_Detection

374 stars 523 forks source link

Build error on Ubuntu #53

Open moavia90 opened 10 months ago

moavia90 commented 10 months ago

I successfully installed pcl using "sudo apt install libpcl-dev" and created a build directory inside the SFND_Lidar_Obstacle_Detection directory. The cmake command successfully generated the makefile. I encountered an error: ‘filesystem’ is not a member of ‘boost’ on running makefile.

Screenshot from 2023-11-28 23-51-18

liuwake commented 9 months ago

I've got this error as well. For me, I modified processPointClouds.cpp and processPointClouds.h, by rewriting all boost::system to std::filesystem. Also, I use add_definitions(-std=c++17) in my CMakeLists.txt. It may work by using add_definitions(-std=c++14), but I have not tested it. My hardware is Retina Macbook Pro 15 inches 2015 mid, with pcl-1.13, cmake 3.28 and gcc --version : Apple clang version 14.0.0 (clang-1400.0.29.202). Wish it help.