UX Designer WSL Guide

This guide walks you through installing the UX Designer development environment on Windows using WSL (Windows Subsystem for Linux), and shows how to use Qt Creator and VS Code with it afterwards.

What is WSL?

WSL 2 lets you run a real Linux system next to Windows, without a traditional virtual machine setup or dual boot. It runs a Linux kernel in a lightweight virtual machine that Windows manages for you. A few terms are used throughout this guide:

  • Distro — one isolated Linux installation inside WSL. It has its own files, users and installed programs. You can have several distros side by side.

  • Image — the .tar.gz file you download in step 1. It is a ready-made distro containing Qt, Qt Creator and the tools for UX Designer, so you don’t have to set up Linux yourself.

  • WSLg — the part of WSL that lets Linux GUI applications (like Qt Creator) show up as normal windows on your Windows desktop.

The Windows side of the machine is called the host. The distro and Windows can reach each other’s files and share the network connection:

flowchart LR subgraph PC["Your Windows PC"] direction LR W["Windows<br/>(Terminal, Explorer, VS Code)"] subgraph D["WSL distro: ux-designer"] L["Qt Creator, Qt, SDK, build tools,<br/>your projects"] end W <-->|"files, terminal, VS Code"| D end D -->|"Ethernet / network"| T["CCpilot device"]

Everything that builds, compiles and runs your code lives inside the distro. Windows is only used to start it, show its windows and (optionally) host the VS Code user interface.

Requirements

  • Windows 11, or Windows 10 version 22H2 or later

  • Virtualization enabled in the BIOS/UEFI (it usually is by default)

  • Administrator rights on the PC (for installing WSL) and a reboot

Which terminal am I in?

This guide uses two different kinds of terminals. The heading above each command tells you which one to use:

Name in this guide

What it is

How it looks

Windows PowerShell

Windows Terminal running PowerShell on Windows

Prompt like PS C:\Users\you>

WSL terminal

A terminal inside the Linux distro

Prompt like ccs@hostname:~$

The commands starting with wsl are always run in Windows PowerShell. Commands like cd, chmod, sudo and apt are always run in the WSL terminal.

Note

This guide uses version 6.2 in the file and distro names. If you are using another UX Designer version, replace 6.2 with your version.

1. Download the image

Download the ux-designer-wsl_v6.2.0.tar.gz file from UX Designer -> Development environment downloads -> UX DESIGNER -> v6.2 -> WSL to your computer (e.g. into your Downloads folder).

2. Install WSL

If WSL is not already installed on your PC, open Terminal (Windows PowerShell) and check the version:

wsl --version

If that command fails or WSL isn’t installed yet, install it without a default Linux distribution (we’ll import our own instead). Run this in a PowerShell window opened with Run as administrator:

wsl --install --no-distribution

Reboot your PC after installing.

3. Create a folder for WSL distros

Create a folder where WSL distro files will be stored, for example:

C:\wsl-distros

4. Import the image

Import the downloaded .tar.gz file as a new WSL distro.

Open Terminal (Windows PowerShell) and run the following command, replacing the placeholders with your own values:

wsl --import [NAME YOU WANT TO GIVE IT] [FOLDER TO STORE THE IMPORTED WSL] [PATH TO THE TAR.GZ FILE]

Example:

wsl --import ux-designer-6.2-wsl C:\wsl-distros\ux-designer-6.2-wsl C:\Users\[YOUR ACCOUNT]\Downloads\ux-designer-wsl_v6.2.0.tar.gz
  • ux-designer-6.2-wsl — the name the distro will have on your PC

  • C:\wsl-distros\ux-designer-6.2-wsl — where WSL stores the files for this distro

  • the last path — where you downloaded the .tar.gz file to

5. Install the target SDK

The SDK lets you build applications for your specific device.

  1. Download the SDK toolchain installer for your device from CC Linux -> Development environment downloads -> SDK -> CCpilot [DEVICE] -> CCLinux-SDK-toolchain-x86_64-CCpilot-[PLATFORM]-5.1.0.0-qt-6.12.0.sh:

    Note

    DEVICE is the device name, e.g. V1200, V1000, V510, or V710.

    Note

    PLATFORM is the platform name of your device, e.g. V1X00 if it is a V1200 or V1000, VX10 if it is a V510 or V710.

    Important

    The file is named CCLinux-SDK-toolchain-x86_64-CCpilot-[PLATFORM]-5.1.0.0-qt-6.12.0.sh on the website, but the downloaded file is named cclinux-sdk-toolchain-x86_64-ccpilot-[PLATFORM]-5100-qt-612.sh. The commands below use the name of the downloaded file. Check the actual file name on your PC and use that if it differs.

  2. Copy the downloaded file into the WSL distro’s /opt folder using Windows Explorer:

    • Copy the file

    • Navigate to \\wsl.localhost\ux-designer-6.2-wsl\opt by passing the path into the address bar of Windows Explorer

    • Paste the file there

  3. Open a WSL terminal inside the distro, using whichever option is easiest for you:

    • Option 1: Open the Start menu, search for ux-designer-6.2-wsl, and start it

    • Option 2: Open “Terminal” (Windows PowerShell) and run wsl -d ux-designer-6.2-wsl

    • Option 3: Open “Terminal”, click the dropdown arrow next to the + tab button, and select ux-designer-6.2-wsl

  4. In the WSL terminal, move into the /opt folder (this is where you pasted the SDK installer):

    cd /opt
    
  5. Make the installer executable (Linux requires this before a script can be run):

    chmod +x cclinux-sdk-toolchain-x86_64-ccpilot-[PLATFORM]-5100-qt-612.sh
    
  6. Run the installer, installing to /opt/[PLATFORM]:

    ./cclinux-sdk-toolchain-x86_64-ccpilot-[PLATFORM]-5100-qt-612.sh -d /opt/[PLATFORM] -y
    

6. Install the QtCreator build kit for your device

Still inside the same WSL terminal, in the /opt folder. The setup-qtcreator-build-kit.sh script is preinstalled in /opt in the image.

  1. Generate an install script for your specific SDK:

    ./setup-qtcreator-build-kit.sh /opt/[PLATFORM] > setup-kit.sh
    
  2. Make the generated script executable:

    chmod +x setup-kit.sh
    
  3. Run it. sudo runs the command with admin rights, which this script needs:

    sudo ./setup-kit.sh
    
  4. Start QtCreator:

    • Option 1: Open the Start menu, search for Qt Creator (ux-designer-6.2-wsl), and start it

    • Option 2: In the WSL terminal, run qtcreator

    Note

    If the GUI doesn’t show up, freezes or is missing parts, see Troubleshooting.

  5. Add the target device as a Remote Linux Device in QtCreator:

    1. Open Edit -> Preferences…

    2. Go to the Devices section

    3. Click Add…

    4. Choose Remote Linux Device

      • Leave the name as is

      • Enter the IP address of the device

      • Leave the port as is

      • Enter ccs as the user name

      • Click Next

      • Skip key deployment, click Next again

      • Click Finish

      • You’ll see an error popup — this is expected, it tries to connect using a key we didn’t set up. Click Close to dismiss it.

    5. Back in the device settings:

      • Uncheck Use specific key: so it uses a password instead of a key

      • Click Apply

      • Click Test

      • Enter the device’s password (default is default)

      • Click Close, then OK

    Note

    If the device test fails or times out, see The device cannot be reached from WSL.

7. Using Qt Creator and VS Code with WSL

Qt Creator and VS Code both work with the distro, but they work in different ways. Qt Creator runs inside the distro, while VS Code runs on Windows and connects into the distro.

Where to keep your projects

Keep your projects in the Linux file system of the distro, for example in /home/ccs/projects, and not in a Windows folder such as /mnt/c/Users/.... Builds and file watching are much slower on Windows folders accessed through WSL.

You can still reach the files from Windows by entering \\wsl.localhost\ux-designer-6.2-wsl\home\ccs\projects in the address bar of Windows Explorer.

Using Qt Creator

Qt Creator is installed inside the distro and is already set up with the Qt versions and the kit you created in step 6.

  1. Start Qt Creator as described in step 6.4. It opens as a normal window on your Windows desktop.

  2. Create or open a project as described in Getting Started with Qt. Store the project in the Linux file system as described above.

  3. Select the kit for your device (for example CCpilot V1X00) to build for the device, or the Desktop kit to run the application on your PC.

  4. Run or debug on the device using the Remote Linux Device you added in step 6.5. See Deploy to target for details.

Using VS Code

VS Code is not installed in the distro. Install it on Windows, and let it connect to the distro using the WSL extension. VS Code then automatically installs a small server component (the VS Code Server) inside the distro the first time you connect.

  1. Install VS Code on Windows if you don’t already have it.

  2. In VS Code on Windows, open the Extensions view and install the WSL extension (ms-vscode-remote.remote-wsl). This must be done before connecting to the distro.

  3. Open a folder in the distro in VS Code, using either of these options:

    • Option 1: In a WSL terminal, go to your project folder and run:

      cd ~/projects/my-project
      code .
      
    • Option 2: In VS Code, press F1, run WSL: Connect to WSL using Distro…, select ux-designer-6.2-wsl and then use File -> Open Folder….

  4. The first time you connect, VS Code installs the VS Code Server in the distro. This takes a moment. When it is done, the bottom-left corner of VS Code shows WSL: ux-designer-6.2-wsl, which means everything you do in that window (terminal, build, debug) happens inside the distro.

  5. Install the extensions you need in WSL. In the Extensions view, extensions that must run in the distro show an Install in WSL: ux-designer-6.2-wsl button. The most useful ones are:

    • CMake Tools — configure and build CMake projects

    • clangd — code completion and navigation for C++

Note

Use Qt Creator for deploying and debugging on the device with the kit and Remote Linux Device from step 6. In VS Code, the integrated terminal is a WSL terminal, so you can run the same commands (cmake, ninja, etc.) there. To cross-compile for the device from VS Code, load the SDK environment first by running source /opt/[PLATFORM]/environment-setup-* in the terminal before starting code . from that same terminal.

8. Installing extra development packages

The image only contains the runtime libraries needed by Qt and QtCreator, not the -dev (header) packages of system libraries. If you compile code that uses a system library directly (for example X11, ALSA, GStreamer, BlueZ or D-Bus), or build a CMake project that fails with Could NOT find ..., install the matching package, e.g.:

sudo apt update
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

The default password for the ccs user is default, but sudo does not ask for it.

9. Useful WSL commands

Run these in Windows PowerShell:

Command

What it does

wsl -l -v

List your distros and show whether they are running

wsl -d ux-designer-6.2-wsl

Open a WSL terminal in the distro

wsl --terminate ux-designer-6.2-wsl

Stop only this distro

wsl --shutdown

Stop all distros and the WSL virtual machine

wsl --export ux-designer-6.2-wsl C:\backup\ux-designer.tar

Back up the whole distro to a file

wsl --unregister ux-designer-6.2-wsl

Permanently delete the distro and all files in it

Warning

wsl --unregister deletes everything in the distro, including your projects. Back up or copy your projects first.

Troubleshooting

The GUI freezes, doesn’t show up or is missing parts

Sometimes Qt Creator or another GUI application freezes, doesn’t appear, or is drawn with missing parts. Try these in order:

  1. Close the application and start it again.

  2. If that doesn’t help, stop the distro by running wsl --terminate ux-designer-6.2-wsl in Windows PowerShell and start Qt Creator again.

  3. If that still doesn’t help, run wsl --shutdown in Windows PowerShell and start Qt Creator again.

If GUI applications never show up, make sure Windows and your graphics drivers are up to date, and update WSL by running wsl --update in Windows PowerShell.

The device cannot be reached from WSL

By default WSL uses its own virtual network (NAT) and might not be able to reach the device on your local network. First check from the WSL terminal:

ping [IP ADDRESS OF THE DEVICE]

If there is no reply, but the device is reachable from Windows, switch WSL to mirrored networking (requires Windows 11 22H2 or later). Create or edit the file C:\Users\[YOUR ACCOUNT]\.wslconfig and add:

[wsl2]
networkingMode=mirrored

Then run wsl --shutdown in Windows PowerShell and start the distro again.

Next steps

Continue with Getting Started with Qt to create your first project, and with Deploy to target to run it on your device.