Closed kalon33 closed 3 years ago
Hello @kalon33 I just pulled master from zero, found one error, but it's about this library: Compiling .pio/build/lolin_d32/libd7c/GxEPD/GxEPD.cpp.o In file included from .pio/libdeps/lolin_d32/Adafruit GFX Library/Adafruit_GrayOLED.cpp:20:0: .pio/libdeps/lolin_d32/Adafruit GFX Library/Adafruit_GrayOLED.h:30:32: fatal error: Adafruit_I2CDevice.h: No such file or directory
Just deleted Adafruit_GrayOLED header and cpp file.
I copied: Config.h.dist > Config.h and just uncommented:
And updated: EINK_HAS_COLOR to true
I hit on build and it compiles: Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [== ] 23.2% (used 75916 bytes from 327680 bytes) Flash: [==========] 99.2% (used 1560518 bytes from 1572864 bytes) esptool.py v2.6 ==================================================== [SUCCESS] Took 72.07 seconds
Try deleting the library folder completely: .pio/libdeps/lolin_d32/GxEPD and let it download again. For me it looks that it's not finding the include of GxEPD but it should be there if you check the library folders.
In another topic: PLATFORM: Espressif 32 (1.11.1) > WEMOS LOLIN D32 >Your framework looks outdated
Mine reports: PLATFORM: Espressif 32 (1.12.4) > WEMOS LOLIN D32
Just go to Platformio logo -> Platforms -> Updates And update the Espressif32 framework to last version (Just in case)
I get following errors trying to compile T5 version
`> Executing task: C:\Users\gorzy.platformio\penv\Scripts\pio.exe run <
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32.html
PLATFORM: Espressif 32 (1.11.1) > WEMOS LOLIN D32
HARDWARE: ESP32 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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:
compilation terminated.
[.pio\build\lolin_d32\lib9a8\Adafruit GFX Library@src-ac08a74c2b277f63bd79d3b6a68484c8\Adafruit_GrayOLED.cpp.o] Error 1
src\main.cpp: In function 'uint32_t skip(WiFiClient&, int32_t)':
src\main.cpp:154:15: warning: unused variable 'v' [-Wunused-variable]
int16_t v = client.read();
^
src\main.cpp: In function 'bool parsePathInformation(char, char, char, unsigned int, bool)':
src\main.cpp:241:27: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
host[hostname_length] = NULL;
^
src\main.cpp: In function 'void handleWebToDisplay(char, String, bool)':
src\main.cpp:427:58: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
uint32_t got = read(client, input_buffer, get);
^
src\main.cpp:163:10: note: candidate 1: uint32_t read(WiFiClient&, uint8_t, int32_t)
uint32_t read(WiFiClient& client, uint8_t buffer, int32_t bytes)
^
In file included from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/stdlib.h:11:0,
from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/cores/esp32/WString.h:26,
from lib/Config/Config.h:1,
from src\main.cpp:1:
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/sys/unistd.h:149:32: note: candidate 2: int read(int, void, size_t)
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void __buf, size_t __nbyte ));
^
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/_ansi.h:65:30: note: in definition of macro '_EXFUN'
^
src\main.cpp:431:76: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
uint32_t gotmore = read(client, input_buffer + got, get - got);
^
src\main.cpp:163:10: note: candidate 1: uint32_t read(WiFiClient&, uint8_t, int32_t)
uint32_t read(WiFiClient& client, uint8_t buffer, int32_t bytes)
^
In file included from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/stdlib.h:11:0,
from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/cores/esp32/WString.h:26,
from lib/Config/Config.h:1,
from src\main.cpp:1:
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/sys/unistd.h:149:32: note: candidate 2: int read(int, void, size_t)
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void __buf, size_t __nbyte ));
^
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/_ansi.h:65:30: note: in definition of macro '_EXFUN'
^
src\main.cpp:509:77: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t {aka unsigned int}' [-Wformat=]
bytes_read,millisBmp-millisIni, millisEnd-millisBmp, millisEnd-millisIni);
^
src\main.cpp:341:14: warning: unused variable 'creatorBytes' [-Wunused-variable]
uint32_t creatorBytes = read32(client);
^
src\main.cpp:274:12: warning: unused variable 'startTime' [-Wunused-variable]
uint32_t startTime = millis();
^
src\main.cpp:494:28: warning: 'colored' may be used uninitialized in this function [-Wmaybe-uninitialized]
else if (colored && with_color)
^
src\main.cpp:490:11: warning: 'whitish' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (whitish)
^
============================= [FAILED] Took 53.89 seconds =============================
The terminal process "C:\Users\gorzy.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.`
Removing GrayOLED gives me: `> Executing task: C:\Users\gorzy.platformio\penv\Scripts\pio.exe run <
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/lolin_d32.html
PLATFORM: Espressif 32 (1.11.1) > WEMOS LOLIN D32
HARDWARE: ESP32 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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:
^
src\main.cpp:431:76: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
uint32_t gotmore = read(client, input_buffer + got, get - got);
^
src\main.cpp:163:10: note: candidate 1: uint32_t read(WiFiClient&, uint8_t, int32_t)
uint32_t read(WiFiClient& client, uint8_t buffer, int32_t bytes)
^
In file included from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/stdlib.h:11:0,
from C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/cores/esp32/WString.h:26,
from lib/Config/Config.h:1,
from src\main.cpp:1:
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/sys/unistd.h:149:32: note: candidate 2: int read(int, void, size_t)
_READ_WRITE_RETURN_TYPE _EXFUN(read, (int __fd, void __buf, size_t __nbyte ));
^
C:/Users/gorzy/.platformio/packages/framework-arduinoespressif32@2.10004.191002/tools/sdk/include/newlib/_ansi.h:65:30: note: in definition of macro '_EXFUN'
^
src\main.cpp:509:77: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t {aka unsigned int}' [-Wformat=]
bytes_read,millisBmp-millisIni, millisEnd-millisBmp, millisEnd-millisIni);
^
src\main.cpp:341:14: warning: unused variable 'creatorBytes' [-Wunused-variable]
uint32_t creatorBytes = read32(client);
^
src\main.cpp:274:12: warning: unused variable 'startTime' [-Wunused-variable]
uint32_t startTime = millis();
^
src\main.cpp:494:28: warning: 'colored' may be used uninitialized in this function [-Wmaybe-uninitialized]
else if (colored && with_color)
^
src\main.cpp:490:11: warning: 'whitish' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (whitish)
^
Compiling .pio\build\lolin_d32\lib911\ESP8266Audio\libflac\cpu.c.o
Compiling .pio\build\lolin_d32\lib911\ESP8266Audio\libflac\fixed.c.o
In file included from .pio\libdeps\lolin_d32\ESP8266Audio\src\libflac\cpu.c:34:0:
lib/Config/config.h:8:1: error: unknown type name 'String'
String bearer1 = "cb79cd9e55121ff8f90a28c1ee8353dc53dc27131d87_YOUR_TOKEN";
^
lib/Config/config.h:8:18: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
String bearer1 = "cb79cd9e55121ff8f90a28c1ee8353dc53dc27131d87_YOUR_TOKEN";
Compiling .pio\build\lolin_d32\lib911\ESP8266Audio\libflac\float.c.o
^
lib/Config/config.h:11:1: error: unknown type name 'String'
Compiling .pio\build\lolin_d32\lib911\ESP8266Audio\libflac\format.c.o
String bearer2 = "";
^
lib/Config/config.h:11:18: warning: initialization makes integer from pointer without a
cast [-Wint-conversion]
String bearer2 = "";
^
lib/Config/config.h:14:1: error: unknown type name 'String'
String bearer3 = "";
^
lib/Config/config.h:14:18: warning: initialization makes integer from pointer without a
cast [-Wint-conversion]
String bearer3 = "";
^
lib/Config/config.h:22:1: error: unknown type name 'uint64_t'
uint64_t DEEPSLEEP_SECONDS = 3600*3; // Ex. 3 hours
^
lib/Config/config.h:44:1: error: unknown type name 'uint8_t'
uint8_t eink_rotation=3;
^
lib/Config/config.h:77:1: error: unknown type name 'int8_t'
int8_t EINK_CS = 5;
^
lib/Config/config.h:78:1: error: unknown type name 'int8_t'
int8_t EINK_RST = 16;
^
lib/Config/config.h:79:1: error: unknown type name 'int8_t'
int8_t EINK_DC = 17;
^
lib/Config/config.h:80:1: error: unknown type name 'int8_t'
int8_t EINK_BUSY = 4;
^
*** [.pio\build\lolin_d32\lib911\ESP8266Audio\libflac\cpu.c.o] Error 1
============================== [FAILED] Took 8.86 seconds ==============================
The terminal process "C:\Users\gorzy.platformio\penv\Scripts\pio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it. `
Hi, Just go to .pio/libdeps folder, find the Adafruit library, and delete this file. This is a problem with Adafruit GFX dependency. The only way to solve it would be to fork it and remove this file. Tell me if it worked.
I admit I cluttered my comment. There were two logs from compilation. One with GrayOled, and second one showing errors after removing GrayOled files.
Sorry to be more clear, delete both the cpp and the header file: Adafruit_GrayOLED.h -> delete Adafruit_GrayOLED.cpp -> delete
If this is an annoyance I will just fork Adafruit and completely wipe out this two.
Alternatively this can be solved adding: https://github.com/adafruit/Adafruit_BusIO.git
Just pushed it to the master branch. Just reopen if still does not compile!
I have to miss some step because compilation still fails. I would be grateful for checking my list.
cale_t5
branch#define GDEH0213B72 // 2.13" b/w new panel
Adafruit_GrayOLED.h
and Adafruit_GrayOLED.cpp
(there are 4 copies - in Adafruit GFX and Adafruit GFX@...)By looking at your screenshot I noticed:
Here are my logs and screen:
lib/Config/config.h:11:1: error: unknown type name 'String' String bearer2 = "";
Strange, I don't get that! Anyways let's try something simpler, use branch :+1:
https://github.com/martinberlin/eink-calendar/tree/cale
Just fill in Wifi user / pass and try to create an account in cale.es so you get a Screen URL.
If that does not work just send me an email to martin@luckycloud.de and we make some screen sharing session. I recommend this branch since in the T5 branch I prepared 3 screens but also used ESP8266 audio library since I recorded some MP3 in Spiffs and I was making a toy for my daughter. So maybe the best is to start with a simple branch, that just renders an image from Wifi and does not have any additional libraries.
Didn't had any more feedback so I'm clossing here. If you want to add something please reopen
When trying to build for t5s with GDEW027C44 e-ink screen in platformio, I got an error, here's the log:
When I replace the proper define with another screen (for example GDEW027W3), it builds properly (but screen doesn't work of course...)
An idea how to fix this?