exit status 1, error compiling board

hi there,
so the other week i purchased a 3D printer which i wanted, it was possible to, install Marlin 1.1.7, when compiling to the TriGorilla Mainboard, i was faced with the following error message:

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Users~Censored~\Desktop\Marlin-1.1.7\Marlin\Marlin.ino:45:110: fatal error: U8glib.h: No such file or directory

#include <U8glib.h> // library for graphics LCD by Oli Kraus (GitHub - olikraus/U8glib_Arduino: U8glib library for Arduino)

^

compilation terminated.

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

i installed the so called U8glib.h and input it into the Marlin folder with the other c++ codes and i still got the same error, so i double slashed out the line of code that states that i need the U8glib.h file and it worked, sort of. i was still shown the exit status 1 and i am really confused to what is going on
tia

(deleted)

ive looked into this issue on google loads, all problems have been different, it worked and then just stopped

1 Like

(deleted)

1 Like

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: