Welcome! Log In Create A New Profile

Advanced

Marlin does not compile with LCD support enabled (SOLVED)

Posted by Veesta 
Marlin does not compile with LCD support enabled (SOLVED)
May 04, 2016 08:16AM
Hi there,

I'm currently building Prusa i3 rework and trying to get Marlin to compile.
I'm following these instructions [reprap.org] and have downloaded this already modified file [reprap.pt]

As is, this file compiles without problems.

I'm trying to install a RepRapDiscount Full Graphic Smart Controller as per [reprap.org]
I have U8glib installed.

If i enable this in configuration.h
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
Compiling will fail with:

Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

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

         LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

                                    ^

In file included from sketch\dogm_lcd_implementation.h:40:0,

                 from sketch\ultralcd.cpp:36:

sketch\ultralcd_st7920_u8glib_rrd.h: In function 'uint8_t u8g_dev_rrd_st7920_128x64_fn(u8g_t*, u8g_dev_t*, uint8_t, void*)':

sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]

 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}

                                                                                               ^

sketch\ultralcd_st7920_u8glib_rrd.h:63:9: note: in expansion of macro 'ST7920_WRITE_BYTE'

         ST7920_WRITE_BYTE(0x3E);       //extended mode + GDRAM active

         ^

sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]

 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}

                                                                                               ^

sketch\ultralcd_st7920_u8glib_rrd.h:67:11: note: in expansion of macro 'ST7920_WRITE_BYTE'

           ST7920_WRITE_BYTE(0x80);     //set x = 0

           ^

sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]

 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}

                                                                                               ^

sketch\ultralcd_st7920_u8glib_rrd.h:94:13: note: in expansion of macro 'ST7920_WRITE_BYTE'

             ST7920_WRITE_BYTE(0x80);           //x=0

             ^

sketch\ultralcd_st7920_u8glib_rrd.h:40:95: warning: large integer implicitly truncated to unsigned type [-Woverflow]

 #define ST7920_WRITE_BYTE(a)     {ST7920_SWSPI_SND_8BIT((a)&0xf0);ST7920_SWSPI_SND_8BIT((a)<<4);u8g_10MicroDelay();}

                                                                                               ^

sketch\ultralcd_st7920_u8glib_rrd.h:99:13: note: in expansion of macro 'ST7920_WRITE_BYTE'

             ST7920_WRITE_BYTE(0x80 | 8);       //x=64

             ^

sketch\ultralcd.cpp: In function 'void config_lcd_level_bed()':

ultralcd.cpp:758: error: 'lcd' was not declared in this scope

   lcd.clear(); 

   ^

sketch\ultralcd.cpp: In function 'void lcd_level_bed_cooling()':

ultralcd.cpp:769: error: 'lcd' was not declared in this scope

           lcd.setCursor(0, 0);

           ^

ultralcd.cpp:791: error: 'lcd' was not declared in this scope

    lcd.clear();

    ^

sketch\ultralcd.cpp: In function 'void lcd_level_bed()':

ultralcd.cpp:800: error: 'lcd' was not declared in this scope

        lcd.clear(); 

        ^

sketch\ultralcd.cpp: In function 'void lcd_load_material_extrud_1()':

ultralcd.cpp:944: error: 'lcd' was not declared in this scope

     lcd.setCursor(3, 2);

     ^

sketch\ultralcd.cpp: In function 'void lcd_unload_material_extrud_1()':

ultralcd.cpp:990: error: 'lcd' was not declared in this scope

     lcd.setCursor(3, 2);

     ^

sketch\ultralcd.cpp: In function 'void lcd_init()':

ultralcd.cpp:1418: error: 'lcd' was not declared in this scope

     lcd.clear();

     ^

exit status 1
'lcd' was not declared in this scope

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

Any ideas?

Edited 1 time(s). Last edit at 05/04/2016 09:51AM by Veesta.
Re: Marlin does not compile with LCD support enabled
May 04, 2016 09:37AM
Problem solved.

Had to comment out WITBOX

#define WITBOX
to
//#define WITBOX
Re: Marlin does not compile with LCD support enabled (SOLVED)
May 04, 2016 03:57PM
That must be a custom version of Marlin. Keep an eye out for the Marlin 1.1.0 release, coming soon. Meanwhile, we have a new release candidate posted at [github.com]


|
| Lead Developer of Marlin Firmware
| Help support my work at Patreon and Elsewhere.
|
Sorry, only registered users may post in this forum.

Click here to login