bigtreetech / BIGTREETECH-TouchScreenFirmware

support TFT35 V1.0/V1.1/V1.2/V2.0/V3.0, TFT28, TFT24 V1.1, TFT43, TFT50, TFT70
GNU General Public License v3.0
1.31k stars 1.65k forks source link

[BUG] Vs Code Complie Error at Master #2303

Closed Infactionfreddy closed 2 years ago

Infactionfreddy commented 2 years ago

Vs Code Complie Error at Master

Description

Processing BIGTREE_TFT70_V3_0 (board: STM32F407VG_0x8000; platform: ststm32; framework: cmsis) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option Generating firmware... Done. CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/STM32F407VG_0x8000.html PLATFORM: ST STM32 (15.1.0) > STM32F407VG (192k RAM. 1024k - 32K Flash) HARDWARE: STM32F407VGT6 168MHz, 192KB RAM, 992KB Flash DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink, stlink) PACKAGES:

In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:38:0: note: this is the location of the previous definition

define MAT_PURPLE 0x9C19

In file included from TFT\src\User\API\Colors.c:1:0: TFT\src\User\API\Colors.h:47:3: error: redeclaration of enumerator 'LCD_WHITE' LCD_WHITE = 0, ^~~~~ In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:50:3: note: previous definition of 'LCD_WHITE' was here LCD_WHITE = 0, ^~~~~ In file included from TFT\src\User\API\Colors.c:1:0: TFT\src\User\API\Colors.h:48:3: error: redeclaration of enumerator 'LCD_BLACK' LCD_BLACK, ^~~~~ In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:51:3: note: previous definition of 'LCD_BLACK' was here LCD_BLACK, ^~~~~ In file included from TFT\src\User\API\Colors.c:1:0: TFT\src\User\API\Colors.h:49:3: error: redeclaration of enumerator 'LCD_RED' LCD_RED, ^~~ In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:52:3: note: previous definition of 'LCD_RED' was here LCD_RED, ^~~ In file included from TFT\src\User\API\Colors.c:1:0: TFT\src\User\API\Colors.h:50:3: error: redeclaration of enumerator 'LCD_GREEN' LCD_GREEN, ^~~~~ In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:53:3: note: previous definition of 'LCD_GREEN' was here LCD_GREEN, ^~~~~ In file included from TFT\src\User\API\Colors.c:1:0: TFT\src\User\API\Colors.h:51:3: error: redeclaration of enumerator 'LCD_BLUE' LCD_BLUE, ^~~~ In file included from TFT\src\User/includes.h:83:0, from TFT\src\User\API\Colors.h:9, from TFT\src\User\API\Colors.c:1: TFT\src\User\API/LCD_Colors.h:54:3: note: previous definition of 'LCD_BLUE' was here LCD_BLUE, ^~~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\BIGTREE_TFT70_V3_0\src\src\User\API\Colors.o] Error 1 ====================================================================================== [FAILED] Took 9.51 seconds ====================================================================================== Environment Status Duration


BIGTREE_TFT70_V3_0 FAILED 00:00:09.512 ================================================================================ 1 failed, 0 succeeded in 00:00:09.512 ================================================================================

Hardware Variant

BTT TFT 70

Guilouz commented 2 years ago

No issue for me to compile it for TFT70

radek8 commented 2 years ago

For me, the compilation was also successful. The error will be in your edits or you have combined files from different versions.

oldman4U commented 2 years ago

Please help the community and close the ticket once you do not need it anymore. Thank you

github-actions[bot] commented 6 months ago

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.