If you want to do code level compilation and simulation, you can use the local simulator.
Setup build environment
Local simulator needs to install build toolchain and SDL2 library.
Windows
Build toolchain
We provide a toolchain that you can download from tools-for-windows. Double click
launch-tools-shell.batto open a command prompt, it'd auto configure the environment variables. In the same command prompt window,cdto go to the simulator project directory to run the simulator.SDL2 We package the
SDL2library directly in the simulator project directory, so you don't need to install it separately.
macOS
Build toolchain You need to install C/C++ compiler to compile the simulator code. As macOS already has
clanginstalled, you can skip this step.SDL2 You can install
SDL2by executing the following command:brew install sdl2
Linux
Build toolchain You need to install C/C++ compiler to compile the simulator code. Install them from your distribution's package manager.
SDL2 You can install
SDL2on Linux by executing the following command:Ubuntu/Debian
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-devFedora
sudo dnf install SDL2-devel SDL2_image-devel SDL2_ttf-develOther Linux distributions Search your distribution's package manager to install
SDL2.
Download simulator project template
We provide a local simulator project template that you can use to get started. Refer to Simulator Project Template.
There're two project templates available, in v8.3.7 and v9.2.2 directories respectively, which are matched with the LVGL version supported by anyui-LIVE.
Download generated code
Download generated code from anyui-LIVE, extract it and copy generated directory to the simulator project directory.
After above steps, you can run the simulator by executing the following command under v8.3.7 or v9.2.2 directory:
cd v8.3.7
make && make run
cd v9.2.2
make && make run