Try out LVGL Pro - A complete toolkit to build, test, share, and ship UIs efficiently!
LVGL
Tutorial

Run LVGL PC Simulator on Windows 10 Using WSL and XLaunch

Step-by-step guide to running the LVGL PC simulator on Windows 10 using Windows Subsystem for Linux and VcXsrv XLaunch.

Mario Rubio GomezMario Rubio Gomez2 min read

This tutorial explains a straightforward method to run the LVGL PC simulator on Windows 10. While there are several ways to launch the simulator — including the native PC simulator, Qt Creator, and Code::Blocks — some users experience difficulties getting these working on Windows 10. This guide provides a reliable alternative using Windows Subsystem for Linux (WSL) and VcXsrv.

Required Software#

You'll need to install two programs:

  • Windows Subsystem for Linux (WSL): Allows Linux programs to run natively on Windows without a virtual machine.
  • VcXsrv: An X Server implementation for Windows that allows Unix systems to display graphical applications.

Required Dependencies#

After installing WSL and VcXsrv, you'll need to install several dependencies from within the WSL terminal:

  • SDL2: Install the dependencies as explained in the LVGL PC simulator documentation for Linux.
  • Additional dependencies: Install the packages listed in the Dockerfile from the LVGL PC simulator repository.
Optional: Full Desktop Environment

If you want a complete Ubuntu desktop experience with Eclipse running in a Linux environment from Windows, you can install the xfce desktop. This guide doesn't cover that setup, but the linked tutorial provides clear instructions.

Running the Simulator#

Once everything is installed, follow these steps:

1. Build the Project#

From your WSL terminal, navigate to the PC simulator directory and build the project:

make
bash

Wait for the build process to complete.

2. Configure and Launch XLaunch#

Open XLaunch and configure it with these settings:

  • Choose One large window
  • Set the display number to -1
  • Leave all other settings at their defaults
  • Finish the configuration

3. Run the Demo#

From the WSL terminal, execute the demo:

./demo
bash
LVGL PC simulator running on Windows 10 via WSL and XLaunch
The LVGL simulator running successfully on Windows 10

You should now see the LVGL simulator window appear, ready for development and testing.

Why This Method Works#

This approach combines the simplicity of Linux development tools with the convenience of Windows 10. WSL provides a genuine Linux environment without the overhead of a virtual machine, while VcXsrv handles the graphical display. This setup is particularly useful when other Windows-native simulator options encounter compatibility issues.

About the author

Mario Rubio Gomez
Mario Rubio Gomez

Community Contributor

Embedded developer and LVGL community contributor focused on display driver development and MicroPython integration.

Meet the people behind the blog

Discover the talented writers sharing their knowledge about LVGL

View Authors

Subscribe to our newsletter to not miss any news about LVGL. We will send maximum of 2 mails per month.

LVGL

LVGL is the most popular free and open source embedded graphics library targeting any MCU, MPU and display type to build beautiful UIs.

We also do services like UI design, implementation and consulting.

© 2026 LVGL. All rights reserved.
YouTubeGitHubLinkedIn