Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Which is cmake version could not find cmake root?


Asked by Ariana Huffman on Nov 30, 2021 FAQ



CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. I use cmake version 3.10.2 on Xubuntu 18.04 64bit.
Also Know,
CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /usr/bin CMake Error: Error executing cmake::LoadCache (). Aborting. I think there is a problem with how cmake is installed but I can't seem to figure it out.
Indeed, It sounds like you’ve moved the cmake executable out of its installation tree. It needs to be kept in the same directory structure as ctest, cpack, ccmake, cmake-gui, and its Modules and Templates directory. Is this the case? No. But I have cmake both in /bin and in /usr/bin. This is probably a wrong thing.
Thereof,
CMake fails to find FFTW (version 3.3.9) which was installed from source. I use CMake version 3.19.3 on Ubuntu 20.04. $ cmake --version cmake version 3.19.3 CMake suite maintained and supported by Kitware (kitware.com/cmake).
Besides,
Since CMake can not find your OpenSSL lib and include directory, you will have to manually tell him where they are with its command line when you call it. Use the option -D to set constants in CMake from the command line. You will need to set the constants OPENSSL_ROOT_DIR and OPENSSL_LIBRARIES since they are the one triggering the error.