lvgl-sdl icon indicating copy to clipboard operation
lvgl-sdl copied to clipboard

How to add this library with lvgl?

Open shrikantvaishnav opened this issue 1 year ago • 2 comments

Hi, First of all this not a bug. i am facing issue while attaching your library with LVGL.

Sir if possible then please update the Readme in simpler words so that any one can understand.

Thanks Shrikant Vaishnav

shrikantvaishnav avatar Dec 04 '24 05:12 shrikantvaishnav

The README is well written in my opinion. I think you'll have to be more precise about what problems you are facing or what kind of project setup you have.

A major caveat not mentioned in the README seems to be that this targets lvgl 8.3.0 (see pinned lvgl submodule).

The only minor issue being that the README is suggesting to manually install as submodule (for use in projects) in one section and recursive clone in another section (for examples) - to me, it should always be up to the user how they install the app and introducing those terms (submodule / recursive clone) might be confusing to those who do not understand git submodules.

However, there's also https://github.com/Ryzee119/lvgl-sdl/tree/master/example which shows how to use it with just the file structure (regardless how you filled got those folders) with both, CMake and Makefiles.

My understanding is that you only have to run the init/deinit for this specific port (which is shown in the example which is referenced in the README):

https://github.com/Ryzee119/lvgl-sdl/blob/b4f4ac73a93b5327fff9f79cad94b7098c6087c9/example/main.c#L24-L28 https://github.com/Ryzee119/lvgl-sdl/blob/b4f4ac73a93b5327fff9f79cad94b7098c6087c9/example/main.c#L99-L101 (which is also the only exposed API from https://github.com/Ryzee119/lvgl-sdl/tree/master/lvgl_drv)

JayFoxRox avatar Dec 04 '24 10:12 JayFoxRox

This library has somewhat long since superseded with upsteam lvgl's SDL port https://github.com/lvgl/lvgl/tree/master/src/drivers/sdl

As JFR pointed out we are targeting quite an old version here and I made this a long time ago. If you're developing something new you may want to explore lvgl v9.

In anycase I dont plan on updating the readme. Please provide error logs or something. If I was take a guess you are not pulling in the submodule correctly. but this is covered by the README already

Ryzee119 avatar Dec 04 '24 21:12 Ryzee119