Go Down

Topic: IDE 1.8.0 Released -- update: 1.8.5 (Read 83783 times) previous topic - next topic

Ryansand

i just unistalled 1.8.0 and now have 1.8.5 but get this error just trying to compile a program.
My online arduino editor compiled however. Please help! want to just go back to my old editor or fix this issue. Below is my error code.

Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users\Ryan Sand\Documents\Arduino\Arduino-Msi\libraries\TestingOnly.ino:69:29: fatal error: SparkFunLSM9DS1.h: No such file or directory

 #include <SparkFunLSM9DS1.h>

                             ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

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

pert

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:
  • https://www.arduino.cc/en/Guide/Libraries#toc4
  • https://www.arduino.cc/en/Guide/Libraries#toc5


My online arduino editor compiled however.
That's because all the libraries in the Library Manager index are preinstalled in the Arduino Web Editor. When using the real Arduino IDE you need to install the libraries you need, but it's easy enough. Actually the >1500 preinstalled libraries in the Arduino Web Editor is a common cause of problems due to filename collisions.

Go Up