GyverLibs/GyverPortal

Error build other lib if GyverPortal addded in platformio.ini

Bleach665 opened this issue · 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.