I did install vcpkg as recommended (which is not obvious and took me a while to find that information) but it still fails. I’ve searched and tried various stuff but I can’t get it to work, so I left it as it was originally. This is the error that it prints:
$ ./your_program.sh– Running vcpkg installAll requested packages are currently installed.All requested installations completed successfully in: 2.32 ms– Running vcpkg install - doneCMake Error at CMakeLists.txt:3 (project):Running
‘nmake’ ‘-?’
failed with:
no such file or directory
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguageCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage– Configuring incomplete, errors occurred!
I am running it in Windows from git bash so that it can execute the .sh. The CMake version is cmake version 4.1.0
Edit: the compiler I have is MSys64/MinGW64 with the path properly set. I added the line
cmake -G "MinGW Makefiles" .
to the script to make sure it used it as the compiler and now I get
CMake Error at C:/Program Files/CMake/share/cmake-4.1/Modules/FindPackageHandleStandardArgs.cmake:227 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
(plus Call Stack)