英文:
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/<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
until now everything is fine, but:
idf.py build
Output:
Executing action: all (aliases: build)
ESP-IDF v5.1-dev-3710-gacac972f70
"cmake" 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="/Applications/CMake.app/Contents/bin":"$PATH"
to the path
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论