anyuianyui
anyui-LIVE
anyui
Feedback
  • English
  • 中文
anyui-LIVE
anyui
Feedback
  • English
  • 中文
  • Introduction

    • Introduction
  • Get Started

    • Get Started
  • Workspace

    • Workspace
  • Editor

    • Overview
    • Toolbar
    • Navigator
    • Inspector
    • Statusbar
    • Settings
    • Canvas
    • Preview
    • Resource management
  • Agent
  • Subjects

    • Image
    • Font Library
    • Layout
    • Dynamic LVGL version
    • Override screen size
    • Codegen
    • Transplant
    • Simulator
    • Dynamic Display Size Change
  • FAQ

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.bat to open a command prompt, it'd auto configure the environment variables. In the same command prompt window, cd to go to the simulator project directory to run the simulator.

  • SDL2 We package the SDL2 library 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 clang installed, you can skip this step.

  • SDL2 You can install SDL2 by 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 SDL2 on Linux by executing the following command:

    • Ubuntu/Debian

      sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
      
    • Fedora

      sudo dnf install SDL2-devel SDL2_image-devel SDL2_ttf-devel
      
    • Other 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
Prev
Transplant
Next
Dynamic Display Size Change