This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FATAL ERROR: CMake is not installed or cannot be found; cannot build.

Hello, I tried to using the nRF Connect SDK with VS Code, however when it seems there are some problem while I trying the build. I have read the similar post and trying to figure out what is the problem. I found it cannot find the tools and the "PATH" problem from "Generate Support Information". I have tried to reinstall everything but never fix.

Parents
  • Hello, 

    From the support information that you have provided the following sticks out as possible cause

    Can you please provide the log output when you try to build the application/sample? Are you installing this using the Toolchain Manager?

    Thanks. 

    Kind regards,
    Øyvind

  • Thanks for your reply.

    Here is the output when I try to build the sample "Hello World".

    And yes, I install the environment by Toolchain Manager. However before that I tried to install the Node.js and Python for my other projects. But it still cannot work after I uninstall the Python and Node.js.

    BTW, it works normally on my another laptop.

  • Thank you for providing this. 

    Could you please enter the following command in Windows Command Prompt

    What does it return?

Reply Children
  • Hello,

    The return message is "C:\Windows\System32\cmd.exe"

  • Thanks for providing this information. 

    I've discussed the issue with our VS Code extension team, and they point out that there are two Windows paths, "Path" and "PATH". The VS Code extension should have a fix in the latest version, however, you are running an older version": "2022.1.192". 

    Please try to update the extension and let me know how that works for you.

    Kind regards,
    Øyvind