Error compiling

I get the error below when trying to compile the pachage from this forum
http://community.robo3d.com/index.php?threads/marlin-1-1-7-release-for-robo-r1-r1-plus-variants.18362/

C:\Users\randy\OneDrive\Documents\Arduino\Marlin\Marlin.ino:45:110: fatal error: U8glib.h: No such file or directory

#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)

^

compilation terminated.

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

I googled the file its looking for, I found it, I added it to the directory with the same results.

Post your code

I'm new but what code? I have several tabs and each of them have code on it. All give me the same error.

I've tried to send the code but it says there is a 9000 character limit

So strip your program down to the smallest program which compiles and shows the error. Usually this will expose the error for you. If not, post it here and an expert will find the problem very quickly.

</> top left when typing a reply to post code correctly.

It appears you’re missing a library but its hard to be sure without your code. What kind of arduino board are you using?

The error is in the my post above.

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

C:\Users\randy\OneDrive\Documents\Arduino\Marlin\Marlin.ino:45:110: fatal error: U8glib.h: No such file or directory

#include <U8glib.h> // library for graphics LCD by Oli Kraus (https://github.com/olikraus/U8glib_Arduino)

^

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.

The message exceeds the maximum allowed length (9000 characters).

Do you have an email I can send it to?

I googled the file its looking for, I found it, I added it to the directory with the same results.

Which directory?

Did you actually add it into your IDE library?

Yes. The default location is C:\Users\randy\OneDrive\Documents\Arduino

If the default limit is 9000 characters how do I get you the code ?

If you go into IDE, Sketch>Include library is the library listed? If not add .ZIP library and add the library.

jbarth200:
If you go into IDE, Sketch>Include library is the library listed? If not add .ZIP library and add the library.

Which library should I include or what .zip file should I include? Is there a set of instructions I can follow that explains what I'm supposed to do. The only thing I've found were to tell me where to put the firmware at to compile it. Nothing telling me anything about libraries.

It appears you're trying to call this library..U8glib.h..that appears to be what is missing.

Is there a set of instructions I can follow that explains what I'm supposed to do. The only thing I've found were to tell me where to put the firmware at to compile it. Nothing telling me anything about libraries.

I might be getting closer

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

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

 #define X_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:445:0: note: this is the location of the previous definition

     #define X_MAX_PIN           2

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

 #define Y_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:451:0: note: this is the location of the previous definition

     #define Y_MAX_PIN          15

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

 #define Z_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\BlinkM.cpp:5:

sketch\pins.h:457:0: note: this is the location of the previous definition

     #define Z_MAX_PIN          19

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

 #define X_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:445:0: note: this is the location of the previous definition

     #define X_MAX_PIN           2

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

 #define Y_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:451:0: note: this is the location of the previous definition

     #define Y_MAX_PIN          15

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

 #define Z_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:457:0: note: this is the location of the previous definition

     #define Z_MAX_PIN          19

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

 #define X_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:445:0: note: this is the location of the previous definition

     #define X_MAX_PIN           2

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

 #define Y_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:451:0: note: this is the location of the previous definition

     #define Y_MAX_PIN          15

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

 #define Z_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\MarlinSerial.cpp:23:

sketch\pins.h:457:0: note: this is the location of the previous definition

     #define Z_MAX_PIN          19

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:2564:0: warning: "X_MAX_PIN" redefined

 #define X_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:445:0: note: this is the location of the previous definition

     #define X_MAX_PIN           2

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:2565:0: warning: "Y_MAX_PIN" redefined

 #define Y_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:451:0: note: this is the location of the previous definition

     #define Y_MAX_PIN          15

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:2566:0: warning: "Z_MAX_PIN" redefined

 #define Z_MAX_PIN          -1

 ^

In file included from sketch\Marlin.h:23:0,

                 from sketch\Marlin_main.cpp:30:

sketch\pins.h:457:0: note: this is the location of the previous definition

     #define Z_MAX_PIN          19

 ^

sketch\Marlin_main.cpp:2192:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

         LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

                                    ^

In file included from sketch\SdFile.h:27:0,

                 from sketch\cardreader.h:8,

                 from sketch\Marlin_main.cpp:44:

SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

 struct fpos_t {

        ^

In file included from sketch\Marlin.h:10:0,

                 from sketch\Marlin_main.cpp:30:

c:\program files\windowsapps\arduinollc.arduinoide_1.8.10.0_x86__mdqgnx93n4wtt\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

 __extension__ typedef long long fpos_t;

                                 ^

sketch\Marlin_main.cpp: In function 'void loop()':

sketch\Marlin_main.cpp:588:49: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

                  card.openFile("robo~1.gco",true);

                                                 ^

sketch\Marlin_main.cpp: In function 'void set_bed_level_equation_lsq(double*)':

sketch\Marlin_main.cpp:884:36: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

     planeNormal.debug("planeNormal");

                                    ^

exit status 1
using typedef-name 'fpos_t' after 'struct'

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

I'm sure a quick google search on how to install a library for arduino will give you some good results. How many examples found online are you putting together? Not to assume, but if you're not sure how to install a library I cannot imagine you're pulling together multiple sketches you have written? Who knows if any of these sketches even work together.

jbarth200:
I'm sure a quick google search on how to install a library for arduino will give you some good results. How many examples found online are you putting together? Not to assume, but if you're not sure how to install a library I cannot imagine you're pulling together multiple sketches you have written? Who knows if any of these sketches even work together.

I'm not trying to personally write anything I was told that I need to update the firmware so that I would have mesh leveling.

Is there an example of a project you're following online or something? Who said anything about firmware? I think it points to that library, and as stated you should try a google search for how to do what you need.

They're trying to compile Marlin. Marlin is a popular 3D printer firmware that's written as an Arduino sketch.

Evidently they have resolved the library installation problem and are now dealing with another issue, which is likely caused by an incorrect configuration. Marlin has a file Configuration.h and another Configuration_adv.h which contain a ton of #define directives used to configure the firmware for the specific 3D printer it will be used on. Some of these #defines can simply be commented/uncommented to turn the feature on/off, others have a value that can be adjusted.

randywhite30:
I get the error below when trying to compile the pachage from this forum
Community Favorite - Marlin 1.1.7 Release for Robo R1, R1+PLUS & Variants | ROBO 3D User Forum

There are multiple versions available for download from that link. Which one did you download? Also, it's a 21 page thread. Likely any problem you're having has already been discussed there. Did you search through the thread for the error you're encountering?

pert:
They're trying to compile Marlin. Marlin is a popular 3D printer firmware that's written as an Arduino sketch.

Evidently they have resolved the library installation problem and are now dealing with another issue, which is likely caused by an incorrect configuration. Marlin has a file Configuration.h and another Configuration_adv.h which contain a ton of #define directives used to configure the firmware for the specific 3D printer it will be used on. Some of these #defines can simply be commented/uncommented to turn the feature on/off, others have a value that can be adjusted.
There are multiple versions available for download from that link. Which one did you download? Also, it's a 21 page thread. Likely any problem you're having has already been discussed there. Did you search through the thread for the error you're encountering?

I was trying to user the one for the r1 plus. Thats the one that is supposed to allow me to mesh level my bed so that it provides more consistent prints. Yes I searched the thread but I only skimmed through the pages looking for the error I'm having. I'll reach out the the vendor tomorrow to see if they can help me a little more on getting what I need.