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

Compile error #1

Closed
StofLE opened this issue Sep 7, 2018 · 6 comments
Closed

Compile error #1

StofLE opened this issue Sep 7, 2018 · 6 comments

Comments

@StofLE
Copy link

StofLE commented Sep 7, 2018

Hi, nice project!

I'm on Windows with Visual Studio Code and PlatformIO and get compile error:

Processing esp32 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
INFORMATION: Es konnten keine Dateien mit dem angegebenen
Muster gefunden werden.
PLATFORM: Espressif 32 > DOIT ESP32 DEVKIT V1
SYSTEM: ESP32 240MHz 320KB RAM (4MB Flash)
DEBUG: CURRENT(esp-prog) EXTERNAL(esp-prog, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny)
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(deep) COMPATIBILITY(soft)
Collected 44 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |-- <SPI> 1.0
|-- <GxEPD> #5c075bc
|   |-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |   |-- <SPI> 1.0
|   |-- <SPI> 1.0
|-- <Timezone> #bbea256
|   |-- <Time> 1.5
|-- <WifiManager> 0.99.9 #10406e9
|   |-- <DNSServer> 1.1.0 #9113193
|   |   |-- <WiFi> 1.0
|   |-- <WebServer> 1.0 #75d2645
|   |   |-- <WiFi> 1.0
|   |   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|-- <DNSServer> 1.1.0 #9113193
|   |-- <WiFi> 1.0
|-- <WebServer> 1.0 #75d2645
|   |-- <WiFi> 1.0
|   |-- <FS> 1.0
|-- <AsyncMqttClient> 0.8.2 #33cdd50
|   |-- <AsyncTCP> 1.0.1
|-- <ESP Async WebServer> 1.2.0
|   |-- <AsyncTCP> 1.0.1
|   |-- <Time> 1.5
|   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|   |-- <ArduinoJson> 5.13.2
|-- <ArduinoJson> 5.13.2
|-- <Time>
|   |-- <Timezone> #bbea256
|   |   |-- <Time> 1.5
|-- <NTPClient> 3.1.0
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
|-- <HTTP>
|   |-- <TokenParsing>
|   |-- <FS> 1.0
|   |-- <ArduinoJson> 5.13.2
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <Update> 1.0
|   |-- <ESP Async WebServer> 1.2.0
|   |   |-- <AsyncTCP> 1.0.1
|   |   |-- <Time> 1.5
|   |   |-- <FS> 1.0
|   |   |-- <WiFi> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |-- <Display>
|   |   |-- <DataStructures>
|   |   |-- <GxEPD> #5c075bc
|   |   |   |-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <FS> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |   |-- <SPIFFS> 1.0
|   |   |   |-- <FS> 1.0
|   |   |-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |   |   |-- <SPI> 1.0
|   |   |-- <Variables>
|   |   |   |-- <Time>
|   |   |   |   |-- <Timezone> #bbea256
|   |   |   |   |   |-- <Time> 1.5
|   |   |   |-- <FS> 1.0
|   |   |   |-- <ArduinoJson> 5.13.2
|   |   |   |-- <Settings>
|   |   |   |   |-- <Ticker> 1.1
|   |   |   |   |-- <ESPmDNS> 1.0
|   |   |   |   |   |-- <WiFi> 1.0
|   |   |   |   |-- <Time>
|   |   |   |   |   |-- <Timezone> #bbea256
|   |   |   |   |   |   |-- <Time> 1.5
|   |   |   |   |-- <FS> 1.0
|   |   |   |   |-- <ArduinoJson> 5.13.2
|   |   |   |   |-- <SPIFFS> 1.0
|   |   |   |   |   |-- <FS> 1.0
|   |   |   |   |-- <Timezone> #bbea256
|   |   |   |   |   |-- <Time> 1.5
|   |   |   |   |-- <WiFi> 1.0
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |   |-- <Time> 1.5
|   |   |-- <Settings>
|   |   |   |-- <Ticker> 1.1
|   |   |   |-- <ESPmDNS> 1.0
|   |   |   |   |-- <WiFi> 1.0
|   |   |   |-- <Time>
|   |   |   |   |-- <Timezone> #bbea256
|   |   |   |   |   |-- <Time> 1.5
|   |   |   |-- <FS> 1.0
|   |   |   |-- <ArduinoJson> 5.13.2
|   |   |   |-- <SPIFFS> 1.0
|   |   |   |   |-- <FS> 1.0
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |   |-- <WiFi> 1.0
|   |-- <Settings>
|   |   |-- <Ticker> 1.1
|   |   |-- <ESPmDNS> 1.0
|   |   |   |-- <WiFi> 1.0
|   |   |-- <Time>
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |-- <FS> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |   |-- <SPIFFS> 1.0
|   |   |   |-- <FS> 1.0
|   |   |-- <Timezone> #bbea256
|   |   |   |-- <Time> 1.5
|   |   |-- <WiFi> 1.0
|-- <Time> 1.5
|-- <MQTT>
|   |-- <ArduinoJson> 5.13.2
|   |-- <TokenParsing>
|   |-- <AsyncMqttClient> 0.8.2 #33cdd50
|   |   |-- <AsyncTCP> 1.0.1
|   |-- <Settings>
|   |   |-- <Ticker> 1.1
|   |   |-- <ESPmDNS> 1.0
|   |   |   |-- <WiFi> 1.0
|   |   |-- <Time>
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |-- <FS> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |   |-- <SPIFFS> 1.0
|   |   |   |-- <FS> 1.0
|   |   |-- <Timezone> #bbea256
|   |   |   |-- <Time> 1.5
|   |   |-- <WiFi> 1.0
|-- <Display>
|   |-- <DataStructures>
|   |-- <GxEPD> #5c075bc
|   |   |-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |   |   |-- <SPI> 1.0
|   |   |-- <SPI> 1.0
|   |-- <FS> 1.0
|   |-- <ArduinoJson> 5.13.2
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <Adafruit GFX Library> 1.2.9 #5b672ff
|   |   |-- <SPI> 1.0
|   |-- <Variables>
|   |   |-- <Time>
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |-- <FS> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |   |-- <Settings>
|   |   |   |-- <Ticker> 1.1
|   |   |   |-- <ESPmDNS> 1.0
|   |   |   |   |-- <WiFi> 1.0
|   |   |   |-- <Time>
|   |   |   |   |-- <Timezone> #bbea256
|   |   |   |   |   |-- <Time> 1.5
|   |   |   |-- <FS> 1.0
|   |   |   |-- <ArduinoJson> 5.13.2
|   |   |   |-- <SPIFFS> 1.0
|   |   |   |   |-- <FS> 1.0
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |   |-- <WiFi> 1.0
|   |   |-- <Timezone> #bbea256
|   |   |   |-- <Time> 1.5
|   |   |-- <Time> 1.5
|   |-- <Settings>
|   |   |-- <Ticker> 1.1
|   |   |-- <ESPmDNS> 1.0
|   |   |   |-- <WiFi> 1.0
|   |   |-- <Time>
|   |   |   |-- <Timezone> #bbea256
|   |   |   |   |-- <Time> 1.5
|   |   |-- <FS> 1.0
|   |   |-- <ArduinoJson> 5.13.2
|   |   |-- <SPIFFS> 1.0
|   |   |   |-- <FS> 1.0
|   |   |-- <Timezone> #bbea256
|   |   |   |-- <Time> 1.5
|   |   |-- <WiFi> 1.0
|-- <WiFi> 1.0
|-- <Settings>
|   |-- <Ticker> 1.1
|   |-- <ESPmDNS> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <Time>
|   |   |-- <Timezone> #bbea256
|   |   |   |-- <Time> 1.5
|   |-- <FS> 1.0
|   |-- <ArduinoJson> 5.13.2
|   |-- <SPIFFS> 1.0
|   |   |-- <FS> 1.0
|   |-- <Timezone> #bbea256
|   |   |-- <Time> 1.5
|   |-- <WiFi> 1.0
Compiling .pioenvs\esp32\src\main.cpp.o
Archiving .pioenvs\esp32\libd03\libDNSServer.a
In file included from .piolibdeps\ESP Async WebServer_ID306\src/ESPAsyncWebServer.h:453:0,
from src\main.cpp:10:
.piolibdeps\ESP Async WebServer_ID306\src/WebHandlerImpl.h: In constructor 'AsyncCallbackWebHandler::AsyncCallbackWebHandler()':
.piolibdeps\ESP Async WebServer_ID306\src/WebHandlerImpl.h:71:49: error: 'HTTP_ANY' was not declared in this scope
AsyncCallbackWebHandler() : _uri(), _method(HTTP_ANY), _onRequest(NULL), _onUpload(NULL), _onBody(NULL){}
^
In file included from lib\Settings/Settings.h:6:0,
from lib\Display/DisplayTemplateDriver.h:12,
from src\main.cpp:16:
lib\Settings/StringStream.h: In member function 'virtual size_t StringStream::write(uint8_t)':
lib\Settings/StringStream.h:21:57: warning: no return statement in function returning non-void [-Wreturn-type]
virtual size_t write(uint8_t c) { string += (char)c; };
^
Compiling .pioenvs\esp32\lib616\WebServer\WebServer.cpp.o
In file included from lib\HTTP/EpaperWebServer.h:4:0,
from src\main.cpp:17:
lib\HTTP/PatternHandler.h: At global scope:
lib\HTTP/PatternHandler.h:25:11: error: 'WebRequestMethod' does not name a type
const WebRequestMethod method,
^
lib\HTTP/PatternHandler.h:40:9: error: 'WebRequestMethod' does not name a type
const WebRequestMethod method;
^
In file included from src\main.cpp:17:0:
lib\HTTP/EpaperWebServer.h:25:40: error: 'WebRequestMethod' does not name a type
BodyHandler(const char* uri, const WebRequestMethod method, ArBodyHandlerFunction handler);
^
lib\HTTP/EpaperWebServer.h:41:11: error: 'WebRequestMethod' does not name a type
const WebRequestMethod method;
^
lib\HTTP/EpaperWebServer.h:47:42: error: 'WebRequestMethod' does not name a type
UploadHandler(const char* uri, const WebRequestMethod method, ArUploadHandlerFunction handler);
^
Compiling .pioenvs\esp32\lib3c2\WifiManager\WiFiManager.cpp.ol
ib\HTTP/EpaperWebServer.h:48:42: error: 'WebRequestMethod' does not name a type
UploadHandler(const char* uri, const WebRequestMethod method, ArRequestHandlerFunction onCompleteFn, ArUploadHandlerFunction handler);
^
In file included from src\main.cpp:17:0:
lib\HTTP/EpaperWebServer.h:65:11: error: 'WebRequestMethod' does not name a type
const WebRequestMethod method;
^
lib\HTTP/EpaperWebServer.h:117:47: error: 'WebRequestMethod' does not name a type
void onPattern(const String& pattern, const WebRequestMethod method, PatternHandler::TPatternHandlerFn fn);
^
lib\HTTP/EpaperWebServer.h:118:47: error: 'WebRequestMethod' does not name a type
void onPattern(const String& pattern, const WebRequestMethod method, PatternHandler::TPatternHandlerBodyFn fn);
^
lib\HTTP/EpaperWebServer.h:121:40: error: 'WebRequestMethod' does not name a type
void on(const String& pattern, const WebRequestMethod method, ArRequestHandlerFunction fn);
^
lib\HTTP/EpaperWebServer.h:122:40: error: 'WebRequestMethod' does not name a type
void on(const String& pattern, const WebRequestMethod method, ArBodyHandlerFunction fn);
^
lib\HTTP/EpaperWebServer.h:123:46: error: 'WebRequestMethod' does not name a type
void onUpload(const String& pattern, const WebRequestMethod method, ArUploadHandlerFunction uploadFn);
^
lib\HTTP/EpaperWebServer.h:124:46: error: 'WebRequestMethod' does not name a type
void onUpload(const String& pattern, const WebRequestMethod method, ArRequestHandlerFunction onCompleteFn, ArUploadHandlerFunction uploadFn);
^
src\main.cpp: In function 'void initDisplay()':
src\main.cpp:44:12: warning: deleting object of polymorphic class type 'GxIO_SPI' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete io;
^
src\main.cpp: In function 'void onWifiEvent(system_event_id_t)':
Compiling .pioenvs\esp32\libfb6\AsyncTCP_ID1826\AsyncTCP.cpp.o
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_WIFI_READY' not handled in switch [-Wswitch]
switch (event) {
^
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_SCAN_DONE' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_STOP' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_CONNECTED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_AUTHMODE_CHANGE' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_LOST_IP' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_WPS_ER_SUCCESS' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_WPS_ER_FAILED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_WPS_ER_TIMEOUT' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_STA_WPS_ER_PIN' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_START' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_STOP' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_STACONNECTED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_STADISCONNECTED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_STAIPASSIGNED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_AP_PROBEREQRECVED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_GOT_IP6' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_ETH_START' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_ETH_STOP' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_ETH_CONNECTED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_ETH_DISCONNECTED' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_ETH_GOT_IP' not handled in switch [-Wswitch]
src\main.cpp:135:12: warning: enumeration value 'SYSTEM_EVENT_MAX' not handled in switch [-Wswitch]

I also tried to use your precompiled binary. How to flash it to ESP32?

I also could switch to linux with some help wich programs/dependencies must be met...

Stefan

@StofLE
Copy link
Author

StofLE commented Sep 8, 2018

By the way: on Linux (Ubuntu and PlatformIO) similar output...

Stefan

@sidoh
Copy link
Owner

sidoh commented Sep 8, 2018

I think the HTTP library being used made some breaking changes. Should either update to stay compatible or find a way to fix to an older version.

You can flash the binary using esptool.

@StofLE StofLE closed this as completed Sep 20, 2018
@joedeveloper
Copy link

If anyone else comes across this, I was able to move forward on osx by:
editing platformio.ini:

[common]
...
ESP Async [email protected]
....

I also removed lib44 with:
pio lib uninstall 44

then it was able to compile and run .. still having some issues getting the template settings or possibly pin wiring right

@sidoh
Copy link
Owner

sidoh commented Dec 18, 2018

Thanks, @joedeveloper! Would be happy to review/merge a PR. :)

@joedeveloper
Copy link

joedeveloper commented Dec 19, 2018

I'd love to be able to offer one - but frankly it looks like it might be lib 44 that needs one.

also removed lib44 with:
pio lib uninstall 44

This was me misleading myself, the actual steps that resolved seems to have been what is mentioned in platformio forums

in epaper_templates/.piolibdeps/Time_ID44/
rename Time.h to _Time.h - edit files in that dir to reflect the file renaming.

Or we all just agree to use OS's with sane defaults. I am certainly missing it.

@sidoh
Copy link
Owner

sidoh commented Dec 19, 2018

Ah yes, this exact issue has given me trouble in the past as well. My usual fix for this kind of thing if the upstream project is inactive is to fork it and point my repo at a patched branch.

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

3 participants