CMake Generate step failed. Build files cannot be regenerated correctly.
gmake: *** [Makefile:267:cmake_check_build_system] 错误 1
---
Failed <<< village_wang [0.43s, exited with code 2]
Summary: 0 packages finished [0.56s]
1 package failed: village_wang
1 package had stderr output: village_wang
error原文如上 原因:cmakelist install内部输入错误,将错误的代码改正后问题解决
cc1plus: fatal error: /home/ywq/town_ws/village_wang/src/wang2.cpp: 没有那个文件或目录
compilation terminated.
错误原因:在package中除了主文件以外发现多添加了一个新的main函数,
解决方式:将多余的main函数删除后error解决。#main函数只能有一个否则出现错误
标签:wang,错误,package,error,学习,报错,village,main,ros2 From: https://blog.csdn.net/m0_73664872/article/details/136628673