The source does not match the source used to generate cache.

ubuntu 16.04,ros .

catkin_ws/src 下。添加一个功能包f1,f1 中 有  包f2 ,和CMakeLists。对f1 进行cmake  。之后,把f2 放到catkin_ws/src 下。删除f1 。对f2 进行cmake 。出现The source xxx   does not match the source xxx  used to generate cache. 

第一个xxx     和第二个xxx路径不同。因为之前移动了包的位置。

catkin_ws/src# ls  可以看到CMakeCache.txt  。

把它删除。再对f2 进行cmake。

就可以执行了。

posted @ 2018-11-14 10:38  IT小杂  阅读(1813)  评论(0编辑  收藏  举报