library not found

Compiling module ModuleInfo I get an error: no such file..... (see attachment).

I found out that the file to be used is found in:
C:\Users\JanP\Documents\Arduino\libraries\AudioController-master\srcAudioController.h:11:24:

Difference is \ re /.

How to solve?

ModuleInfo_BY8X01.ino (752 Bytes)

Compile error.txt (533 Bytes)

jandkr:
I get an error: no such file..... (see attachment).

Why would you cut off the error like that? When you force people to download a file to help you, that greatly reduces your chance of getting help here because some of the forum members will simply go on to the next post instead of bothering with the trouble. When the stuff you need to post exceeds the forum's 9000 character limit, it is OK to use attachments, but your sketch and error is nowhere near that length.

jandkr:
I found out that the file to be used is found in:
C:\Users\JanP\Documents\Arduino\libraries\AudioController-master\srcAudioController.h:11:24:

No, the missing file is JsonStream.h, as clearly stated in the error message:

C:\Users\JanP\Documents\Arduino\libraries\AudioController-master\src/AudioController.h:11:24: fatal error: JsonStream.h: No such file or directory

jandkr:
Difference is \ re /.

That is not the problem. Windows supports both \ and / as path separators.

When you see a "No such file or directory" error it almost always means you need to install the library that contains the missing file.

Often the code you're compiling will come with documentation (either a comment or separate document) that tells you where to get the library dependencies.

In other cases the author of the code will not have been so kind and you'll need to go on a hunt for the missing library.

A good place to start is the Arduino IDE's Library Manager:

  • Sketch > Include Library > Manage Libraries...
  • In the "Filter your search..." box, type some keywords you have gleaned from the missing file name.
  • Scroll through the results for the right library. Click on it.
  • Click "Install".
  • Wait for installation to finish.
  • Click "Close".
  • Try compiling your code again.

If you have no luck in Library Manager then load up your favorite search engine and do a search for the missing filename. You will often get multiple results. If you have a lot of results you might add "arduino" as an additional search keyword. I will usually prefer results on github.com since that is where most Arduino libraries are hosted and downloading from there is fast and easy. In some cases there will be multiple libraries that contain the given filename and you'll need to do some evaluation to determine which seems the most appropriate, then try it out. After downloading the library you found you'll need to install it. This requires a different process than the Library Manager installation. You will find instructions here: