mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Update eclipse-setup-windows.rst
This commit is contained in:
parent
c17c0a2dc5
commit
a0928b4ce2
@ -40,7 +40,7 @@ Windows 平台上的 Eclipse 配置
|
||||
项目属性
|
||||
----------
|
||||
|
||||
* 新项目将出现在 “Project Explorer” 下。请右键选择该项目,并在菜单中选择顶层 “Properties”。
|
||||
* 新项目将出现在 “Project Explorer” 下。请右键选择该项目,并在菜单中选 “Properties”。
|
||||
|
||||
* 点击 “C/C++ Build” 属性页。
|
||||
|
||||
@ -50,7 +50,7 @@ Windows 平台上的 Eclipse 配置
|
||||
|
||||
* 选择 “Add...”,并在对应位置输入 ``BATCH_BUILD`` 和 ``1``。
|
||||
|
||||
* 再次点击 “Add...”,输入名称 ``IDF_PATH``,并填写 ESP-IDF 的完整安装路径。``IDF_PATH`` 目录路径应使用正斜杠,而非反斜线,即 ``C:/Users/MyUser/Development/esp-idf``。
|
||||
* 再次点击 “Add...”,输入名称 ``IDF_PATH``,并填写 ESP-IDF 的完整安装路径。``IDF_PATH`` 目录路径应使用正斜杠,而非反斜线,例如 ``C:/Users/MyUser/Development/esp-idf``。
|
||||
|
||||
* 选择 PATH 环境变量,删除默认值,并将其替换为 ``C:\msys32\usr\bin;C:\msys32\mingw32\bin;C:\msys32\opt\xtensa-esp32-elf\bin`` (如果您已经将 msys32 安装到其他目录,这里请自行调整)。
|
||||
|
||||
@ -61,13 +61,15 @@ Windows 平台上的 Eclipse 配置
|
||||
|
||||
* 从 “Providers” 列表中选择 “CDT GCC Built-in Compiler Settings Cygwin”。在 “Command to get compiler specs” 输入框中,用 ``xtensa-esp32-elf-gcc`` 替换行首的 ``${COMMAND}``,最终完整的 ``Command to get compiler specs`` 应为 ``xtensa-esp32-elf-gcc ${FLAGS} -E -P -v -dD "${INPUTS}"``。
|
||||
|
||||
* 从 “Providers” 列表中选择 “CDT GCC Build Output Parser”,将 “Compiler command pattern:” 修改为 ``xtensa-esp32-elf-(gcc|g\+\+|c\+\+|cc|cpp|clang)``
|
||||
* 从 “Providers” 列表中选择 “CDT GCC Build Output Parser”,将 “Compiler command pattern” 修改为 ``xtensa-esp32-elf-(gcc|g\+\+|c\+\+|cc|cpp|clang)``
|
||||
|
||||
点击 “C/C++ General" -> "Indexer” 属性页。
|
||||
|
||||
* 选择 “Enable project specific settings” 以启用本页上的其他设置。
|
||||
|
||||
* 取消选中 “Allow heuristic resolution of includes”。启用此选项时,有时会导致 Eclipse 无法找到正确的头文件目录。
|
||||
.. note::
|
||||
|
||||
取消选中 “Allow heuristic resolution of includes”。因为启用此选项时,有时会导致 Eclipse 无法找到正确的头文件目录。
|
||||
|
||||
|
||||
在 Eclipse IDE 中创建项目
|
||||
|
Loading…
Reference in New Issue
Block a user