Problem with pio lib install "lvgl/lvgl"

Hello
I installed my lvgl lib with pio lib install “lvgl/lvgl”
and it’s working but it is different to GitHub - lvgl/lvgl: Embedded graphics library to create beautiful UIs for any MCU, MPU and display type. It's boosted by a professional yet affordable drag and drop UI editor, called SquareLine Studio.
it does not have lv_event.h and lv_event.c for instance.
See attachment
The upper Image is the lvgl github content underneath the platformIO content with
pio lib install "lvgl/lvgl



How does pio lib install work

The lv_event.h file was created April 24th 2021 per its history.

Doing

>pio lib -g install  "lvgl/lvgl"
Library Storage: C:\Users\Max\.platformio\lib
Library Manager: Installing lvgl/lvgl
Downloading  [####################################]  100%
Unpacking  [####################################]  100%
Library Manager: lvgl @ 8.0.0 has been installed!

says it installed v8.0.0. (Which isn’t even listed here but okay.). Per https://platformio.org/lib/show/6598/lvgl/installation version 8.0.0 was published March 16th 2021. So it can’t have possibly included lv_event.h that file was created after relase.

Refer the library via

lib_deps = 
   https://github.com/lvgl/lvgl.git

if you want the latest version from git.

On another note, there is indeed some weirdness going on with the library page showing a lvgl/lvgl @ ^8.0.0-dev version, which is however not installable via this expression.

>pio lib -g install  "lvgl/lvgl@^8.0.0-dev"
Library Storage: C:\Users\Max\.platformio\lib
Library Manager: Installing lvgl/lvgl @ ^8.0.0-dev
Error: Could not find the package with 'lvgl/lvgl @ ^8.0.0-dev' requirements for your system 'windows_amd64'

It is however installable via

lib_deps =
   lvgl/lvgl @8.0.0-dev

however, this would give you a version from a week ago and still not the exact version you see in this repository. These versions are always manually released. Use the direct git link as documented if you want to use that.

AFAIK, LVGL 8.0.0 was not released yet, nor does it have updated documentation. You may want to use the latest 7.x version you can find.

You can also ask about it in the LVGL forums.

Also, please be aware that 8.x will not be backward compatible with 7.x so if and when you will upgrade to 8.x you will need to change both code and the configuration file. Generally speaking, LVGL maintains compatibility only within minor releases of same major release.