How to fix Marlin Error: Build environment 'linux_native' is incompatible with BOARD_RAMPS_14_EFB

Problem:

When compiling Marlin for simulation, you see an error message like

example.txt
Error: Build environment 'linux_native' is incompatible with BOARD_RAMPS_14_EFB. Use one of these: mega2560, mega1280

Solution

Open Marlin/Configuration.h and change the line

example.cpp
#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif

to use the BOARD_LINUX_RAMPS board:

example.cpp
// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_LINUX_RAMPS
#endif

Even if the error message shows that you should use mega2560 or mega1280, you need to use BOARD_LINUX_RAMPS!


Check out similar posts by category: 3D Printing