bigtreetech / BIGTREETECH-SKR-mini-E3

BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
2.03k stars 1.98k forks source link

Marlin\src\lcd\ultralcd.cpp:47:48: error: 'LONG_FILENAME_LENGTH' was not declared in this scope #52

Open bASHer91 opened 5 years ago

bASHer91 commented 5 years ago

Can anyone help with this please? Keeps failing at build.

In file included from C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish.h:60:0, from C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/Arduino.h:30, from c:\cr10\marlin-2.0.x-skr-mini-e3-v1.2\marlin\src\hal\shared\marduino.h:36, from Marlin\src\lcd../gcode/../inc/../HAL/./HAL_STM32F1/HAL.h:32, from Marlin\src\lcd../gcode/../inc/../HAL/HAL.h:26, from Marlin\src\lcd../gcode/../inc/MarlinConfig.h:30, from Marlin\src\lcd../gcode/queue.h:29, from Marlin\src\lcd\ultralcd.cpp:31: Marlin\src\lcd\ultralcd.cpp:47:48: error: 'LONG_FILENAME_LENGTH' was not declared in this scope constexpr uint8_t MAX_MESSAGE_LENGTH = max(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE 2 (LCD_WIDTH)); ^ C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish_math.h:109:35: note: in definition of macro 'max'

define max(a,b) ((a)>(b)?(a):(b))

                               ^

Marlin\src\lcd\ultralcd.cpp:47:48: note: suggested alternative: 'TONE_QUEUE_LENGTH' constexpr uint8_t MAX_MESSAGE_LENGTH = max(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE 2 (LCD_WIDTH)); ^ C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish_math.h:109:35: note: in definition of macro 'max'

define max(a,b) ((a)>(b)?(a):(b))

                               ^

Marlin\src\lcd\ultralcd.cpp:47:48: error: 'LONG_FILENAME_LENGTH' was not declared in this scope constexpr uint8_t MAX_MESSAGE_LENGTH = max(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE 2 (LCD_WIDTH)); ^ C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish_math.h:109:43: note: in definition of macro 'max'

define max(a,b) ((a)>(b)?(a):(b))

                                       ^

Marlin\src\lcd\ultralcd.cpp:47:48: note: suggested alternative: 'TONE_QUEUE_LENGTH' constexpr uint8_t MAX_MESSAGE_LENGTH = max(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE 2 (LCD_WIDTH)); ^ C:\Users\Ashley.platformio\packages\framework-arduinoststm32-maple\STM32F1\cores\maple/wirish_math.h:109:43: note: in definition of macro 'max'

define max(a,b) ((a)>(b)?(a):(b))

                                       ^

Compiling .pio\build\STM32F103RC_bigtree\src\src\module\configuration_store.cpp.o Compiling .pio\build\STM32F103RC_bigtree\src\src\module\delta.cpp.o Compiling .pio\build\STM32F103RC_bigtree\src\src\module\endstops.cpp.o *** [.pio\build\STM32F103RC_bigtree\src\src\lcd\ultralcd.cpp.o] Error 1 =================================================================== [FAILED] Took 23.53 seconds ===================================================================

Environment Status Duration


megaatmega2560 IGNORED megaatmega1280 IGNORED at90usb1286_cdc IGNORED at90usb1286_dfu IGNORED DUE IGNORED DUE_USB IGNORED DUE_debug IGNORED LPC1768 IGNORED LPC1769 IGNORED melzi IGNORED melzi_optiboot IGNORED rambo IGNORED sanguino_atmega644p IGNORED sanguino_atmega1284p IGNORED STM32F103RE IGNORED STM32F103RC_fysetc IGNORED STM32F103RC_bigtree FAILED 00:00:23.529 STM32F103RC_bigtree_USB IGNORED STM32F4 IGNORED STM32F7 IGNORED ARMED IGNORED STM32F103VE_longer IGNORED mks_robin IGNORED mks_robin_lite IGNORED mks_robin_mini IGNORED mks_robin_nano IGNORED jgaurora_a5s_a1 IGNORED STM32F407VE_black IGNORED BIGTREE_SKR_PRO IGNORED BIGTREE_BTT002 IGNORED teensy31 IGNORED teensy35 IGNORED STM32F103CB_malyan IGNORED esp32 IGNORED fysetc_f6_13 IGNORED linux_native IGNORED SAMD51_grandcentral_m4 IGNORED include_tree IGNORED ============================================================== 1 failed, 0 succeeded in 00:00:23.529 ============================================================== The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

bASHer91 commented 5 years ago

SORTED with this https://github.com/MarlinFirmware/Marlin/pull/15582