Cmake 错误:无法加载缓存

编程入门 行业动态 更新时间:2024-10-27 22:32:06
本文介绍了Cmake 错误:无法加载缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Cmake 尝试为 Eclipse 构建一个项目.当我尝试运行 Cmake 时,出现以下错误:

I'm using Cmake to try to build a project for Eclipse. When I try running Cmake, I get the following error:

Error: could not load cache
Error: Batch build stopped due to Eclipse CDT4 - Unix Makefiles error.
---- Time Elapsed: 3 secs ----
Error: could not load cache
Error: Batch build stopped due to Eclipse CDT4 - Unix Makefiles error.

我完全不知道是什么导致了这种情况.我知道我在正确的目录中运行 Cmake 并且存在 CMakeCache.txt 文件.有人能指出我解决这个问题的正确方向吗?

I'm completely stumped on what might be causing this. I know that I'm running Cmake in the correct directory and the CMakeCache.txt file is present. Could someone point me in the right direction to solve this?

推荐答案

如果你使用的是CLion,你可以使用File---Reload CMake Project".

If you are using the CLion, you can use File---"Reload CMake Project".

我用git force pull后遇到这个问题,Reload CMake Project解决了.

I meet this problem after using git force pull, and Reload CMake Project solves it.

这篇关于Cmake 错误:无法加载缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-03-31 04:25:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/796050.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓存   加载   错误   Cmake

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!