No such file or directory - ”zap-cli“

 

        Hello, sorry for disturb!

        I meet build error as blow, how can I fix it? thx

        

FAILED TO EXECUTE ZAP GENERATION: No such file or directory - "zap-cli"
********************************************************************************
You may need to install zap. Please ensure one of these applies:
- `zap-cli` is in $PATH. Install from https://github.com/project-chip/zap/releases
  see docs/guides/BUILDING.md for details
- `zap-cli` is in $ZAP_INSTALL_PATH. Use this option if you
  installed zap but do not want to update $PATH
- Point $ZAP_DEVELOPMENT_PATH to your local copy of zap that you
  develop on (to use a developer build of zap)
********************************************************************************

        BTW, I have installed zap tool manually(https://github.com/project-chip/zap/releases), but the error happen again, so do I need to install zap-cli tool? If this, how can I install it?

  • Hi,

    Which version of nRF Connect SDK are you using? In v2.7.0 and later, the ZAP tool is provided as a west command, and you can install it by issuing the following command inside the Matter repository (modules/lib/matter):

    west zap-gui

    After installing it, you can use west zap-gui to open the ZAP tool GUI and west zap-generate to generate the C++ files. For more information, see ZAP tool.

    Best regards,
    Marte

Related