编译禾赛雷达的驱动HesaiLidar_General_ROS,结果报错PandarScan.h: No such file or directory. 然后又catkin_make一次,竟然成功了。这时去devel/include里可以看到缺少的头文件了。 应当是第一次编译时确实缺少,然后接着编译剩下部分,此时就生成头文件了。 再编译第二次,原来需要头文件的地方就编译成功了。 参考: HesaiLidar_General_ROS/issues/24
The dependency target “nav_msgs_gencpp” of target does not exist
1 2 3 4 5 6 7 8
CMake Warning(dev) at planners/pure_pursuit_local_planner/CMakeLists.txt:57 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "nav_msgs_gencpp" of target "pure_pursuit_local_planner" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.