thelastoutpostworkshop / gpio_viewer

GPIOViewer Arduino Library to see live GPIO Pins on ESP32 boards
https://youtu.be/JJzRXcQrl3I
MIT License
1.07k stars 110 forks source link

library dependency not installed w/base (gpio_viewere) library #137

Closed mvschaefer closed 2 months ago

mvschaefer commented 2 months ago

--> In file included from C:.local\desktop\treadmill\esp32-treadmill-ctrl\vfb.cpp:15: c:\Users\schae\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:11:10: fatal error: ESPAsyncWebServer.h: No such file or directory 11 | #include | ^~~~~ compilation terminated. exit status 1

Compilation error: exit status 1

mvschaefer commented 2 months ago

during install of library from above: Install library dependencies The library ESPAsyncWebServer:3.1.0 needs some other dependencies currently not installed:

thelastoutpostworkshop commented 2 months ago

Did you install AsyncTCP and ESPAsyncTCP ? They are required

mvschaefer commented 2 months ago

they were both installed as dependencies, the error is now: c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t, uint16_t, char)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? 74 | mbedtls_md5_starts_ret(&_ctx); | ^~~~~~ | mbedtls_md5_starts c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'? 75 | mbedtls_md5_update_ret(&_ctx, data, len); | ^~~~~~ | mbedtls_md5_update c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'? 76 | mbedtls_md5_finish_ret(&_ctx, _buf); | ^~~~~~ | mbedtls_md5_finish c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function 'void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:189:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 189 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In member function 'void AsyncWebSocketClient::_queueMessage(AsyncWebSocketMessage)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:549:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 549 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf

exit status 1

Compilation error: exit status 1

mvschaefer commented 2 months ago

p.s. im looking forward to getting gpio viewer operational!..

thelastoutpostworkshop commented 2 months ago

I need further information to help you. What board and version are you using when compiling ?

mvschaefer commented 2 months ago

arduino 2.3.2 examples/gpioviewer.ino

in the arduino ide, i select ESP32 DEV MODULE, which works for other builds, the board itself is a generic amazon esp32 that has wifi and bt...

thelastoutpostworkshop commented 2 months ago

In the board manager, you have to use ESP32 by Espressif : image

mvschaefer commented 2 months ago

confirmed 3.0.4 is installed

error is: c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp: In function 'bool getMD5(uint8_t, uint16_t, char)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:74:3: error: 'mbedtls_md5_starts_ret' was not declared in this scope; did you mean 'mbedtls_md5_starts'? 74 | mbedtls_md5_starts_ret(&_ctx); | ^~~~~~ | mbedtls_md5_starts c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:75:3: error: 'mbedtls_md5_update_ret' was not declared in this scope; did you mean 'mbedtls_md5_update'? 75 | mbedtls_md5_update_ret(&_ctx, data, len); | ^~~~~~ | mbedtls_md5_update c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\WebAuthentication.cpp:76:3: error: 'mbedtls_md5_finish_ret' was not declared in this scope; did you mean 'mbedtls_md5_finish'? 76 | mbedtls_md5_finish_ret(&_ctx, _buf); | ^~~~~~ | mbedtls_md5_finish c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp: In member function 'void AsyncEventSourceClient::_queueMessage(AsyncEventSourceMessage)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncEventSource.cpp:189:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 189 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp: In member function 'void AsyncWebSocketClient::_queueMessage(AsyncWebSocketMessage)': c:\Users\schae\OneDrive\Documents\Arduino\libraries\ESPAsyncWebServer\src\AsyncWebSocket.cpp:549:7: error: 'ets_printf' was not declared in this scope; did you mean 'vswprintf'? 549 | ets_printf("ERROR: Too many messages queued\n"); | ^~~~~~ | vswprintf

exit status 1

Compilation error: exit status 1

thelastoutpostworkshop commented 2 months ago

Try removing AsyncTCP and ESPAsyncTCP libraries et reinstalling them. GPIOViewer library is tested against AsyncTCP v1.1.4 and ESP Async WebServer v3.0.6

thelastoutpostworkshop commented 2 months ago

image image image

mvschaefer commented 2 months ago

build success after removing libraries an installing per above!

mvschaefer commented 2 months ago

good comms: GPIOViewer >> Release 1.5.6 GPIOViewer >> ESP32 Core Version 3.0.4 GPIOViewer >> Chip Model:ESP32-D0WD, revision:300 GPIOViewer >> No PSRAM GPIOViewer >> Web Application URL is: http://10.0.0.232:8080

time to play - thanks for this tool!

thelastoutpostworkshop commented 2 months ago

Glad it's now working!