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] TFT_LVGL_UI compile fails with Robin Nano v1.2, Marlin bugfix-2.0.x #20090

Closed
BeansIsFat opened this issue Nov 10, 2020 · 8 comments
Closed
Assignees

Comments

@BeansIsFat
Copy link

Bug Description

Compiling the bugfix-2.0.x branch with TFT_LVGL_UI enabled fails with the following error:

Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:25: error: 'suicide' was not declared in this scope

Configuration Files

ZIP file containing Configuration.h and Configuration_adv.h is attached.
config.zip

Steps to Reproduce

  1. Checkout bugfix-2.0.x branch
  2. Enable TFT_LVGL_UI
  3. Set default_envs to mks_robin_nano35 in platform.ini
  4. Compile

Expected behavior:

Successful compile

Actual behavior:

Failed compile with the following error message:
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:25: error: 'suicide' was not declared in this scope

@ellensp
Copy link
Contributor

ellensp commented Nov 11, 2020

Cannot replicate this issue, either with provided configs or by following Steps to reproduce.
Try new bugfix, as it does change hourly.

@thisiskeithb
Copy link
Member

Reopening after further discussion on Discord. I've asked OP to upload all their modified files since they had also modified the pins file to include TMC support and MKSPWC.

@thisiskeithb thisiskeithb reopened this Nov 11, 2020
@BeansIsFat
Copy link
Author

Here is the pins_MKS_ROBIN_NANO.h file (and the platformio.ini file for good measure). These two files, and the config files above, are the only modified files in my environment.
pins_MKS_ROBIN_NANO.h and platformio.ini.zip

@thisiskeithb
Copy link
Member

Full error output with MKSPWC enabled:
In file included from Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/boards.h:24:0,
                 from Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/MarlinConfigPre.h:37,
                 from Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:22:
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp: In function 'void event_handler(lv_obj_t*, lv_event_t)':
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:25: error: 'suicide' was not declared in this scope
       TERN(HAS_SUICIDE, suicide(), queue.enqueue_now_P(PSTR("M84")));
                         ^
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:419:26: note: in definition of macro 'THIRD'
 #define THIRD(a,b,c,...) c
                          ^
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:196:29: note: in expansion of macro '___TERN'
 #define __TERN(T,V...)      ___TERN(_CAT(_NO,T),V)  // Prepend '_NO' to get '_NOT_0' or '_NOT_1'
Compiling .pio/build/mks_robin_nano35/src/src/lcd/extui/lib/mks_ui/wifi_module.cpp.o
                             ^~~~~~~
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:195:29: note: in expansion of macro '__TERN'
 #define _TERN(E,V...)       __TERN(_CAT(T_,E),V)    // Prepend 'T_' to get 'T_0' or 'T_1'
                             ^~~~~~
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:191:29: note: in expansion of macro '_TERN'
 #define TERN(O,A,B)         _TERN(_ENA_1(O),B,A)    // OPTION converted to '0' or '1'
                             ^~~~~
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:7: note: in expansion of macro 'TERN'
       TERN(HAS_SUICIDE, suicide(), queue.enqueue_now_P(PSTR("M84")));
       ^~~~
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:25: note: suggested alternative: 'spi_mode'
       TERN(HAS_SUICIDE, suicide(), queue.enqueue_now_P(PSTR("M84")));
                         ^
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:419:26: note: in definition of macro 'THIRD'
 #define THIRD(a,b,c,...) c
                          ^
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:196:29: note: in expansion of macro '___TERN'
 #define __TERN(T,V...)      ___TERN(_CAT(_NO,T),V)  // Prepend '_NO' to get '_NOT_0' or '_NOT_1'
                             ^~~~~~~
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:195:29: note: in expansion of macro '__TERN'
 #define _TERN(E,V...)       __TERN(_CAT(T_,E),V)    // Prepend 'T_' to get 'T_0' or 'T_1'
                             ^~~~~~
Marlin/src/lcd/extui/lib/mks_ui/../../../../inc/../core/macros.h:191:29: note: in expansion of macro '_TERN'
 #define TERN(O,A,B)         _TERN(_ENA_1(O),B,A)    // OPTION converted to '0' or '1'
                             ^~~~~
Marlin/src/lcd/extui/lib/mks_ui/draw_set.cpp:71:7: note: in expansion of macro 'TERN'
       TERN(HAS_SUICIDE, suicide(), queue.enqueue_now_P(PSTR("M84")));
       ^~~~
*** [.pio/build/mks_robin_nano35/src/src/lcd/extui/lib/mks_ui/draw_set.cpp.o] Error 1

@rhapsodyv
Copy link
Member

can you test this PR? #20214

Thanks.

@BeansIsFat
Copy link
Author

I was able to compile and use the power off feature from the GUI and with M81. It appears to be functioning properly. Thanks.

@rhapsodyv
Copy link
Member

Merged. I'm closing this. Thanks!

@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 Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants