Cmake Error: could not load cache

前端 未结 11 2437
无人共我
无人共我 2020-12-15 14:47

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 s         


        
相关标签:
11条回答
  • 2020-12-15 15:45

    The solution that worked for me using VisualStudio 2017 was choosing: CMake --> Cache --> Generate (from the top menu)

    0 讨论(0)
  • 2020-12-15 15:46

    Remove the CMakeCache.txt and try again. You probably had a bad cmake setup.

    0 讨论(0)
  • 2020-12-15 15:46

    I removed the .cxx and other ide-generated files to the recycle.bin, except app.iml. Then I restarted Android Studio, and eventually it worked fine.

    0 讨论(0)
  • 2020-12-15 15:48

    I ran into this recently using JetBrains CLion and the above instructions were helpful but not directly, I was able to reload the project using the "cog" drop down in the CMake tab:

    0 讨论(0)
  • 2020-12-15 15:49

    The most realistic answer and personal experienced answer is

    1. If you are using Clion and building files with IDE
    2. And getting the error Cmake Error: could not load cache
    3. Because you have accidentally deleted the cache file (like me: permanently and cant get back) or there is other problems or other problems

    Then do this:

    Run -> Clean

    Run -> Build

    And your project will be working all fine

    0 讨论(0)
提交回复
热议问题