红联Linux门户
Linux帮助

CMakeCache.txt is different错误的解决办法

发布时间:2016-09-06 08:14:33来源:linux网站作者:wuzuyu365
把caffe目录拷贝到faster_rcnn-master下然后编译报错:
wzy@wzy-ubuntu:~/faster_rcnn-master2/external/caffe/build$ sudo cmake ..   
CMake Error: The current CMakeCache.txt directory /home/wzy/faster_rcnn-master2/external/caffe/.build_release/CMakeCache.txt is different than the directory /home/wzy/caffe/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/wzy/faster_rcnn-master2/external/caffe/CMakeLists.txt" does not match the source "/home/wzy/caffe/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.  
 
解决办法:进入build目录,删除CMakeCache.txt即可。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23924.html