Dear all,
I have used the ESP-IDF for a month and managed to get two example projects working. I use Visual Studio Code with the ESP-IDF version 5 extension. Hence no PlatformIO and no Devcontainer.
I have started trying the third party library esp-idf-lib, but I can't make it work, hence please help.
I use the "ESP-IDF: New project" command. I make use of the facility "Add your ESP-IDF Component directory" to include the esp-idf-lib in my project. I use the "template-app" when creating the project. The library is copied into the project automatically (a nice feature actually preventing me from destroying the original). The project then includes the directory: D:/Projects_Local/ESP32_IoT_book/DHT_BUZZER/components/components containing a lot of directories each being a component. For example D:/Projects_Local/ESP32_IoT_book/DHT_BUZZER/components/components/dht contains CMakeLists.txt, component.mk, dht.c, dht.h and LICENSE.
My main.c contains the statement #include <dht.h>
Question 1: When I compile and build the project I get the error message:
"Component directory D:/Projects_Local/ESP32_IoT_book/DHT_BUZZER/components/components does not contain a CMakeLists.txt file. No component will be added"
Hence, it does not look sufficiently down in the directory. My understanding reading the documentation on the Build is that it automatically goes down to the individual components in the directory. I have not touched the CMakeLists.txt in the project, since the documentation states that the defaults are sufficient. What is wrong in my approach?
Question 2: Further down in the output from the compile and build process is a fatal error saying:
"D:/Projects_Local/ESP32_IoT_book/DHT_BUZZER/main/main.c:4:10: fatal error: components/dht/dht.h: No such file or directory", but there is a file dht.h in D:/Projects_Local/ESP32_IoT_book/DGT_BUZZER/components/components/dht. What is wrong in my approach?
Any help is appreciated.
Regards,
Jorgen
Build using third party component libraries
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Bing [Bot] and 134 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.