CR6Community / Marlin

This Marlin fork has the goal of cleaning-up the source code changes for the CR-6 so it can be merged upstream. We also want to extend the functionality to make it fully functional
GNU General Public License v3.0
470 stars 83 forks source link

[BUG] libmaple/usart.h: No such file or directory #30

Closed Ajtak closed 3 years ago

Ajtak commented 3 years ago

If I tried build in Arduino IDE, I'm getting this error:

sketch\src\lcd\dwin\cr6\touch_lcd.cpp:33:10: fatal error: libmaple/usart.h: No such file or directory
 #include <libmaple/usart.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1

How to fix it? Thanks

Sebazzz commented 3 years ago

How to fix it?

Not use Arduino IDE. Use Visual Studio Code with Platform.io plugin.

Which branch are you building?

joesanford commented 3 years ago

How are you building it, and what board are you targeting? You may be building for more than one type of board.

VSCode/Platformio works, but Marlin should support Arduino IDE.

Ajtak commented 3 years ago

I'm building default branch (creality-cr6-merge-attempt) for Arduino Mega or Mega 2560 board

Sebazzz commented 3 years ago

That's probably the issue here. Can you please try VSCode?

Doridian commented 3 years ago

@Ajtak The printer uses an STM32, not an 8-bit Arduino, so some libraries might be broken just from that. I don't know if the Arduino IDE can compile Marlin for STM32, but you have to at least install the board plugin for them and set the correct chip.

hondrus31 commented 3 years ago

Tried many times with Arduino IDE with no success. VScode + Platform.io + Auto Build Marlin worked from the first time. Consider following the guide on official Marlin site here.

joesanford commented 3 years ago

Apologies, half of my comment didn't post - was going to add that since everyone on this fork is a VSCode user (AFAIK), it may be useful asking in the Marlin project this is forked from: https://github.com/MarlinFirmware/Marlin

Sebazzz commented 3 years ago

Closing this as this is probably an upstream issue.