Build Error #1887
hannibal1923
started this conversation in
General Discussion
Build Error
#1887
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the same errors while building the code in VS code. I am using Marlin auto Build, i also tried it with Arduio IDE and i am getting the same error. I only updated the configuration.h and configuration_adv.h as per instructions for the BFPTouch for Ender 3 V2.
Error:
Compiling .pio\build\mega2560\src\src\lcd\e3v2\jyersui\dwin_lcd.cpp.o
In file included from Marlin\src\lcd\e3v2\common../../../inc/MarlinConfigPre.h:37:0,
from Marlin\src\lcd\e3v2\common\dwin_api.cpp:22:
c:\marlin-bugfix-jyersui\marlin\src\core\macros.h: In instantiation of 'constexpr void NOMORE(V&, N) [with V = unsigned int; N = int]':
Marlin\src\lcd\e3v2\common\dwin_api.cpp:323:9: required from here
c:\marlin-bugfix-jyersui\marlin\src\core\macros.h:138:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n < v) v = n;
^Compiling .pio\build\mega2560\src\src\lcd\extui\ui_api.cpp.o
Marlin\src\lcd\e3v2\common\encoder.cpp: In function 'EncoderState Encoder_ReceiveAnalyze()':
Marlin\src\lcd\e3v2\common\encoder.cpp:111:12: error: 'ENCODER_PHASE_0' was not declared in this scope
case ENCODER_PHASE_0:
^~~~~~~~~~~~~~~
Marlin\src\lcd\e3v2\common\encoder.cpp:111:12: note: suggested alternative: 'ENCODER_DIFF_CW'
case ENCODER_PHASE_0:
^~~~~~~~~~~~~~~
ENCODER_DIFF_CW
Marlin\src\lcd\e3v2\common\encoder.cpp:112:37: error: 'ENCODER_PHASE_3' was not declared in this scope
if (lastEncoderBits == ENCODER_PHASE_3) temp_diff++;
^~~~~~~~~~~~~~~
Marlin\src\lcd\e3v2\common\encoder.cpp:112:37: note: suggested alternative: 'ENCODER_DIFF_CW'
if (lastEncoderBits == ENCODER_PHASE_3) temp_diff++;
^~~~~~~~~~~~~~~
ENCODER_DIFF_CW
Marlin\src\lcd\e3v2\common\encoder.cpp:113:37: error: 'ENCODER_PHASE_1' was not declared in this scope
else if (lastEncoderBits == ENCODER_PHASE_1) temp_diff--;
^~~~~~~~~~~~~~~
Marlin\src\lcd\e3v2\common\encoder.cpp:113:37: note: suggested alternative: 'ENCODER_DIFF_CW'
else if (lastEncoderBits == ENCODER_PHASE_1) temp_diff--;
^~~~~~~~~~~~~~~
ENCODER_DIFF_CW
Marlin\src\lcd\e3v2\common\encoder.cpp:115:12: error: 'ENCODER_PHASE_1' was not declared in this scope
case ENCODER_PHASE_1:
^~~~~~~~~~~~~~~
Marlin\src\lcd\e3v2\common\encoder.cpp:115:12: note: suggested alternative: 'ENCODER_DIFF_CW'
case ENCODER_PHASE_1:
^~~~~~~~~~~~~~~
ENCODER_DIFF_CW
Marlin\src\lcd\e3v2\common\encoder.cpp:117:37: error: 'ENCODER_PHASE_2' was not declared in this scope
else if (lastEncoderBits == ENCODER_PHASE_2) temp_diff--;
^~~~~~~~~~~~~~~
Marlin\src\lcd\e3v2\common\encoder.cpp:117:37: note: suggested alternative: 'ENCODER_DIFF_CW'
else if (lastEncoderBits == ENCODER_PHASE_2) temp_diff--;
^~~~~~~~~~~~~~~
ENCODER_DIFF_CW
compilation terminated due to -fmax-errors=5.
*** [.pio\build\mega2560\src\src\lcd\e3v2\common\encoder.cpp.o] Error 1
In file included from c:\marlin-bugfix-jyersui\marlin\src\inc\marlinconfigpre.h:37:0,
from Marlin\src\lcd\e3v2\jyersui\dwin.cpp:27:
c:\marlin-bugfix-jyersui\marlin\src\core\macros.h: In instantiation of 'constexpr decltype ((lhs + rhs)) _MAX(L, R) [with L = int; R = unsigned int; decltype ((lhs + rhs)) = unsigned int]':
Marlin\src\lcd\e3v2\jyersui\dwin.cpp:331:50: required from here
c:\marlin-bugfix-jyersui\marlin\src\core\macros.h:418:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
~~~~^~~~~
Marlin\src\lcd\e3v2\jyersui\dwin.cpp: In static member function 'static void CrealityDWINClass::Draw_Menu(uint8_t, uint8_t, uint8_t)':
Marlin\src\lcd\e3v2\jyersui\dwin.cpp:574:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (selection - scrollpos > MROWS)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Beta Was this translation helpful? Give feedback.
All reactions