-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
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
Comments
Cannot replicate this issue, either with provided configs or by following Steps to reproduce. |
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 |
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. |
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 |
can you test this PR? #20214 Thanks. |
I was able to compile and use the power off feature from the GUI and with M81. It appears to be functioning properly. Thanks. |
Merged. I'm closing this. Thanks! |
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. |
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
andConfiguration_adv.h
is attached.config.zip
Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: