Compile error
See original GitHub issueHi, 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
7.3. Compile Errors and Warnings
A compile error happens when the compiler reports something wrong with your program, and does not produce a machine-language translation.
Read more >Difference between Compile Time Errors and Runtime Errors
Compile-Time Errors: Errors that occur when you violate the rules of writing syntax are known as Compile-Time errors. This compiler error ...
Read more >Compile Error Messages - IBM
Msg ID Message Text Explanation
1001 no statement to compile The rule is does not contain any statements.
1002 unexpected end of program The rule...
Read more >Fix the top 10 most common compile time errors in Java
Top 10 common Java compile errors and how to fix them · Java source file name mismatch · Improper casing · Mismatched brackets...
Read more >What Is a Compilation Error? (with picture) - EasyTechJunkie
A compilation error is an error in building a machine code file for a computer language. Many computer languages compile their source code ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d love to be able to offer one - but frankly it looks like it might be lib 44 that needs one.
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.
Thanks, @joedeveloper! Would be happy to review/merge a PR. 😃