如何修复 Marlin Error: Build environment 'linux_native' is incompatible with BOARD_RAMPS_14_EFB
问题:
编译 Marlin 进行仿真时,你看到类似这样的错误消息
marlin_error.txt
Error: Build environment 'linux_native' is incompatible with BOARD_RAMPS_14_EFB. Use one of these: mega2560, mega1280解决方案
打开 Marlin/Configuration.h 并更改行
Configuration_before.cpp
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif以使用 BOARD_LINUX_RAMPS 板:
Configuration_after.cpp
// 从 boards.h 中选择与你的设置匹配的名称
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_LINUX_RAMPS
#endif即使错误消息显示你应该使用 mega2560 或 mega1280,你需要使用 BOARD_LINUX_RAMPS!
Check out similar posts by category:
3D Printing
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow