English 中文(简体)
地震可发现CMAKE_ROOT
原标题:Cmake can t find CMAKE_ROOT
  • 时间:2018-11-29 10:34:42
  •  标签:
  • cmake

Cmake throws an error

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in

CMake Error: Error executing cmake::LoadCache(). Aborting.`

三、三管齐下的一切 我可以在此发现,要确定(将环境变数用于安装、重新安装、从源代码上安装)但其中没有一项工作,我还试图将环境变数控制在锅炉上(我通常使用sh子),但结果仍未实现。

问题回答

指挥:

hash -r

这将造成遗体忘记其电离层电离层的电离层,并在这样做时使环境使新安装的电离层处于优先地位。 http://www.un.org。

hash: hash [-lr] [-p pathname] [-dt] [name ...]
    Remember or display program locations.

    Determine and remember the full pathname of each command NAME.  If
    no arguments are given, information about remembered commands is
    displayed.

    Options:
      ...
      -r        forget all remembered locations

无论如何,我的错误也是一样的:

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/home/user/.local/share/cmake-3.25
cmake version 3.25.0-rc1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

我利用<代码>apt在乌兰巴托安装了碎块。 然而,该系统仍在寻找在我的家名录中安装碎.。

我只是与系统名录链接:

$ ln -s /usr/share/cmake-3.25 ~/.local/share/

问题得到解决。

$ cmake --version                            
cmake version 3.25.0-rc1

CMake suite maintained and supported by Kitware (kitware.com/cmake).

我不得不重温我的灵感,纠正这一错误。

sudo apt-get remove cmake cmake-data
sudo -E add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo -E apt-get update
sudo apt-get install cmake




相关问题
Why can t CLion see header files, WSL2 toolchain?

My setup: Windows 10 Pro 22H2 (19045.2965) CLion 2020.1.3 (JetBrains) WSL2 with Ubuntu 22.04.2 LTS gcc 11.3.0 cmake 3.22.1 gdb 12.1 gmake 4.3 CMakeLists.txt cmake_minimum_required(VERSION 3.22)...

CMake linking problem

I am trying to use CMake to compile a C++ application that uses the C library GStreamer. My main.cpp file looks like this: extern "C" { #include <gst/gst.h> #include <glib.h> } int main(...

How to add an extra plist property using CMake?

I m trying to add the item <key>UIStatusBarHidden</key><true/> to my plist that s auto-generated by CMake. For certain keys, it appears there are pre-defined ways to add an item; ...

(c)make - resursive compile

Let s assume I have directories like: dir1 main.cpp dir2 abc.cpp dir3 def.cpp dir4 ghi.cpp jkl.cpp And let s assume that main.cpp ...

Reading registry values with cmake

On a Windows 7 machine I cannot read any registry values that contain a semicolon. For example if you have 7-zip, running the following SET(MYPATH [HKEY_LOCAL_MACHINE\SOFTWARE\7-Zip;Path]) ...

Finding the correct Python framework with cmake

I am using the macports version of python on a Snow Leopard computer, and using cmake to build a cross-platform extension to it. I search for the python interpreter and libraries on the system using ...

热门标签