GD32F103移植LGVL后在main.c添加头文件#include "lvgl.h"报错
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'D:\KEIL5\ARM\ARMCC\Bin'
Build target 'GD32F10X_HD'
compiling lv_obj_class.c...
compiling lv_indev_scroll.c...
compiling lv_obj_draw.c...
compiling lv_disp.c...
compiling lv_event.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\core\lv_event.c(120): warning: #188-D: enumerated type mixed with another type
return e->code & ~LV_EVENT_PREPROCESS;
..\Module\Middlewares\LVGL\GUI\lvgl\src\core\lv_event.c: 1 warning, 0 errors
compiling lv_group.c...
compiling lv_indev.c...
compiling main.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(197): error: #40: expected an identifier
uint8_t
lue : 1;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(198): error: #40: expected an identifier
uint8_t
reen : 1;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(199): error: #40: expected an identifier
uint8_t
ed : 1;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(205): error: #40: expected an identifier
uint8_t
lue : 2;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(206): error: #40: expected an identifier
uint8_t
reen : 3;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(207): error: #40: expected an identifier
uint8_t
ed : 3;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(215): error: #40: expected an identifier
uint16_t
lue : 5;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(216): error: #40: expected an identifier
uint16_t
reen : 6;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(217): error: #40: expected an identifier
uint16_t
ed : 5;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(230): error: #40: expected an identifier
uint8_t
lue;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(231): error: #40: expected an identifier
uint8_t
reen;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(232): error: #40: expected an identifier
uint8_t
ed;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(315): error: #134: expected a field name
if((
V_COLOR_GET_R(color) & 0x10) || (LV_COLOR_GET_G(color) & 0x20) || (LV_COLOR_GET_B(color) & 0x10)) {
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(315): error: #134: expected a field name
if((
V_COLOR_GET_R(color) & 0x10) || (
V_COLOR_GET_G(color) & 0x20) || (LV_COLOR_GET_B(color) & 0x10)) {
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(315): error: #134: expected a field name
if((
V_COLOR_GET_R(color) & 0x10) || (
V_COLOR_GET_G(color) & 0x20) || (
V_COLOR_GET_B(color) & 0x10)) {
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(342): error: #134: expected a field name
V_COLOR_SET_R8(ret, LV_COLOR_GET_R(color) >> 2); /*5 - 3 = 2*/
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(343): error: #134: expected a field name
V_COLOR_SET_G8(ret, LV_COLOR_GET_G(color) >> 3); /*6 - 3 = 3*/
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(344): error: #134: expected a field name
V_COLOR_SET_B8(ret, LV_COLOR_GET_B(color) >> 3); /*5 - 2 = 3*/
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(424): error: #134: expected a field name
V_COLOR_SET_R32(ret, (LV_COLOR_GET_R(color) * 263 + 7) >> 5);
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(425): error: #134: expected a field name
V_COLOR_SET_G32(ret, (LV_COLOR_GET_G(color) * 259 + 3) >> 6);
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(426): error: #134: expected a field name
V_COLOR_SET_B32(ret, (LV_COLOR_GET_B(color) * 263 + 7) >> 5);
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(475): error: #134: expected a field name
out[0] = (uint16_t)
V_COLOR_GET_R(c) * mix;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(476): error: #134: expected a field name
out[1] = (uint16_t)
V_COLOR_GET_G(c) * mix;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(477): error: #134: expected a field name
out[2] = (uint16_t)
V_COLOR_GET_B(c) * mix;
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(502): error: #134: expected a field name
V_COLOR_SET_R(ret, LV_UDIV255(premult_c1[0] + LV_COLOR_GET_R(c2) * mix + LV_COLOR_MIX_ROUND_OFS));
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(503): error: #134: expected a field name
V_COLOR_SET_G(ret, LV_UDIV255(premult_c1[1] + LV_COLOR_GET_G(c2) * mix + LV_COLOR_MIX_ROUND_OFS));
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(504): error: #134: expected a field name
V_COLOR_SET_B(ret, LV_UDIV255(premult_c1[2] + LV_COLOR_GET_B(c2) * mix + LV_COLOR_MIX_ROUND_OFS));
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(588): error: #134: expected a field name
uint16_t bright = (uint16_t)(3u *
V_COLOR_GET_R32(c32) + LV_COLOR_GET_B32(c32) + 4u * LV_COLOR_GET_G32(c32));
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(588): error: #134: expected a field name
uint16_t bright = (uint16_t)(3u *
V_COLOR_GET_R32(c32) +
V_COLOR_GET_B32(c32) + 4u * LV_COLOR_GET_G32(c32));
..\Module\Middlewares\LVGL\GUI\lvgl\src/hal/../draw/../misc/lv_color.h(588): error: #134: expected a field name
uint16_t bright = (uint16_t)(3u *
V_COLOR_GET_R32(c32) +
V_COLOR_GET_B32(c32) + 4u *
V_COLOR_GET_G32(c32));
..\System\main.c: 0 warnings, 30 errors
compiling lv_obj.c...
compiling lv_obj_pos.c...
compiling lv_port_disp_template.c...
compiling delay.c...
compiling lv_obj_tree.c...
compiling lv_obj_style_gen.c...
compiling lv_theme.c...
compiling lv_obj_style.c...
compiling lv_refr.c...
compiling lv_obj_scroll.c...
compiling lv_draw.c...
compiling lv_draw_arc.c...
compiling lv_draw_rect.c...
compiling lv_draw_triangle.c...
compiling lv_draw_line.c...
compiling lv_draw_img.c...
compiling lv_img_cache.c...
compiling lv_draw_label.c...
compiling lv_img_decoder.c...
compiling lv_img_buf.c...
compiling lv_draw_sw.c...
compiling lv_draw_mask.c...
compiling lv_draw_sw_dither.c...
compiling lv_draw_sw_arc.c...
compiling lv_draw_sw_gradient.c...
compiling lv_draw_sw_img.c...
compiling lv_draw_sw_letter.c...
compiling lv_draw_sw_blend.c...
compiling lv_draw_sw_line.c...
compiling lv_draw_sw_polygon.c...
compiling lv_extra.c...
compiling lv_gridnav.c...
compiling lv_snapshot.c...
compiling lv_flex.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\flex\lv_flex.c(97): warning: #188-D: enumerated type mixed with another type
LV_STYLE_FLEX_MAIN_PLACE = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\flex\lv_flex.c(98): warning: #188-D: enumerated type mixed with another type
LV_STYLE_FLEX_CROSS_PLACE = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\flex\lv_flex.c(99): warning: #188-D: enumerated type mixed with another type
LV_STYLE_FLEX_TRACK_PLACE = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\flex\lv_flex.c: 3 warnings, 0 errors
compiling lv_grid.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(134): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_COLUMN_DSC_ARRAY = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(135): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_ROW_DSC_ARRAY = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(136): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_COLUMN_ALIGN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(137): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_ROW_ALIGN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(139): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_ROW_SPAN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(140): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_ROW_POS = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(141): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_COLUMN_SPAN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(142): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_COLUMN_POS = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(143): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_X_ALIGN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(144): warning: #188-D: enumerated type mixed with another type
LV_STYLE_GRID_CELL_Y_ALIGN = lv_style_register_prop() |
V_STYLE_PROP_LAYOUT_REFR;
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(589): warning: #188-D: enumerated type mixed with another type
lv_grid_align_t col_align = get_cell_col_align(item);
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c(590): warning: #188-D: enumerated type mixed with another type
lv_grid_align_t row_align = get_cell_row_align(item);
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\layouts\grid\lv_grid.c: 12 warnings, 0 errors
compiling lv_draw_sw_rect.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\draw\sw\lv_draw_sw_rect.c(239): warning: #546-D: transfer of control bypasses initialization of:
variable "mask_any_center" (declared at line 286)
goto bg_clean_up;
^
..\Module\Middlewares\LVGL\GUI\lvgl\src\draw\sw\lv_draw_sw_rect.c: 1 warning, 0 errors
compiling lv_monkey.c...
compiling lv_animimg.c...
compiling lv_theme_basic.c...
compiling lv_calendar_header_arrow.c...
compiling lv_theme_mono.c...
compiling lv_calendar_header_dropdown.c...
compiling lv_calendar.c...
compiling lv_theme_default.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\themes\default\lv_theme_default.c(213): warning: #188-D: enumerated type mixed with another type
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\themes\default\lv_theme_default.c: 1 warning, 0 errors
compiling lv_list.c...
compiling lv_keyboard.c...
compiling lv_menu.c...
compiling lv_led.c...
compiling lv_imgbtn.c...
compiling lv_colorwheel.c...
compiling lv_msgbox.c...
compiling lv_chart.c...
compiling lv_spinbox.c...
compiling lv_meter.c...
compiling lv_span.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\widgets\span\lv_span.c(881): warning: #546-D: transfer of control bypasses initialization of:
variable "align" (declared at line 885)
goto Next_line_init;
^
..\Module\Middlewares\LVGL\GUI\lvgl\src\extra\widgets\span\lv_span.c: 1 warning, 0 errors
compiling lv_spinner.c...
compiling lv_tileview.c...
compiling lv_font_fmt_txt.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\font\lv_font_fmt_txt.c(137): warning: #111-D: statement is unreachable
return NULL;
..\Module\Middlewares\LVGL\GUI\lvgl\src\font\lv_font_fmt_txt.c: 1 warning, 0 errors
compiling lv_tabview.c...
compiling lv_win.c...
compiling lv_font_dejavu_16_persian_hebrew.c...
compiling lv_font_montserrat_8.c...
compiling lv_font_montserrat_10.c...
compiling lv_font_montserrat_12.c...
compiling lv_font_loader.c...
compiling lv_font_montserrat_12_subpx.c...
compiling lv_font_montserrat_14.c...
compiling lv_font_montserrat_16.c...
compiling lv_font_montserrat_18.c...
compiling lv_font_montserrat_20.c...
compiling lv_font_montserrat_22.c...
compiling lv_font_montserrat_24.c...
compiling lv_font_montserrat_26.c...
compiling lv_font_montserrat_28.c...
compiling lv_font_montserrat_30.c...
compiling lv_font_montserrat_28_compressed.c...
compiling lv_font_montserrat_32.c...
compiling lv_font_montserrat_34.c...
compiling lv_font_montserrat_36.c...
compiling lv_font_montserrat_38.c...
compiling lv_font_montserrat_40.c...
compiling lv_font_montserrat_42.c...
compiling lv_font_montserrat_44.c...
compiling lv_font_montserrat_46.c...
compiling lv_font_unscii_8.c...
compiling lv_font_montserrat_48.c...
compiling lv_gpu_stm32_dma2d.c...
compiling lv_anim.c...
compiling lv_font_simsun_16_cjk.c...
compiling lv_hal_indev.c...
compiling lv_font_unscii_16.c...
compiling lv_hal_disp.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\hal\lv_hal_disp.c(573): warning: #188-D: enumerated type mixed with another type
return disp->driver->rotated;
..\Module\Middlewares\LVGL\GUI\lvgl\src\hal\lv_hal_disp.c: 1 warning, 0 errors
compiling lv_color.c...
compiling lv_fs.c...
compiling lv_gc.c...
compiling lv_timer.c...
compiling lv_style.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\misc\lv_style.c(74): warning: #188-D: enumerated type mixed with another type
return act_id;
..\Module\Middlewares\LVGL\GUI\lvgl\src\misc\lv_style.c: 1 warning, 0 errors
compiling lv_mem.c...
..\Module\Middlewares\LVGL\GUI\lvgl\src\misc\lv_mem.c(311): warning: #111-D: statement is unreachable
return NULL;
..\Module\Middlewares\LVGL\GUI\lvgl\src\misc\lv_mem.c: 1 warning, 0 errors
compiling lv_txt_ap.c...
compiling lv_style_gen.c...
compiling lv_txt.c...
compiling lv_btn.c...
compiling lv_arc.c...
compiling lv_bar.c...
compiling lv_canvas.c...
compiling lv_checkbox.c...
compiling lv_btnmatrix.c...
compiling lv_line.c...
compiling lv_img.c...
compiling lv_roller.c...
compiling lv_dropdown.c...
compiling lv_switch.c...
compiling lv_slider.c...
compiling lv_label.c...
compiling lv_table.c...
compiling lv_textarea.c...
".\output\MULT_CAMERA.axf" - 30 Error(s), 23 Warning(s).
Target not created.
Build Time Elapsed: 00:00:05
|