Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
7 February 2024
If you're a C++ developer, with or without Qt, on Windows, and sometimes need to test your application on Linux, there's an easy way to build and test it without rebooting now. Microsoft introduced Windows Subsystem for Linux. A mechanism to run a lightweight virtual machine with a Linux distribution with just a few clicks with elegant integration with the host OS. I'll show you how to install it and configure for working with C++ and Qt applications.
Here are the steps to follow to install:
* Windows Terminal application: https://apps.microsoft.com/detail/windows-terminal/9N0DX20HK701
* Development tools installation: sudo apt install build-essential gdb cmake ninja-build git
* Packages for running Qt installer: sudo apt install libfontconfig1 libxcb-glx0 libx11-xcb1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-sync1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxkbcommon-x11-0 libgl1 libegl1 libxcb-shape0 libxcb-cursor0 libglx-dev libgl1-mesa-dev
* Sample Qt Widgets application: https://github.com/KDABLabs/kdabtv-wsl-widgets-sample
* Packages for compiling the Qt Widgets application: sudo apt install libgl-dev libxcb-cursor0 libwayland-cursor0 libwayland-egl1
* WSL documentation: https://learn.microsoft.com/en-us/windows/wsl/
All Windows and Qt videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6jg89K4VaFY4GgVEkqe2abs
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more