Requirements
Usage
Install MinGW
You can download MinGW from https://osdn.net/projects/mingw/releases/
Set environment
- Add the path of mingw32-make to the system's path. By default, it is
C:\MinGW\bin
.
- Copy
bin\SDL2.dll
to C:\MinGW\lib
.
Compile the project(Note: don't use git bash)
Enter project direction:
cd lvgl-simulator
Build the target:
mingw32-make -j8
Run simulator
mingw32-make run
Add your code for ui's callbacks
- User can edit callbacks in event_cb.c.
Work with Visual Studio Code
- Download and install latest version of Visual Studio Code
- Install extensions listed below:
- C/C++
- C/C++ Clang Command Adapter
- Make
- Build the target
In Visual Studio Code, you can open a terminal via
Terminal-> New Terminal
. After Openning the terminal, type make -j8
to build the target.
- Run simulaor
Type
make run
to run the simualor.