Toriyung

导航

vscode使用colcon build编译ros2工程时报错:The current CMakeCache.txt directory...is different from...

之前已经编译好了一个文件夹A下的工程

然后复制出一个文件夹B,再次编译时出现了问题,报错The current CMakeCache.txt directory...is different from...

其实也能猜到就是当路径从A变到B,不匹配导致报错,但是不知道应该在哪里改

CSDN上有个文章给出回答:删除build文件夹,当然把log和install全部删除了更好,然后重新编译,会自动生成build,install,log

 

 

参考:https://blog.csdn.net/ahhxxttxs/article/details/125015100

posted on 2024-05-23 21:46  Toriyung  阅读(37)  评论(0编辑  收藏  举报