TFT-Simulator on Visual Studio 2017 , how to change lvgl from v6.x to dev7.0?

Description

I would like to test lvgl dev7.0 on TFT-simulator.
How to replace lvgl v6.x to any commit of dev7.0 ?

Thank you.

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

TFT Simulator on PC.

What do you want to achieve?

Replace lvgl 6.x to dev7.0 for any commit.

What have you tried so far?

Code to reproduce

Screenshot and/or video

Hi, i have update Simulator project on Codeblock to lvgl 7.0, changing folder src and adding all to project. Remember to rebuild all for object files.
Naturally many function are different from version 6, and you must rewrite but is a little overhead.

1 Like

You can use the https://github.com/littlevgl/lv_sim_eclipse_sdl/tree/dev-7.0 branch for the Eclipse simulator and the https://github.com/littlevgl/lv_sim_codeblocks_win/tree/dev-7.0 branch for the Code::Blocks simulator.

1 Like

I have the same problem.
I tried to change 6.1.2 to dev-7, but there are a lot of errors that I can’t solve.

1 Like

Thank you very much @embeddedt.

I’m not sure if I got it.
I need the simulator v7.0 to work on Visual Studio.
Checking out the repository for VS simulator I’m getting the same v6.x code that I had already, except for an updated version of SDL2 lib.
Should I get lvgl and lv_drivers code from the Eclipse branch?

You’ll have to wait until it gets updated, or manually update the lvgl, lv_examples, and lv_drivers submodules yourself.

lv_sim_visual_studio_sdl.zip (2.3 MB)

Attached is a Visual Studio solution I did for LVGL V7 on Visual Studio 2019,
Unzip and in the project directory (visual_studio_2017_sdl) clone the required repo’s,

git clone https://github.com/lvgl/lvgl
git clone https://github.com/lvgl/lv_drivers
git clone https://github.com/lvgl/lv_examples
  1. Open the solution in visual studio,
  2. Change line 125 in lv_demo_widgets.c to lv_cont_set_layout(h, LV_LAYOUT_PRETTY_MID); from LV_LAYOUT_ROW_MID. I got an exception (See attached pic) that was resolved by the change. @kisvegabor , this was changed https://github.com/lvgl/lv_examples/commit/e5d7462bff9d7843cc904975532a1de86fc4a078 , I do no know if this occurs on other build system or platforms.
  3. Compile and run.

Enjoy.

1 Like