khoih-prog / AsyncMQTT_Generic

Arduino Arduino Library for ESP8266, ESP32, Portenta_H7, STM32 and RP2040W asynchronous MQTT client implementation. This library, ported to support ESP32, WT32_ETH01 (ESP32 + LAN8720), ESP8266, Portenta_H7 (Ethernet or WiFi) and STM32 (LAN8742A or LAN8720 Ethernet), Teensy 4.1 using QNEthernet, RASPBERRY_PI_PICO_W with CYW43439 WiFi. Currently supporting TLS/SSL for ESP32 only
MIT License
64 stars 10 forks source link

ESP32 PlatformIO Compilation Failure LwIP.h: No such file or directory #11

Closed pprakash closed 2 years ago

pprakash commented 2 years ago

Describe the bug

Trying to compile AsyncMqtt_Generic library on ESP32 using PlatformIO.

Steps to Reproduce

Used FullyFeaturedSSL_ESP32.ino and tried compiling the same.

Expected behavior

Successful compile of the sketch.

Actual behavior

Getting error during compiliation.

Debug and AT-command log (if applicable)

` * Executing task in folder ESP32 Testings: C:\Users\lenovo.platformio\penv\Scripts\platformio.exe run

Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Library Manager: Installing khoih-prog/AsyncMQTT_Generic @ ^1.6.1 Unpacking [####################################] 100% Library Manager: AsyncMQTT_Generic@1.7.0 has been installed! Library Manager: Resolving dependencies... Library Manager: Installing me-no-dev/AsyncTCP @ >=1.1.1 Unpacking [####################################] 100% Library Manager: AsyncTCP@1.1.1 has been installed! Library Manager: Installing git+https://github.com/khoih-prog/ESPAsyncTCP git version 2.37.1.windows.1 Cloning into 'C:\Users\lenovo.platformio.cache\tmp\pkg-installing-30z7lx_o'... remote: Enumerating objects: 51, done. remote: Counting objects: 100% (51/51), done. remote: Compressing objects: 100% (46/46), done. Receiving objects: 100% (51/51)sed 23 (delta 1), pack-reused 0 Receiving objects: 100% (51/51), 51.97 KiB | 403.00 KiB/s, done. Resolving deltas: 100% (2/2), done. Library Manager: ESPAsyncTCP@1.3.0+sha.7cbee24 has been installed! Library Manager: Installing khoih-prog/AsyncTCP_SSL @ >=1.3.0 Unpacking [####################################] 100% Library Manager: AsyncTCP_SSL@1.3.1 has been installed! Library Manager: Installing khoih-prog/ESPAsync_WiFiManager @ >=1.14.0 Unpacking [####################################] 100% Library Manager: ESPAsync_WiFiManager@1.14.1 has been installed! Library Manager: Resolving dependencies... Library Manager: Installing me-no-dev/ESP Async WebServer @ >=1.2.3 Unpacking [####################################] 100% Library Manager: ESP Async WebServer@1.2.3 has been installed! Library Manager: Resolving dependencies... Library Manager: Installing khoih-prog/ESP_DoubleResetDetector @ >=1.3.2 Unpacking [####################################] 100% Library Manager: ESP_DoubleResetDetector@1.3.2 has been installed! Library Manager: Installing khoih-prog/WebServer_WT32_ETH01 @ >=1.5.1 Unpacking [####################################] 100% Library Manager: WebServer_WT32_ETH01@1.5.1 has been installed! Library Manager: Installing git+https://github.com/khoih-prog/STM32AsyncTCP git version 2.37.1.windows.1 Cloning into 'C:\Users\lenovo.platformio.cache\tmp\pkg-installing-rapgaval'... remote: Enumerating objects: 61, done. remote: Counting objects: 100% (61/61), done. remote: Compressing objects: 100% (43/43), done. remote: Total 61 (delta 9), reused 53 (delta 9), pack-reused 0 Receiving objects: 100% (61/61), 52.72 KiB | 228.00 KiB/s, done. Resolving deltas: 100% (9/9), done. Library Manager: STM32AsyncTCP@1.0.1+sha.e88a8bc has been installed! Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (5.1.1) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:



Information

Please ensure to specify the following:

khoih-prog commented 2 years ago

Again and again, do some research before posting the similar issue many people already posted.

Try using Arduino IDE first, until everything is OK, use PIO, which requires much more knowledge, skills and manual settings.

Post your issue in PIO, unless Arduino IDE has problem. Continue wasting other people's time will get you blocked from accessing the library.

Selection_061

pprakash commented 2 years ago

@khoih-prog .. Thanks for looking into this. I couldn't find a direct solution towards this problem during my search.

For people like me.. below is what made this wonderful library work with PlatformIO + Visual Studio combination.

Added below two lines to platformio.ini.

lib_ldf_mode = deep+ lib_compat_mode = strict

khoih-prog commented 2 years ago

They are aready in

https://github.com/khoih-prog/AsyncMQTT_Generic/blob/e61c24ecc8c09a6f8cb4613e071c49dc41d80d9f/platformio/platformio.ini#L41-L44

You have to be familiar with PIO and to modify with try-and-error. PIO is not just as easy to use and sophisticated as Arduino IDE yet.