I can't show an image in my project('lv_image_header_t' has no member named 'always_zero')


I’m using stm32f746 and i want to show an image on my lcd. i used the prject in the below link:

when i add an image in my project i got error like this in cubeIDE: …/src/ui_img_AA_png.c:644:25: error: ‘lv_image_header_t’ has no member named ‘always_zero’
…/src/ui_img_AA_png.c:646:18: error: ‘LV_IMG_CF_TRUE_COLOR’ undeclared here (not in a function)

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?

What do you want to achieve?

show an image !

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/
 const lv_img_dsc_t ui_img_AA_png = {
    .header.always_zero = 0,
    .header.w = 200,
    .header.h = 200,
    .data_size = sizeof(ui_img_AA_png_data),
    .header.cf = LV_IMG_CF_TRUE_COLOR,
    .data = ui_img_AA_png_data

## Screenshot and/or video
If possible, add screenshots and/or videos about the current state.