lhcc@LHC-UAV:~/formation_repo$ mm make ARCH=x86
#todo: may change to more gracefully way later.
==============================================
[1/2] Generate build.ninja
==============================================cd build-ninja && cmake -Wno-deprecated -G "Ninja" /home/lhcc/formation_repo -D ARCH=x86
CMake Error: The current CMakeCache.txt directory /home/lhcc/formation_repo/build-ninja/CMakeCache.txt is different than the directory /home/szk/formation_repo/build-ninja 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/lhcc/formation_repo/CMakeLists.txt" does not match the source "/home/szk/formation_repo/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
make: *** [Makefile:48: build-ninja] Error 1

原因是,编译的时候是直接从别人的虚拟机拷贝功能包时,编译好的文件目录和自己在编译的时候目录不匹配,因为是用户名不同所以会报错 ,处理办法如下。
文章描述了在编译过程中遇到的问题,即从他人虚拟机拷贝的功能包在本地编译时,由于用户目录不同导致CMakeCache.txt不匹配,从而引发错误。解决方案是删除CMakeCache.txt文件以消除冲突。
1582

被折叠的 条评论
为什么被折叠?



