I am trying to install a set of executables on to a computer running Windows 10, and after having downloaded their sources, I need to compile them using cmake. I downloaded the latest version of cmake, and (after setting the proper working directory) have been trying to run the following commands on the Windows Command prompt in order to install the executables:
mkdir build
cd build
cmake ../
make
However, the cmake commands consistently yield the following error, and fail to generate any sort of make file that the make command can utilize:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Hannah/Documents/nupack3.2.0/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Hannah/Documents/nupack3.2.0/build/CMakeFiles/CMakeError.log".
I have tried numerous solutions for cmake to work, and none of them have worked. I have tried to add the bin of my cmake folder to my PATH environmental variable, I have tried to reinstall my copy of cmake, and tried to use the CMake GUI in order to generate the make file (Running CMake on Windows), and even downloading Visual Studio (How to set cmake CXX variable on windows), but because I don't have enough experience with using either the CMake GUI or Visual Studio, or because there is something else going wrong, nothing seems to work at all, the cmake ../
yields the exact same error.
Could anybody offer me some alternate solutions for how to make this command work?