programming,

Install Qt on Linux

Duc-Tri Duc-Tri Follow Jan 26, 2025 · 1 min read

1. Windows Subsystem for Linux (WSL)

2. Install Prerequisites

  • For Debian-based distributions (e.g., Ubuntu, Debian, Mint):
    • Update Package Manager:
    sudo apt-get update && sudo apt-get upgrade
    
    • Install Required Tools and Libraries:
    sudo apt-get -y install build-essential openssl libssl-dev libssl1.0 libgl1-mesa-dev libqt5x11extras5 '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
    
  • For other Linux variants, ensure the installation of make, g++, and gdb. On Fedora/Red Hat systems, you might use the yum package manager.

2. Download and Run the Qt Installer

  • Obtain the latest Qt installer from the official Qt download site. The site should automatically provide the appropriate installer for your Linux system.
  • Navigate to the directory where the installer is located.
  • Make the installer executable:
chmod +x qt-unified-linux-x64-*.run
  • Execute the installer:
./qt-unified-linux-x64-*.run