bigtreetech / BIGTREETECH-SKR-E3-Turbo

79 stars 52 forks source link

Error when compiling for Dual Z axis support #60

Open octico opened 2 years ago

octico commented 2 years ago

Trying to compile Marlin latest bugfix to enable dual z axis. I uncomment :

define Z_STEPPER_AUTO_ALIGN

and when build it fails with the following error:

compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\LCD_I2C_routines.cpp.o In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL_MinSerial.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL_SPI.cpp:51: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_wired.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_sdcard.cpp:29: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\MarlinSerial.cpp:26: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_flash.cpp:39: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\main.cpp:34: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768\tft../../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\tft\tft_spi.cpp:23: Marlin\src\HAL\LPC1768\tft../../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768\tft../../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\tft\xpt2046.cpp:23: Marlin\src\HAL\LPC1768\tft../../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\timers.cpp:31: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." ^~~~~ Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp.o [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_MinSerial.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_wired.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_sdcard.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_SPI.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_flash.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\main.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\MarlinSerial.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\tft\tft_spi.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\tft\xpt2046.cpp.o] Error 1 *** [.pio\build\LPC1769\src\src\HAL\LPC1768\timers.cpp.o] Error 1 ========================================================================================== [FAILED] Took 3.17 seconds ========================================================================================== Environment Status Duration

LPC1769 FAILED 00:00:03.174

Contrasens commented 2 years ago

The error says it all: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe."

You need to define a Z- probe. Check in the section "Probe type" in Configuration.h for which one applies to your setup. For instance, I use a capacitive ABL sensor and I enabled

define FIX_MOUNTED_PROBE

Hope this helps. /Dinu

On Mon, 25 Oct 2021, 01:13 octico, @.***> wrote:

Trying to compile Marlin latest bugfix to enable dual z axis. I uncomment :

define Z_STEPPER_AUTO_ALIGN

and when build it fails with the following error:

compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\LCD_I2C_routines.cpp.o In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL_MinSerial.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\HAL_SPI.cpp:51: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_wired.cpp:24: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_sdcard.cpp:29: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\MarlinSerial.cpp:26: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\eeprom_flash.cpp:39: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\main.cpp:34: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768\tft../../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\tft\tft_spi.cpp:23: Marlin\src\HAL\LPC1768\tft../../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768\tft../../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\tft\xpt2046.cpp:23: Marlin\src\HAL\LPC1768\tft../../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ In file included from Marlin\src\HAL\LPC1768../../inc/MarlinConfig.h:49, from Marlin\src\HAL\LPC1768\timers.cpp:31: Marlin\src\HAL\LPC1768../../inc/SanityCheck.h:3364:6: error: #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." 3364 | #error "Z_STEPPER_AUTO_ALIGN requires a Z-bed probe." | ^~~~~ Compiling .pio\build\LPC1769\src\src\HAL\LPC1768\u8g\u8g_com_HAL_LPC1768_hw_spi.cpp.o [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_MinSerial.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_wired.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_sdcard.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\HAL_SPI.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\eeprom_flash.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\main.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\MarlinSerial.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\tft\tft_spi.cpp.o] Error 1 [.pio\build\LPC1769\src\src\HAL\LPC1768\tft\xpt2046.cpp.o] Error 1 *** [.pio\build\LPC1769\src\src\HAL\LPC1768\timers.cpp.o] Error 1

[FAILED] Took 3.17 seconds

Environment Status Duration

LPC1769 FAILED 00:00:03.174

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-E3-Turbo/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIYWMQC3A6PUU5G6D2Y7S3UISHJRANCNFSM5GT62NQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.