Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error build other lib if GyverPortal addded in platformio.ini #81

Open
Bleach665 opened this issue Apr 13, 2023 · 1 comment
Open

Error build other lib if GyverPortal addded in platformio.ini #81

Bleach665 opened this issue Apr 13, 2023 · 1 comment

Comments

@Bleach665
Copy link

Bleach665 commented Apr 13, 2023

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.

@GyverLibs
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants