“cmake” 必须在 PATH 上可用,以便使用 idf.py。

huangapple go评论60阅读模式
英文:

ESP32 in HomeKit "cmake" must be available on the PATH to use idf.py

问题

以下是您提供的内容的中文翻译部分:

我想将我的ESP32 Cam用作Homekit中的摄像头。我找到了一个有趣的项目,可以在没有桥接器的情况下运行,但我遇到了一些问题。我在Mac上的终端中使用了MacOS Ventura:

cd /Users/<user>/Desktop/Skripte/Mikrocontroller/HomeKit
git clone https://github.com/maximkulkin/esp32-homekit-camera.git
git clone https://github.com/espressif/esp-idf.git
cd /Users/<user>/Desktop/Skripte/Mikrocontroller/HomeKit/esp-idf
sudo sh install.sh
source export.sh
cd /Users/<user>/Desktop/Skripte/Mikrocontroller/HomeKit/esp32-homekit-camera
git submodule update --init --recursive

到目前为止一切都很好,但:

idf.py build

输出:

执行操作:all (别名:build)
ESP-IDF v5.1-dev-3710-gacac972f70
"idf.py" 必须在PATH上可用以使用 idf.py

它应该已经为我的esp32构建项目了。
如果我通过sudo nano /etc/paths添加/usr/local/Desktop/Skripte/Mikrocontroller/HomeKit/esp-idf/tools/cmake,那么idf.py build的输出将更改为zsh: command not found: idf.py

英文:

I wanted to use my ESP32 Cam as camera in Homekit. I found an interesting project which works without bridge, but I have trouble to get it to work. I did in the Terminal on a Mac with MacOS Ventura:

cd /Users/&lt;user&gt;/Desktop/Skripte/Mikrocontroller/HomeKit
git clone https://github.com/maximkulkin/esp32-homekit-camera.git
git clone https://github.com/espressif/esp-idf.git
cd /Users/&lt;user&gt;/Desktop/Skripte/Mikrocontroller/HomeKit/esp-idf
sudo sh install.sh
source export.sh
cd /Users/&lt;user&gt;/Desktop/Skripte/Mikrocontroller/HomeKit/esp32-homekit-camera
git submodule update --init --recursive

until now everything is fine, but:

idf.py build

Output:

Executing action: all (aliases: build)
ESP-IDF v5.1-dev-3710-gacac972f70
&quot;cmake&quot; must be available on the PATH to use idf.py

It should have build the project for my esp32
If I add /usr/local/Desktop/Skripte/Mikrocontroller/HomeKit/esp-idf/tools/cmake via sudo nano /etc/paths, the output of idf.py build changes to zsh: command not found: idf.py

答案1

得分: 0

我通过将CMake安装为应用程序并将其添加到路径中PATH="/Applications/CMake.app/Contents/bin":"$PATH"来解决了这个问题。

英文:

I solved it by installing cmake as app and adding it with PATH=&quot;/Applications/CMake.app/Contents/bin&quot;:&quot;$PATH&quot; to the path

huangapple
  • 本文由 发表于 2023年3月4日 04:00:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75631409.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定