Skip to content

TrekMax/lvgl_sdl_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LVGL Simulator for VSCode

English | 中文

LVGL Version

Component Version Note
lvgl 8.3.7
lv_drivers 8.3.0

LVGL

Support Platform

  • Linux(GCC)
  • MacOS(GCC)
  • Windows(MinGW)

Get started

  • Install a compiler and related tools if you don't have them yet:
    • On Windows MinGW can be a good choice
    • On Linux type in the Terminal: sudo apt-get install gcc g++ gdb build-essential
    • On MacOS install latest Xcode
  • Install SDL (required to simulate a display)
    • On Windows see for example this guide
    • On Linux sudo apt-get install libsdl2-dev
    • On MacOS install for example via Homebrew: brew install sdl2 (To install Homebrew follow the guide here)
      • brew install sdl2 sdl2_gfx sdl2_image sdl2_mixer sdl2_ttf
  • Download and Install Visual Studio Code from [https://code.visualstudio.com/download])

Build && Run

Install software dependencies

  • Linux
    • gcc
    • make/ninja-build
    • CMake
    • SDL2
  • MacOS
    • gcc
    • make/ninja-build
    • CMake
    • SDL2
  • Windows
    • gcc
    • make/ninja-build
    • CMake
    • SDL2

Build

Use make

cmake -B build
cmake --build build --config Release

Or use ninja

cmake -G Ninja -B build
cmake --build build --config Release

Run

# cd buid dir
./lvgl_app

VSCODE Debug

Install VSCode Extensions

  • C/C++
  • CMake
  • CodeLLDB

About

LVGL SDL Simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages