MP3 player code error

Hello everyone,

I received a code error message for a wooden MP3 player for children. Because of length, the original code is attached.

I’d appreciate help in resolving the error.

Thank you!

Error message:

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

/Users/acyber/Desktop/arduino/Nina_s_radio__Chriga_/Nina_s_radio__Chriga_.ino:2:29: fatal error: Adafruit_VS1053.h: No such file or directory
 #include <Adafruit_VS1053.h>
                             ^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

MP3 player code.txt (9.15 KB)

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:

Thanks so much! Your initial suggestion solved the error. Now there's a note that seems to be for info purposes only, but just in case, can you take a look and let me know if I need to do anything in particular.

Build options changed, rebuilding all
Sketch uses 17248 bytes (53%) of program storage space. Maximum is 32256 bytes.
Global variables use 995 bytes (48%) of dynamic memory, leaving 1053 bytes for local variables. Maximum is 2048 bytes.

That is just some helpful information that tells you how much memory on the Arduino board your sketch is using. This is very useful information because the memory on the microcontroller is very limited.