Skip to content

hanhsuan/lvglWithSdlDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use lvgl, lv_drivers, SDL2 and cmake to create a GUI application

This demo code gives a brief guide for creating a GUI application with lvgl, lv_drivers, SDL2 and cmake.

THANKS

This demo code refers from here, then modified to be compiled on Windows, MacOS and linux.

NOTICE

  • This demo will compile SDL2 from source, and you have to install development files for it on Linux. Otherwise, the GUI application wouldn't show anything on the screen. What development files are needed could be found here for SDL2.26.x.

COMPILE

Generating compiler configuration

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

Compile

cmake --build build --target all package --config Release

Then, there is one LvglWithSdlDemo binary under build/output/bin could show hello for you.

About

Demo code for using lvgl with SDL2 backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published