I would recommend using the https://github.com/lvgl/lv_micropython fork, which is kept up to date with MicroPython releases and has built-in support for LVGL on ESP32.
In case you have your own Micropython fork and would like to add LVGL to your fork (instead of forking lv_micropython), you can also do that but it requires more work. LVGL cannot be used as an external module due to multiple reasons so you need to make changes to Micropython in order to build it.
@embeddedt@amirgon thank you for your answers and advice. I work on the Windows 10 operating system. I did everything step by step according to the documentation. Maybe the whole process looks different for Windows? Perhaps I am doing something wrong, so I asked for an explanation of how the whole process should look like, step by step.
There are steps provided for Linux here. You can skip the last two lines for ports/unix and jump straight to the ESP32 port if that’s what you’re aiming to build.
I would suggest using WSL or a Linux virtual machine if you aren’t already. I’m not sure that anyone has ever tested compiling this on Windows directly.
If things still aren’t working, please provide more information about the exact error you are getting.
@embeddedt Thank you for your help. In fact, it seems to me that the operating system itself is the problem. I work on Windows 10 on a daily basis. So I’ll put Linux on a virtual machine or run RPi and check everything. If everything is fine, I’ll let you know.
@embeddedt@amirgon I understand well that the LVGL library must be included in the micropython firmware that I upload to the ESP32 board? Can you explain to me how to build such a micropython firmware with the attached LVGL library? It must be a file with the bin extension that will contain the micropython firmware with the LVGL library?
@embeddedt
i want to use lv_micropython. I read what you linked above, but I don’t know how to build a binary: / Can you explain to me how to build a binary? Or is it explained somewhere?
I understand you may be a bit nervous with my questions, but this is my first contact with Micropython. While I have no problem with C / C ++, I would like to try to create my project using Micropython, and for that I need the LVGL library.