新手安裝esp-idf不工作

falcon0083
Posts: 1
Joined: Thu Mar 26, 2020 9:30 am

新手安裝esp-idf不工作

Postby falcon0083 » Thu Mar 26, 2020 9:40 am

小弟在win10中, 用esp-idf-tools-setup-2.3下载安装esp-idf后, 在hello_world专案执行idf.py menuconfig报错... 已经搞了两天了还是不行... 请各外先进赐教, 谢谢.

错误讯息如下

J:\ESP32\projects\hello_world>idf.py menuconfig
Checking Python dependencies...
Python requirements from J:\ESP32\esp-idf\requirements.txt are satisfied.
Executing action: menuconfig
Running cmake in directory j:\esp32\projects\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=0 j:\esp32\projects\hello_world"...
Warn about uninitialized values.
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.26.0.windows.1")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: J:/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: J:/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: J:/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: J:/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: J:/ESP32/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
Traceback (most recent call last):
File "J:/ESP32/esp-idf/tools/kconfig_new/confgen.py", line 571, in <module>
main()
File "J:/ESP32/esp-idf/tools/kconfig_new/confgen.py", line 230, in main
config = kconfiglib.Kconfig(args.kconfig)
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 656, in __init__
self.top_node) # prev_node
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1636, in _parse_block
node) # prev_node
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1587, in _parse_block
prev_node)
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1587, in _parse_block
prev_node)
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1551, in _parse_block
while self._has_tokens or self._next_line():
File "J:\ESP32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1186, in _next_line
self._line = self._file.readline()
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8c in position 3728: illegal multibyte sequence
CMake Error at J:/ESP32/esp-idf/tools/cmake/kconfig.cmake:208 (message):
Failed to run confgen.py
(J:\ESP32\.espressif\python_env\idf4.0_py3.7_env\Scripts\python.exe;J:/ESP32/esp-idf/tools/kconfig_new/confgen.py;--kconfig;J:/ESP32/esp-idf/Kconfig;--sdkconfig-rename;J:/ESP32/esp-idf/sdkconfig.rename;--config;J:/ESP32/projects/hello_world/sdkconfig;--env-file;J:/ESP32/projects/hello_world/build/config.env).
Error 1
Call Stack (most recent call first):
J:/ESP32/esp-idf/tools/cmake/build.cmake:441 (__kconfig_generate_config)
J:/ESP32/esp-idf/tools/cmake/project.cmake:337 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "J:/ESP32/projects/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

Who is online

Users browsing this forum: Baidu [Spider] and 6 guests