【ESP32视频分享3】Ubuntu使用 Eclipse开发ESP32程序

前端之家收集整理的这篇文章主要介绍了【ESP32视频分享3】Ubuntu使用 Eclipse开发ESP32程序前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文转自: https://debugdump.com/t_149.html

1. 首先回顾前面两集,搭建 Windows 开发环境 和在 Windows平台搭建Eclipse集成开发环境的视频
【ESP32视频分享1】淘宝最牛 esp32开发板使用分享 开箱教程(helloworld)
【ESP32视频分享2】Window 平台使用 Eclipse开发ESP32程序

2. Ubuntu命令行执行#apt-get install eclipse
这个过程中安装程序会帮你把所有的依赖包括 Java运行环境都安装上去

接下来再安装cdt(用于C/C++开发):
sudo apt-get install eclipse-cdt

3. 打开elipse,点击 File -> Import -> C/C++ -> Existing Code as Makefile Project,
找到 esp-idf 目录下面的 \examples\get-started\hello_world, 导入这个 hello_word项目,
右击项目,在弹出的右击菜单里面选中最后一项Property.
在弹出的对话框中选择 C/C++ Build -> Environment 添加一项:
IDF_PATH ==> /opt/esp-idf/


修改PATH环境变量,添加: /usr/local/xtensa-esp32-elf/bin



C/C++ General -> Path & Symbols -> Includes -> GUN C 添加Directory:
${IDF_PATH}/components/esp32/include
${IDF_PATH}/components/newlib/include
${IDF_PATH}/components/freertos/include
${IDF_PATH}/components/nvs_flash/include
${IDF_PATH}/components/driver/include
${IDF_PATH}/components/log/include
${IDF_PATH}/components/spi_flash/include


参考链接:eclipse-setup.rst

原文链接:https://www.f2er.com/ubuntu/351282.html

猜你在找的Ubuntu相关文章