sunzhen222 / lvgl-sdl

Windows lvgl sdl demo. Using mingw toolchain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lvgl-sdl

Windows lvgl sdl demo. Using mingw toolchain.

Windows

Step 1. Setup environment (MSYS2 recommended)

Install MSYS2

https://www.msys2.org/

Setup environment variable

alt text

make sure ".../mingw64/bin" has higher priority than ".../usr/bin".

Step 2. Install mingw toolchain (MSYS2 recommended)

Update database

pacman -Syyu

Install GCC

pacman -S mingw-w64-x86_64-gcc

Install MAKE

pacman -S mingw-w64-x86_64-make

Install CMAKE

pacman -S mingw-w64-x86_64-cmake

Install SDL2

pacman -S mingw-w64-x86_64-SDL2

Step 3. Clone repository

Clone

git clone git@github.com:sunzhen222/lvgl-sdl.git
cd lvgl-sdl

lvgl Submodule

git submodule init
git submodule update

Step 4. Build and run

mkdir build
cd build
cmake .. -G "MinGW Makefiles"
cmake --build .
./lvgl-sdl.exe

or

./build.bat

About

Windows lvgl sdl demo. Using mingw toolchain.


Languages

Language:C 96.8%Language:CMake 2.8%Language:Batchfile 0.4%