CMake Error: The source directory ““ does not exist. Specify --help for usage

make报错

报错信息CMake Error: The source directory “” does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Makefile:174: recipe for target ‘cmake_check_build_system’ failed
make: *** [cmake_check_build_system] Error 1

如下图:
在这里插入图片描述
报错信息CMake Error: The current CMakeCache.txt directory /home/zhucaishou/software/AB-interface/ARGoS-module/build/CMakeCache.txt is different than the directory /home/bangyin/software/AB-interface/ARGoS-module/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 “/home/zhucaishou/software/AB-interface/ARGoS-module/CMakeLists.txt” does not match the source “/home/bangyin/software/AB-interface/ARGoS-module/CMakeLists.txt” used to generate cache. Re-run cmake with a different source directory.

CMake Error: The source directory ““ does not exist. Specify --help for usage_第1张图片
解决办法:删除build文件夹中的CMakeCache.txt文件(如下图),然后重新cmake、make
CMake Error: The source directory ““ does not exist. Specify --help for usage_第2张图片

问题解决!

你可能感兴趣的:(Linux)