Closed brucehvn closed 5 years ago
I'm running into the same issue building under PlatformIO...but only for an Arduino Due to be installed in a Hypercube 300. The same code builds without issue for an Arduino Mega in an Anet A8. Configs for both are attached.
config-anet-a8.zip config-hc300.zip
In file included from Marlin/src/lcd/lcdprint.h:16:0,
from Marlin/src/lcd/lcdprint_u8g.cpp:24:
Marlin/src/lcd/dogm/u8g_fontutf8.h:19:16: error: redefinition of 'struct _uxg_fontinfo_t'
typedef struct _uxg_fontinfo_t {
^
In file included from Marlin/src/lcd/lcdprint_u8g.cpp:23:0:
Marlin/src/lcd/u8g_fontutf8.h:20:16: error: previous definition of 'struct _uxg_fontinfo_t'
typedef struct _uxg_fontinfo_t {
^
In file included from Marlin/src/lcd/lcdprint.h:16:0,
from Marlin/src/lcd/lcdprint_u8g.cpp:24:
Marlin/src/lcd/dogm/u8g_fontutf8.h:25:17: error: invalid type in declaration before ';' token
} uxg_fontinfo_t;
^
Marlin/src/lcd/dogm/u8g_fontutf8.h:25:17: error: conflicting declaration 'typedef int uxg_fontinfo_t'
In file included from Marlin/src/lcd/lcdprint_u8g.cpp:23:0:
Marlin/src/lcd/u8g_fontutf8.h:26:3: error: 'uxg_fontinfo_t' has a previous declaration as 'typedef struct _uxg_fontinfo_t uxg_fontinfo_t'
} uxg_fontinfo_t;
^
compilation terminated due to -fmax-errors=5.
*** [.pioenvs/DUE/src/src/lcd/lcdprint_u8g.cpp.o] Error 1
Both are configured with the same type of display (Reprapdiscount Full Graphic Smart Controller). The A8 uses a RAMPS 1.4, while the Hypercube uses a RAMPS-FD 2.x.
Latest 2.0.x downloaded yesterday fails to compile for me with the same errors.
Arduino Due Radds
In file included from sketch\src\lcd\lcdprint.h:16:0, from sketch\src\lcd\lcdprint_u8g.cpp:24: sketch\src\lcd\dogm/u8g_fontutf8.h:19:16: error: redefinition of 'struct _uxg_fontinfo_t'
typedef struct _uxg_fontinfo_t { ^
In file included from sketch\src\lcd\lcdprint_u8g.cpp:23:0: sketch\src\lcd\u8g_fontutf8.h:20:16: error: previous definition of 'struct _uxg_fontinfo_t' typedef struct _uxg_fontinfo_t { ^ In file included from sketch\src\lcd\lcdprint.h:16:0, from sketch\src\lcd\lcdprint_u8g.cpp:24: sketch\src\lcd\dogm/u8g_fontutf8.h:25:17: error: invalid type in declaration before ';' token } uxg_fontinfo_t; ^
sketch\src\lcd\dogm/u8g_fontutf8.h:25:17: error: conflicting declaration 'typedef int uxg_fontinfo_t' In file included from sketch\src\lcd\lcdprint_u8g.cpp:23:0:
sketch\src\lcd\u8g_fontutf8.h:26:3: error: 'uxg_fontinfo_t' has a previous declaration as 'typedef struct _uxg_fontinfo_t uxg_fontinfo_t'
} uxg_fontinfo_t; ^ exit status 1
@brucehvn problem solved?
@thinkyhead i think we can close this one
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Description
Downloaded the latest bugfix-2.0.x code on 10-Nov-2018. Rebased to get my config changes applied and tried to compile. I get the following output from the Arduino IDE:
Steps to Reproduce
Expected behavior: [What you expect to happen]
Code should compile normally
Actual behavior: [What actually happens]
Error during compilation listed above.
Additional Information
Configuration.h
andConfiguration_adv.h
files.configfiles.zip