LVGL Part 1: simulator

This part will focus on installing the chosen IDE and setting up the simulator.

  • First, we need to decide which environment we’re going to use. A list of currently supported IDEs can be found here.

    Initially, I chose the PlatformIO, because it does already have the simulator tuned especially for ESP32. However, it turned out that the LVGL libraries used there were obsolete, so I decided to go for Visual Studio (not Visual Studio Code).

    For individuals, the Visual Studio Community edition is free to use commercially (small developer teams might also use it commercially -more details here). My Visual Studio Community Edition 2019 version is v16.8.3.

  • After installation, create a folder for our project and clone the LVGL repository according to these steps:

    Then, open the project “…\lv_sim_visual_studio_sdl\lv_sim_visual_studio_sdl.sln” as a project/solution (File->Open->Project/Solution).
  • You should be able to build the project at this point. If there’re any errors, then at the end of this page I’ve enclosed errors that I had faced myself (and solutions to them).
  • (optional) It is worth enabling parallel building, so the development process is a little bit faster:
  • Run our project. The simulator windows should look like this:

Potential errors:

  • In case of missing windows SDK 10.0.17763.0, just install it. Here is a link.
  • In case of the “MSB8020” error in Visual Studio, this thread helped me solve the problem.

Source code: