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


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 branch for the Eclipse simulator and the 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. (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
git clone
git clone
  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 , I do no know if this occurs on other build system or platforms.
  3. Compile and run.


1 Like