问题
CMake Error: The source "/home/lyh/lyh_ws/ws1/src/CMakeLists.txt" does not match the source "/home/lyh/lyh_ws/ws1/src/swarmcomm_msgs/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
上边的问题是我catkin_make空间ws1时出现的,提示工作空间的CMakeLists与下方bag的CMakeLists不匹配。
解决方案
具体情况我也不懂为啥出现的,之前编译还好好的。
这边删除ws1空间下的build和devel,也就是把之前catkin_make产生的文件删掉。然后再次编译就行啦。
在~/lyh_ws/ws1下执行:catkin_make
问题就没有再出现啦、、、