GyverPortal icon indicating copy to clipboard operation
GyverPortal copied to clipboard

Error build other lib if GyverPortal addded in platformio.ini

Open Bleach665 opened this issue 1 year ago • 1 comments

At first I dont know is it a GyverPortal issue. But, other lib what has version.h file was build correctly, so look like that is.

This platformio.ini config

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = arduino
lib_deps = 
    blynkkk/Blynk@^1.0.1
    gyverlibs/GyverPortal

and #include <BlynkSimpleEsp8266.h> in main.cpp

causes an error

.pio\libdeps\d1_mini\Blynk\src/BlynkSimpleEsp8266.h:21:2: error: #error Please update your ESP8266 Arduino Core

Reason of this is that #include <version.h> in BlynkSimpleEsp8266.h:21:2 from Blynk library include version.h from GyverPortal library. Not from framework-arduinoespressif8266. So ESP_SDK_VERSION_NUMBER was undefined and cause this error.

After gyverlibs/GyverPortal excluded from lib_deps in platformio.ini build was successful.

Bleach665 avatar Apr 13 '23 05:04 Bleach665

Probably issue is in Blynk, because it has #include <...> - if file is inside the library, it should be included in double quotes. Try to change #include "version.h" in Blynk

GyverLibs avatar Jul 25 '23 23:07 GyverLibs