esp-mdf
esp-mdf copied to clipboard
在win10环境下安装了MDF,编译不能成功
F:\esp32\mesh-demo\get-started>cd F:\esp32\esp-mdf\examples\get-started
F:\esp32\esp-mdf\examples\get-started>idf.py build Executing action: all (aliases: build) Running cmake in directory f:\esp32\esp-mdf\examples\get-started\build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 f:\esp32\esp-mdf\examples\get-started"... -- Found Git: D:/Gitlab/Git/cmd/git.exe (found version "2.32.0.windows.2") -- Initialising new submodule components/asio/asio... Cloning into 'F:/esp32/esp-mdf/esp-idf/components/asio/asio'... bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://gitee.com': No such file or directory fatal: clone of 'https://gitee.com/espressif/asio.git' into submodule path 'F:/esp32/esp-mdf/esp-idf/components/asio/asio' failed Failed to clone 'components/asio/asio'. Retry scheduled Cloning into 'F:/esp32/esp-mdf/esp-idf/components/asio/asio'... bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://gitee.com': No such file or directory fatal: clone of 'https://gitee.com/espressif/asio.git' into submodule path 'F:/esp32/esp-mdf/esp-idf/components/asio/asio' failed Failed to clone 'components/asio/asio' a second time, aborting CMake Error at F:/esp32/esp-mdf/esp-idf/tools/cmake/git_submodules.cmake:48 (message): Git submodule init failed for components/asio/asio Call Stack (most recent call first): F:/esp32/esp-mdf/esp-idf/tools/cmake/build.cmake:77 (git_submodule_check) F:/esp32/esp-mdf/esp-idf/tools/cmake/build.cmake:163 (__build_get_idf_git_revision) F:/esp32/esp-mdf/esp-idf/tools/cmake/idf.cmake:50 (__build_init) F:/esp32/esp-mdf/esp-idf/tools/cmake/project.cmake:7 (include) F:/esp32/esp-mdf/project.cmake:20 (include) CMakeLists.txt:5 (include)
-- Configuring incomplete, errors occurred! cmake failed with exit code 1
F:\esp32\esp-mdf\examples\get-started>
一直报错,安装的IDF却是可以用的。
你可以尝试一下,不下载 ESP-MDF 下的 ESP-IDF,直接修改 ESP-MDF 指定的 esp-idf 链接,看是否可以解决,修改方式如下: 修改 esp-idf 的路径配置 https://github.com/espressif/esp-mdf/blob/master/project.cmake#L15