makerbase-mks / MKS-OWL

MKS OWL motherboard is FDM 3d printing mainboard using an NXP LPC5528 32-bit Cortex-M33 MCU, it intergrated 5-axis plug-in stepper driver interfaces, supports MKS TS35 and MKS MINI12864 V3 , supports USB flash storage, and runs marlin v2.x firmware.
GNU General Public License v3.0
6 stars 3 forks source link

无法编译u8hal lib #2

Open Maoweicao opened 1 year ago

Maoweicao commented 1 year ago

如题,在按照使用说明之后,可以正确编译开启了MKS TS352.0的MKS OWL固件,但是无法编译开启REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER的屏幕,会在编译U8Lib的时候抛出异常,似乎是从GCC编译器编译C++文件导致的,报的错是Arduino核心库Printable.h以及相关的库,提示如下:

Compiling .pio\build\MKS_OWL\libbf0\U8glib-HAL\clib\u8g_com_arduino_ssd_i2c.c.o In file included from D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/CDCSerial.h:38:0, from D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/Arduino.h:40, from .pio\libdeps\MKS_OWL\U8glib-HAL\src\clib\u8g_com_arduino_common.c:46: D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/Stream.h:51:1: error: unknown type name > > >'class' class Stream : public Print ^~~~~ D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/Stream.h:51:14: error: expected '=', ',', ';', 'asm' >or 'attribute' before ':' token class Stream : public Print ^ In file included from D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/Arduino.h:40:0, from .pio\libdeps\MKS_OWL\U8glib-HAL\src\clib\u8g_com_arduino_common.c:46: D:\PlatformioCore.platformio\packages\framework-arduino-lpc5528\cores\arduino/CDCSerial.h:59:10: error: expected '=', ',', ';', >'asm' or 'attribute' before '<' token template <typename T, std::size_t S> class RingBuffer { ^

并且我无法在正常Platformio选单中找到非本次安装的框架,所以想问一下能否维护一下环境。

Maoweicao commented 1 year ago

编译REPRAP_DISCOUNT_SMART_CONTROLLER正常

Maoweicao commented 1 year ago

MKS_OWL_Full_smart_control_error.zip 添加编译失败的示例,用上面固件会得到下面这个错误 屏幕截图 2023-03-18 201111

MKS-hosiey commented 1 year ago

这个问题我们在修复,是mini12864库的问题