Compile Errors - Missing Libraries that are present

I am trying to use the GPIOViewer and have downloaded and added the library into my IDE along with the dependencies but continue to get the following errors and a bit stumped. A newbie learning. ESP, Blynk, and others work great but GPIOViewer continues to give me this error.

In file included from C:\Users\rober\Downloads\firmware\firmware.ino:1:
c:\Users\rober\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:11:10: fatal error: ESPAsyncWebServer.h: No such file or directory
11 | #include <ESPAsyncWebServer.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Any help would be fantastic!

1 Like

Welcome to the forum

Please post the sketch that you are trying to compile, using code tags when you do

Which Arduino board are you using and which board have you got selected in the IDE ?

type or paste code here
```/***
This example is intended to demonstrate the use of the GPIO Viewer Library.

Tutorial : https://youtu.be/UxkOosaNohU
Documentation : https://github.com/thelastoutpostworkshop/gpio_viewer
***/

#include <gpio_viewer.h> // Must me the first include in your project
GPIOViewer gpio_viewer;

void setup()
{
  Serial.begin(115200);

  // Comment the next line, If your code aleady include connection to Wifi
  gpio_viewer.connectToWifi("Your SSID network", "Your WiFi Password");
  // gpio_viewer.setPort(5555);                 // You can set the http port, if not set default port is 8080

  // Your own setup code start here

  // Must be at the end of your setup
  // gpio_viewer.setSamplingInterval(25); // You can set the sampling interval in ms, if not set default is 100ms
  gpio_viewer.begin();
}

// You don't need to change your loop function
void loop() {

}
// The rest of your code here

I am using the ESP32-C6-DevKitC-1
I have the ESP32DEVC6 selected

I can run other code on the board programmed from the IDE including a couple of Blynk projects. I just cannot get the GPIOViewer to compile and load.

Have you followed all the steps on this page ?

Yes, followed the steps exactly and for some reason continue to get the compile error. I will go back and make sure I did not miss a step but fairly certain all is good. Libraries are there, installed successfully, and just seems to be an issue with location of file I assume

Just followed the process again and still get exact same error. Not sure what the issue is but may forgo trying to get this working. I love the idea of looking at the GPIO pins in real time but I am stumped as to the issue

In file included from C:\Users\rober\Downloads\firmware\firmware.ino:2:
c:\Users\rober\OneDrive\Documents\Arduino\libraries\GPIOViewer\src/gpio_viewer.h:11:10: fatal error: ESPAsyncWebServer.h: No such file or directory
11 | #include <ESPAsyncWebServer.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

This error

fatal error: ESPAsyncWebServer.h: No such file or directory

would seem to indicate that the ESPAsyncWebServer is either not installed or not accessible

As an experiment try setting the target board to ESP32 Dev Module and try compiling the sketch. It compiles OK and works for me

Will do

Changed board to ESP32 Dev Module and same results. I will remove and reinstall the other two libraries to see if this may be an issue

Tried uninstalling and reinstalling all libraries and same issue. Not sure what else to try. I installed the libraries from the IDE like all other files. I may try to uninstall the entire IDE to see if this might help. Not sure if the files are simply in the wrong folder or settings are incorrect.

I appreciate all the help

Try saving the sketch file in your sketchbook folder instead of the downloads folder

Will do

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.