Your-program.sh doesn't work

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)

Hey @Nyerelia, could you confirm if you’ve set the VCPKG_ROOT environment variable to the path where vcpkg is installed?

Yes, it was. I tinkered a bit with both the script and CMake and finally got it to work, although I don’t completely understand why (and I have to remember not to commit those changes). But it’s working, so I guess this thread can be closed now. Thank you @andy1li for passing by and trying to help :slight_smile:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.