How do i clear this error when compiling marlin firmware in arduino ? the tye of board i am using for the firmware is MKS Tinybee

In file included from C:\Users\HP\Documents\Arduino\libraries\ESP3DLib-master\src\command.cpp:21:
C:\Users\HP\Documents\Arduino\libraries\ESP3DLib-master\src\esp3dlibconfig.h:45:43: fatal error: ../../../../../Marlin/src/inc/MarlinConfigPre.h: No such file or directory
#include MARLIN_PATH(inc/MarlinConfigPre.h)
^
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.

1 Answer

To resolve the error when compiling Marlin firmware for the MKS Tinybee board in Arduino:

Verify File Existence:
Ensure MarlinConfigPre.h exists in Marlin/src/inc/.

Adjust Include Path:
Edit C:\Users\HP\Documents\Arduino\libraries\ESP3DLib-master\src\esp3dlibconfig.h to:
#include "../../../Marlin/src/inc/MarlinConfigPre.h"
Adjust the path as needed to correctly reference MarlinConfigPre.h.

Check Board Configuration:
Ensure the correct board (ESP32 Dev Module) is selected in Arduino IDE (Tools > Board).

Verify Library Paths:
Ensure Marlin source files and ESP3DLib are correctly included in your Arduino libraries path.

After making these adjustments, try compiling the firmware again.