Can not load the img file on pc simulator

Description

Can not load the img file in PC simulator

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

PC simulator / eclipse

What LVGL version are you using?

LVGL 7.10.1

What do you want to achieve?

load the img file from file system and show it on the screen.

What have you tried so far?

I use lv_img_set_src(img,"/home/ks/xxx.jpg") or
lv_img_set_src(img,"/home/ks/xxx.png")
But It’s unuseful to show the image.

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:

  lv_obj_t * img1;
  img1 = lv_img_create(lv_scr_act(),NULL);
  lv_img_set_src(img1, "logo.jpg");

Screenshot and/or video

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

Hello, did you solve this problem?