Error compiling for board Arduino/Genuino Mega or Mega 2560.

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

C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\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.

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

Then i downloaded and added GitHub - olikraus/U8glib_Arduino: U8glib library for Arduino
( U8glib_Arduino/U8glib.h at master · olikraus/U8glib_Arduino · GitHub ) to
**C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\Marlin\ **
but there is no changes

And i cannot find such path
C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\Marlin\Marlin.ino:45:110

Only till
C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\Marlin\Marlin.ino

KaurGR:
Then i downloaded and added [u]https://github.com/olikraus/U8glib_Arduino[/u]
( U8glib_Arduino/src/U8glib.h at master · olikraus/U8glib_Arduino · GitHub ) to
**C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\Marlin\ **
but there is no changes

Because that's not how you install an Arduino library.
Do this:

  • Sketch > Include Library > Manage Libraries
  • Wait for the download to finish
  • In the "Filter your search..." box, type "U8glib"
  • Scroll down through the results until you see "U8glib by oliver". Click on it.
  • Click "Install"
  • Wait for installation to finish.
  • Click "Close".

More information:
https://www.arduino.cc/en/Guide/Libraries

New error cannot fit here

Uus tekstidokument (2).txt (20.7 KB)

KaurGR:
And i cannot find such path
C:\Users\Kasutaja\Desktop\Marlin-1.1.x\Marlin-1.1.x\Marlin\Marlin.ino:45:110

Those numbers at the end indicate the line number and column where the error occurred in the file. So the error is at line 45, column 110.

pert:
Those numbers at the end indicate the line number and column where the error occurred in the file. So the error is at line 45, column 110.

Okay, got you.

whats the " 'rx_buffer' was not declared in this scope " about?

void MarlinSerial::flush(void) {
// Don't change this order of operations. If the RX interrupt occurs between
// reading rx_buffer_head and updating rx_buffer_tail, the previous rx_buffer_head
// may be written to rx_buffer_tail, making the buffer appear full rather than empty.
CRITICAL_SECTION_START;
rx_buffer.head = rx_buffer.tail; ~Error from this line
CRITICAL_SECTION_END;

I have Redone 6 times and always comes " 'rx_buffer' was not declared in this scope " DonT Know What To Do!

This Marlin is set up by the factory

ring_buffer_pos_t MarlinSerial::available(void) {
const ring_buffer_pos_t h = atomic_read_rx_head(), t = rx_buffer.tail; ~ERROR
return (ring_buffer_pos_t)(RX_BUFFER_SIZE + h - t) & (RX_BUFFER_SIZE - 1);

Error message.txt (21.4 KB)

In order to get help, you are probably going to have to show people where rx_buffer gets defined.
That's where the problem is likely to be.

DaleScott:
In order to get help, you are probably going to have to show people where rx_buffer gets defined.
That's where the problem is likely to be.

Ugh...

https://www.upload.ee/image/8765580/Marlin_-_MarlinSerial.cpp___Arduino_1.8.5_04.08.2018_01_38_09.png

`?

sorry I dont understand :drooling_face:

Okay got it fixed #define SERIAL_PORT should been 0 .now lcd screen is not working ... you can close this topic . wont be expecting any response

É so deixar desmarcado

serial port 0