CMake Error: The current CMakeCache.txt directory is different than the other
CMake Error: The current CMakeCache.txt directory is different than the other … CMake安装报错:CMakeCache.txt已经存在
产生原因:某天在部署linux环境时,需要安装CMake用来编译代码,众所周知,安装CMake需要以下几个步骤:
cd cmake-3.3.2 #1、进入cmake目录
./bootstrap #2、执行bootstrap
make #3、make
make install #4、make安装
但是在执行make时,报了一个错误:
CMake Error: The current CMakeCache.txt directory
当前位置CMakeCache.txt is different than the directory
另一个位置 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,所以CMakeCache.txt已经存在了,在这次安装的时候被检查出来然后报错,所以如果看到这个报错的话,应该是已经安装过CMake或是某个位置有CMakeCache.txt
解决方式:根据报错的第二个路径找到CMakeCache.txt,并将其删除,最好直接删除整个CMake目录,然后再从自己将要安装的CMake目录下面重新执行make命令
rm -r cmake-3.3.2 #1、找到已经安装的cmake目录将其删除,或者找到已存在的CMakeCache.txt删除make #2、进入将要安装的cmake目录,重新执行make命令
make install #3、第二步成功后继续执行make install即可
备注:
内容只针对某些情景下的需求有用,可当做参考。
The content is only useful for the needs of some situations and can be used as a reference.
CMake Error: The current CMakeCache.txt directory is different than the other相关推荐
- 【转】CMake Error: The current CMakeCache.txt directory CMakeCache.txt is different than the directory
转自:CMake Error: The current CMakeCache.txt directory is different..._万俟淋曦的进击手记-CSDN博客 零.问题描述 开始学ROS时 ...
- CMake Error: The current CMakeCache.txt directory is different...
CMake Error: The current CMakeCache.txt directory is different... 使用 NXP sdk编译时会出现如下错误: CMake Error: ...
- CMake安装时报错:The current CMakeCache.txt directory /home/joes/jiao/01_YHWorker/03_setupbag/cmake-3.19.2
一.问题描述: CMake Error: The current CMakeCache.txt directory /home/joes/jiao/01_YHWorker/03_setupbag/cm ...
- Ubuntu下cmake报错:The current CMakeCache.txt directory...is different from...
先说一下个人使用的环境和建立工程的方式: 环境:ubuntu20.04+cmake+vscode, 建立的是C++工程. 方式:用的是较为简单的方式.建立一个工程目录,下面有一个build目录,一个c ...
- CMakeCache.txt is different 错误
把caffe目录拷贝到faster_rcnn-master下然后编译报错 wzy@wzy-ubuntu:~/faster_rcnn-master2/external/caffe/build$ sudo ...
- CMake Error:Cannot specify link libraries for target
问题描述:ros学习中,一个小插曲,还以为出什么大问题了,真是苦笑不得 CMake Error at hello/CMakeLists.txt:138 (target_link_libraries): ...
- 如何解决CMake Error: The source directory ““ does not exist
在linux系统上编译C++代码时常常出现CMake Error: The source directory "" does not exist 详细报错信息为: CMake Er ...
- CMake Error at CMakeLists.txt:97 (ADD_TARGET_DEFINITIONS): Unknown CMake command ADD_TARGET_DEFIN
cmake 编译一直出错 $ cmake --version cmake version 3.14.3 – The C compiler identification is GNU 7.3.0 – T ...
- cmake error: the source directory “xxx“ does not exist.specify --help for usage, or ...
在我的共享文件夹添加新文件,make之后提示错误信息 一 .情况是这样子的,由于我前段时间把我当Ubuntu搞崩了,现在拿到的是同事给我的ubuntu还有一个sdk,新到手的sdk有一些问题,导致编译 ...
最新文章
- bigdicmal除法精度设置_Java BigDecimal浮点数运算--如何保证运算精度不溢出
- C++网络游戏程序员笔试题
- special-symbols in package(data.table)
- MySql中常用的内置函数
- 机器学习算法机器人足球_购买足球队:一种机器学习方法
- 宝塔php gd库,宝塔面板安装 EasyImag – 一款最简单图床的安装体验
- HTML5本地图片裁剪并上传
- Kafka三款监控工具比较
- Altium AD20删除机械层MECH
- “10 倍工程师”引争议,程序员再被妖魔化?
- Charles安卓8手机抓包
- java 本地文件上传到服务器,java本地文件上传到远程服务器
- SpringBoot实现发送电子邮件
- 预备内容:---软件安装篇(1)
- 解耦java_工厂模式实现解耦
- CPA二十一--划出和追加保证金(转载)
- 关于大一暑假考核的复习总结
- Cly的三角形 (思维+斐波那契)
- 计算机毕业设计java+jsp鲜花销售商城信息网站(源码+系统+mysql数据库+Lw文档)
- 关于ios低版本在app store下载软件时由于版本低导致不能下载的解决办法