0.lvgl\src\stdlib\builtin\lv_tlsf.c(297): error C116: negative subscript
注释掉下图宏定义
1.EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: .\obj\lv_tlsf.obj
排查是c文件中大量 && “xxx”导致,全改为注释解决
2.themes不识别私有类,开启LV_USE_PRIVATE_API宏或添加对应头文件解决。
3.链接阶段CODE区过大
4.大量error C25: syntax error near
变量提前到函数起始,或就近{}起始位
5.while(layer->draw_task_head) 死循环
lv_conf.h中未设置LV_DRAW_SW_DRAW_UNIT_CNT 1 数量导致
6.lv_obj_class_t 子类初始化语法不支持,按属性模板填充
- 0,//const lv_obj_class_t * base_class;
- 0,//void (*constructor_cb)(const lv_obj_class_t * class_p, lv_obj_t * obj);
- 0,//void (*destructor_cb)(const lv_obj_class_t * class_p, lv_obj_t * obj);
- 0,//void (*event_cb)(const lv_obj_class_t * class_p, lv_event_t * e); /**< Widget type specific event function*/
-
- #if LV_USE_OBJ_PROPERTY
- 0,//uint32_t prop_index_start;
- 0,//uint32_t prop_index_end;
- 0,//const lv_property_ops_t * properties;
- 0,//uint32_t properties_count;
-
- #if LV_USE_OBJ_PROPERTY_NAME
- 0,//const lv_property_name_t * property_names;
- 0,//uint32_t names_count;
- #endif
- #endif
- 0,//void * user_data;
- 0,//const char * name;
- 0,//int32_t width_def;
- 0,//int32_t height_def;
- 0,//uint32_t editable;
- 0,//uint32_t group_def;
- 0,//uint32_t instance_size;
- 0// uint32_t theme_inheritable;
复制代码
7.大量结构体初始化声明属性字段正则消除
- \.(bitmap_index|adv_w|box_w|box_h|ofs_x|ofs_y|class_pair_values|left_class_mapping|right_class_mapping|left_class_cnt|right_class_cnt|glyph_bitmap|glyph_dsc|cmaps|kern_dsc|kern_scale|cmap_num|bpp|kern_classes|bitmap_format|class_pair_values|range_start|range_length|glyph_id_start|unicode_list|glyph_id_ofs_list|list_length|type).*?=
复制代码 8.lv_init初始化失败
9.内存池定义,使用far空间要对应finit_mempool及fmalloc等,xdata对应xinit_mempool及xmalloc等
10.style_gen inline语法不支持,批量修改为宏定义
11.编译器识别函数互相调用会自动修剪,使用函数指针避免
12.大量CB函数指针报错,typedef处添加reentrant声明
lvglTest_HelloWorld-V2025110602.zip
(38.1 MB, 下载次数: 12)
注:开启my_debug.h中#define USE_SIM_DEBUG宏即可纯软仿真调试
|