问题
ROS中 编译其他人的功能包出现以下报错 是编译路径不同的问题
CMake Error: The current CMakeCache.txt directory .../build/CMakeCache.txt is different than the directory .../build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source ".../src/CMakeLists.txt" does not match the source ".../src/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
Invoking "cmake" failed
解决方法
删除功能包下的 build 和 devel 文件夹 重新编译