Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with LCD_PROGRESS_BAR & DogLCD defined together #1315

Closed
spac3man opened this issue Jan 5, 2015 · 20 comments
Closed

Bug with LCD_PROGRESS_BAR & DogLCD defined together #1315

spac3man opened this issue Jan 5, 2015 · 20 comments

Comments

@spac3man
Copy link

spac3man commented Jan 5, 2015

Hello,

With the most recent version of Marlin, I now receive the following errors:

ultralcd.cpp: In function 'void lcd_goto_menu(void (*)(), uint32_t, bool)':
ultralcd.cpp:199: error: 'lcd_set_custom_characters' was not declared in this scope
/dogm_lcd_implementation.h: In function 'void lcd_status_screen()':
dogm_lcd_implementation.h:88: error: too many arguments to function 'void lcd_implementation_init()'
ultralcd.cpp:271: error: at this point in file
/dogm_lcd_implementation.h: In function 'void lcd_update()':
dogm_lcd_implementation.h:88: error: too many arguments to function 'void lcd_implementation_init()'
ultralcd.cpp:1192: error: at this point in file
ultralcd.cpp: In function 'void lcd_finishstatus()':
ultralcd.cpp:1296: error: 'progressBarTick' was not declared in this scope

Can anyone tell me what I've done wrong?

Thanks

@boelle
Copy link
Contributor

boelle commented Jan 5, 2015

most recent.... is that the dev branch or stable?

@boelle
Copy link
Contributor

boelle commented Jan 5, 2015

what branch did you use?

@monkeydave
Copy link
Contributor

I have managed to emulate the same errors with RepRap Discount Full Graphic Smart Controller & LCD_PROGRESS_BAR defined in the Development branch.
@spac3man if you comment out #define LCD_PROGRESS_BAR on line 301 of Configuration_adv.h this should allow you to compile and get up and running.

@spac3man
Copy link
Author

spac3man commented Jan 5, 2015

Sorry I didn't clarify. It was the Dev Branch. I will try your suggestion MonkeyDave and report back

Thanks

@spac3man
Copy link
Author

spac3man commented Jan 6, 2015

I commented out the Line 301 in Configuration_adv.h as monkeydave suggested and the following error is what occurred. I am using the Dev branch of Marlin with Ramps 1.4 configured for a Prusa I3 with 2 extruders and heated bed. I also have a ReprapDiscountFullGraphics display.

In file included from ultralcd.cpp:39:
/dogm_lcd_implementation.h:36:20: warning: U8glib.h: No such file or directory
In file included from /dogm_lcd_implementation.h:38,
from ultralcd.cpp:39:
/dogm_font_data_marlin.h:12:25: warning: utility/u8g.h: No such file or directory
In file included from /dogm_lcd_implementation.h:40,
from ultralcd.cpp:39:
/ultralcd_st7920_u8glib_rrd.h:9: warning: ignoring #pragma GCC optimize
In file included from /Configuration.h:788,
from /Marlin.h:22,
from /temperature.h:24,
from ultralcd.cpp:1:
/thermistortables.h:10: warning: only initialized variables can be placed into program memory area
/thermistortables.h:173: warning: only initialized variables can be placed into program memory area
In file included from /dogm_lcd_implementation.h:37,
from ultralcd.cpp:39:
/DOGMbitmaps.h:4: warning: only initialized variables can be placed into program memory area
/DOGMbitmaps.h:131: warning: only initialized variables can be placed into program memory area
/DOGMbitmaps.h:156: warning: only initialized variables can be placed into program memory area
In file included from /dogm_lcd_implementation.h:38,
from ultralcd.cpp:39:
dogm_font_data_marlin.h:13: error: 'u8g_fntpgm_uint8_t' does not name a type
dogm_font_data_marlin.h:172: error: 'u8g_fntpgm_uint8_t' does not name a type
In file included from /dogm_lcd_implementation.h:40,
from ultralcd.cpp:39:
ultralcd_st7920_u8glib_rrd.h:43: error: 'u8g_t' was not declared in this scope
ultralcd_st7920_u8glib_rrd.h:43: error: 'u8g' was not declared in this scope
ultralcd_st7920_u8glib_rrd.h:43: error: 'u8g_dev_t' was not declared in this scope
ultralcd_st7920_u8glib_rrd.h:43: error: 'dev' was not declared in this scope
ultralcd_st7920_u8glib_rrd.h:43: error: expected primary-expression before 'msg'
ultralcd_st7920_u8glib_rrd.h:43: error: expected primary-expression before 'void'
ultralcd_st7920_u8glib_rrd.h:43: error: initializer expression list treated as compound expression
ultralcd_st7920_u8glib_rrd.h:44: error: expected ',' or ';' before '{' token
/ultralcd.h:21: warning: 'blink' defined but not used
ultralcd.cpp:27: warning: 'manual_feedrate' defined but not used
/ultralcd_st7920_u8glib_rrd.h:24: warning: 'void ST7920_SWSPI_SND_8BIT(uint8_t)' defined but not used

@Wurstnase
Copy link
Contributor

You've copied u8glib to program files > Arduino > libraries?

@ErikZalm ErikZalm closed this as completed Jan 6, 2015
@boelle boelle reopened this Jan 6, 2015
@spac3man
Copy link
Author

spac3man commented Jan 6, 2015

I checked to see if the u8glib library was there and indeed it was. From https://bintray.com/olikraus/u8glib/Arduino I downloaded and copied the library again and now with the commented line as per monkeydave, it compiles properly. I don't know why it didn't the first time.

Thanks again for your help.

@spac3man spac3man closed this as completed Jan 6, 2015
@monkeydave
Copy link
Contributor

This should probably be left open and the title changed, there is a bug with LCD_PROGRESS_BAR & DogLCD defined together.

@spac3man spac3man reopened this Jan 6, 2015
@spac3man spac3man changed the title Compiling errors Bug with LCD_PROGRESS_BAR & DogLCD defined together Jan 6, 2015
@boelle boelle added this to the Bug Fixing Round 3 milestone Jan 6, 2015
@JoshyuNL
Copy link

JoshyuNL commented Jan 8, 2015

This issue #1257 is looking similar to this from my quick reading of this.
Since the babystepping is no longer an broken, #1257 is only about the LCD_PROGRESS_BAR not compiling when on a RepRap Discount Full Graphic Smart Controller.

Just to clarify, I get the same bug if I enable the progress bar.

@Grogyan
Copy link
Contributor

Grogyan commented Jan 9, 2015

RAMPS 1.4
No SD card inserted but enabled
RepRap Discount Full Graphic Display
Max6675 Thermocouple

Display stuck on Marlin startup screen with vertical bar in the middle
Milestone 2

@stv0g
Copy link
Contributor

stv0g commented Jan 9, 2015

@Grogyan which version are you using? Maybe you can try my version vis LogoLCD fixes: http://github.com/stv0g/Marlin/tree/LogoLCD

@Grogyan
Copy link
Contributor

Grogyan commented Jan 9, 2015

@stv0g
I'm using Milestone 2.
Do you have a pull request in your repo that has the changes?

@thinkyhead
Copy link
Member

LCD_PROGRESS_BAR support still needs to be added to the DOGM implementation. So, don't enable it for that LCD yet.

@stv0g
Copy link
Contributor

stv0g commented Jan 9, 2015

@Grogyan No, its in the LogoLCD branch of my fork, still testing...

@thinkyhead Do you want to open a feature request for that? I would implement it in a few days (weeks).

@thinkyhead
Copy link
Member

@stv0g I wrote the implementation for Hitachi, so I should probably finish the job. But I won't be able to get to it until tomorrow. Or, heck, why not now? I've been wanting to play with UECIDE more.

@thinkyhead thinkyhead self-assigned this Jan 9, 2015
@thinkyhead
Copy link
Member

#1343 is in the queue and ready for testing.

@stv0g
Copy link
Contributor

stv0g commented Jan 10, 2015

Oh yeah, I didn't knew that about the Hitachi Implementation.

Nice work! Unfortunately we've done some duplicated work with the cleanup of DOGM code, which I've in my queue..

@thinkyhead
Copy link
Member

Cleanup is always a risk, haha! Hmm, I've gotten pretty good at merging through git, but it sure takes a while. Since it's not a huge file, if I could grab your changes, I will add them onto my pull request. I have a pretty decent diff tool (ok, BBEdit) that speeds the process. I haven't gotten used to this new Collaborator tag yet, but will explore the higher git powers available there soon... Planning to stick to a policy of not pulling my own requests without peer review. (Be kind.)

@boelle
Copy link
Contributor

boelle commented Jan 10, 2015

should be fixed with PR #1343

@boelle boelle closed this as completed Jan 10, 2015
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants