关于使用vscode新建编译环境的问题
Posted: Sat May 22, 2021 3:14 am
各位大佬求助一下。新人小白刚接触。
1.本人参照官网教程快速入门走了一遍,确实可以使用终端可以把ESP32_S2的helloworld和blink编译,烧录进。
2.然后按照bilibili上的视频,按照vscode编译环境。首先发现视频上的插件版本和 当前的使用的插件版本是有点区别。
3.本人先使用esp-idf-tools-setup-offline-2.8.exe 已安装的情况进行VSCODE配置。拷贝例程直接就报 “头文件”的问题,然后转变方向。
4.先再卸载之前安装的esp-idf-tools,删除之前的idf文件夹和tools文件夹,恢复到原来的状态。
5.先安装Git-2.31.1-64-bit.exe、python-3.9.5-amd64.exe默认安装,VSCODE插件选择在线高级安装,等待下载安装,期间出现几次错误,重新继续安装得到安装完成。
6.拷贝例程进行编译。再次报错。如下:
Executing task: cmake -G Ninja .. <
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
The following Python requirements are not satisfied:
pyserial>=3.0
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
gdbgui==0.13.2.0
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
esp-windows-curses; sys_platform == 'win32'
To install the missing packages, please run "c:\Users\Administrator\esp\esp-idf\install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: c:\Users\Administrator\.espressif\python_env\idf4.2_py3.9_env
Python interpreter used: c:\Users\Administrator\.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe
CMake Error at C:/Users/Administrator/esp/esp-idf/tools/cmake/build.cmake:271 (message):
Some Python dependencies must be installed. Check above message for
details.
Call Stack (most recent call first):
C:/Users/Administrator/esp/esp-idf/tools/cmake/build.cmake:397 (__build_check_python)
C:/Users/Administrator/esp/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:6 (project)
请问大佬问题出在哪里?搞了3天了,头有点大了。然后又去使用esp-idf-tools-setup-online-2.8.exe在线重新安装了tools,使用终端调用vscode创建的例程是可以编译的。但是vscode就是不行。
-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/esp/esp-idf/blink/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
1.本人参照官网教程快速入门走了一遍,确实可以使用终端可以把ESP32_S2的helloworld和blink编译,烧录进。
2.然后按照bilibili上的视频,按照vscode编译环境。首先发现视频上的插件版本和 当前的使用的插件版本是有点区别。
3.本人先使用esp-idf-tools-setup-offline-2.8.exe 已安装的情况进行VSCODE配置。拷贝例程直接就报 “头文件”的问题,然后转变方向。
4.先再卸载之前安装的esp-idf-tools,删除之前的idf文件夹和tools文件夹,恢复到原来的状态。
5.先安装Git-2.31.1-64-bit.exe、python-3.9.5-amd64.exe默认安装,VSCODE插件选择在线高级安装,等待下载安装,期间出现几次错误,重新继续安装得到安装完成。
6.拷贝例程进行编译。再次报错。如下:
Executing task: cmake -G Ninja .. <
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
The following Python requirements are not satisfied:
pyserial>=3.0
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
gdbgui==0.13.2.0
reedsolo>=1.5.3,<=1.5.4
bitstring>=3.1.6
ecdsa>=0.16.0
esp-windows-curses; sys_platform == 'win32'
To install the missing packages, please run "c:\Users\Administrator\esp\esp-idf\install.bat"
Diagnostic information:
IDF_PYTHON_ENV_PATH: c:\Users\Administrator\.espressif\python_env\idf4.2_py3.9_env
Python interpreter used: c:\Users\Administrator\.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe
CMake Error at C:/Users/Administrator/esp/esp-idf/tools/cmake/build.cmake:271 (message):
Some Python dependencies must be installed. Check above message for
details.
Call Stack (most recent call first):
C:/Users/Administrator/esp/esp-idf/tools/cmake/build.cmake:397 (__build_check_python)
C:/Users/Administrator/esp/esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:6 (project)
请问大佬问题出在哪里?搞了3天了,头有点大了。然后又去使用esp-idf-tools-setup-online-2.8.exe在线重新安装了tools,使用终端调用vscode创建的例程是可以编译的。但是vscode就是不行。
-- Configuring incomplete, errors occurred!
See also "C:/Users/Administrator/esp/esp-idf/blink/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake -G Ninja .." terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.