Compiler knows where to find library but can't find file

Howdy folks. I'm trying to adapt a sketch I found that uses the GxEPD2 library. I've used the Arduino IDE to install the GxEPD2 library and its dependencies. However, when I try to verify the sketch, the compiler says there's no such file or directory. Here's the output:

Using library GxEPD2 at version 1.3.1 in folder: D:\1. Libraries\Documents\Arduino\libraries\GxEPD2
exit status 1
GxEPD2_BW.h: No such file or directory

So it knows where to find the library that it installed. From what I can tell, the folder structure of the library should be something the compiler can use. The library is located at D:\1. Libraries\Documents\Arduino\libraries\GxEPD2, and the library has a /src folder that contains GxEPD2.BW.h.

The .ino sketch I'm trying to compile has the same filename as the folder it's inside of.

What I find odd is that I can get this to compile on my laptop just fine, but it's on my desktop that I experience this issue. I've tried uninstalling and reinstalling the Arduino IDE, too, but that hasn't helped anything.

Read this before posting a programming question
You are not likely to receive helpful responses without posting your code.

Hi @kronimiciad. I was able to track the source of the bug down to the two consecutive spaces between "1." and "Libraries" in your sketchbook path.

The good news is that, even though I can reproduce the bug when using Arduino IDE 1.8.13, I am not able to reproduce it using the hourly or 2.x beta builds of the Arduino IDE so the bug has already been fixed.

You have two options to fix this:

The first option is to use the hourly build of the classic Arduino IDE or the Arduino IDE 2.x beta. The 2.x beta is primarily intended for beta testers so you might find that you run into some bugs or features that aren't implemented yet. The hourly build of the Arduino IDE should be pretty stable because there haven't been any major changes super recently and no reports of new serious bugs. You can get the hourly here:

and the 2.x beta here:

The second option is to rename the "1. Libraries" folder so it doesn't have two consecutive spaces. You can leave one space, no problem.

pert:
...The second option is to rename the "1. Libraries" folder so it doesn't have two consecutive spaces. You can leave one space, no problem.

Thank you very much, pert! I took the second option as that seemed simpler, and it certainly resolved my issue. Thank you for your help.

SteveMann:
Read this before posting a programming question
You are not likely to receive helpful responses without posting your code.

I've read that post already, but thank you for the reminder. I should have noted that the code is irrelevant: this issue occurred even if I tried to upload a completely empty sketch with only #include <GxEPD2_BW.h>.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

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