zlgopen / awtk-stm32f103ze-raw

awtk在stm32f103ze平台上的移植。
GNU Lesser General Public License v2.1
59 stars 41 forks source link

keil5上编译报错 #20

Open Tracker647 opened 4 months ago

Tracker647 commented 4 months ago

mcu:stm32f103c8t6 根据文档要求git clone下来之后在keil build, 报错:

Build started: Project: awtk
*** Using Compiler 'V5.06 update 5 (build 528)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling pages.c...
awtk\src\widgets\default_focused_child.inc(157): error:  #167: argument of type "event_t *" is incompatible with parameter of type "pointer_event_t *"
        pointer_event_init((event_t*)&event, EVT_POINTER_LEAVE, target->parent->target, ids->last_x, ids->last_y);
awtk\src\widgets\pages.c: 0 warnings, 1 error
compiling window_manager_default.c...
.\awtk\src\base/dirty_rects.inc(17): warning:  #177-D: variable "iter"  was declared but never referenced
      rect_t* iter = dirty_rects->rects + i;
.\awtk\src\base/dirty_rects.inc(7): warning:  #550-D: variable "iter"  was set but never used
    rect_t* iter = NULL;
.\awtk\src\base/dirty_rects.inc(28): warning:  #550-D: variable "cost"  was set but never used
    uint32_t cost = 0;
awtk\src\window_manager\window_manager_default.c(1649): error:  #167: argument of type "window_manager_default_t *" is incompatible with parameter of type "window_manager_t *"
    wm->native_window = window_manager_create_native_window(wm, widget);
awtk\src\window_manager\window_manager_default.c(122): warning:  #177-D: function "window_manager_default_set_paint_system_bar_by_window_animator"  was declared but never referenced
  static ret_t window_manager_default_set_paint_system_bar_by_window_animator(widget_t* widget,
awtk\src\window_manager\window_manager_default.c: 4 warnings, 1 error
compiling assets-mini.c...
awtk\demos\assets-mini.c(35): error:  #20: identifier "font_default_18" is undefined
    assets_manager_add(am, font_default_18);
awtk\demos\assets-mini.c(36): error:  #20: identifier "image_checked" is undefined
    assets_manager_add(am, image_checked);
awtk\demos\assets-mini.c(37): error:  #20: identifier "image_earth" is undefined
    assets_manager_add(am, image_earth);
awtk\demos\assets-mini.c(38): error:  #20: identifier "image_left_off" is undefined
    assets_manager_add(am, image_left_off);
awtk\demos\assets-mini.c(39): error:  #20: identifier "image_left_on" is undefined
    assets_manager_add(am, image_left_on);
awtk\demos\assets-mini.c(40): error:  #20: identifier "image_middle_off" is undefined
    assets_manager_add(am, image_middle_off);
awtk\demos\assets-mini.c(41): error:  #20: identifier "image_middle_on" is undefined
    assets_manager_add(am, image_middle_on);
awtk\demos\assets-mini.c(42): error:  #20: identifier "image_muted" is undefined
    assets_manager_add(am, image_muted);
awtk\demos\assets-mini.c(43): error:  #20: identifier "image_question" is undefined
    assets_manager_add(am, image_question);
awtk\demos\assets-mini.c(44): error:  #20: identifier "image_radio_checked" is undefined
    assets_manager_add(am, image_radio_checked);
awtk\demos\assets-mini.c(45): error:  #20: identifier "image_radio_unchecked" is undefined
    assets_manager_add(am, image_radio_unchecked);
awtk\demos\assets-mini.c(46): error:  #20: identifier "image_red_btn_n" is undefined
    assets_manager_add(am, image_red_btn_n);
awtk\demos\assets-mini.c(47): error:  #20: identifier "image_red_btn_o" is undefined
    assets_manager_add(am, image_red_btn_o);
awtk\demos\assets-mini.c(48): error:  #20: identifier "image_red_btn_p" is undefined
    assets_manager_add(am, image_red_btn_p);
awtk\demos\assets-mini.c(49): error:  #20: identifier "image_right_off" is undefined
    assets_manager_add(am, image_right_off);
awtk\demos\assets-mini.c(50): error:  #20: identifier "image_right_on" is undefined
    assets_manager_add(am, image_right_on);
awtk\demos\assets-mini.c(51): error:  #20: identifier "image_unchecked" is undefined
    assets_manager_add(am, image_unchecked);
awtk\demos\assets-mini.c(52): error:  #20: identifier "image_unmuted" is undefined
    assets_manager_add(am, image_unmuted);
awtk\demos\assets-mini.c(53): error:  #20: identifier "style_default" is undefined
    assets_manager_add(am, style_default);
awtk\demos\assets-mini.c(54): error:  #20: identifier "ui_basic" is undefined
    assets_manager_add(am, ui_basic);
awtk\demos\assets-mini.c(55): error:  #20: identifier "ui_system_bar" is undefined
    assets_manager_add(am, ui_system_bar);
awtk\demos\assets-mini.c(56): error:  #20: identifier "image_rgb" is undefined
    assets_manager_add(am, image_rgb);
awtk\demos\assets-mini.c(57): error:  #20: identifier "image_rgba" is undefined
    assets_manager_add(am, image_rgba);
awtk\demos\assets-mini.c(58): error:  #20: identifier "image_message" is undefined
    assets_manager_add(am, image_message);
awtk\demos\assets-mini.c(59): error:  #20: identifier "image_close_p" is undefined
    assets_manager_add(am, image_close_p);
awtk\demos\assets-mini.c(60): error:  #20: identifier "image_close_n" is undefined
    assets_manager_add(am, image_close_n);
awtk\demos\assets-mini.c(61): error:  #20: identifier "image_close_o" is undefined
    assets_manager_add(am, image_close_o);
awtk\demos\assets-mini.c(64): error:  #20: identifier "style_system_bar" is undefined
    assets_manager_add(am, style_system_bar);
awtk\demos\assets-mini.c: 0 warnings, 28 errors
".\Obj\Template.axf" - 30 Error(s), 4 Warning(s).
Target not created.
Build Time Elapsed:  00:00:02