Skip to content

Qt compilation

Benjamin Délèze edited this page Apr 12, 2023 · 21 revisions

This page explains how to recompile the Qt dependency on every platforms.

Windows

On Windows, Qt is provided as a MSYS2 pacman package and is automatically installed when installing the msys dependencies.

Linux

Qt 5.15.0 Pre-compiled binaries

Download and Install Qt 5.15.0 binaries including QtWebEngine

Download https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run and run it:

wget https://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
chmod +x ./qt-unified-linux-x64-online.run
./qt-unified-linux-x64-online.run

Install Qt in $(HOME)/Qt5.15.0(default directory) with at least these items selected:

- Qt
| - Qt 5.15.0
| | - Desktop gcc 64-bit

Install and Create the Qt Package for Webots

cd ~/webots/scripts/install
./qt_linux_installer.sh

Mac

Install Qt 5.15.2 with QWebEngine

Download Qt 5.15.2 for macOS (https://www.qt.io/download) and install it in $(HOME)/Qt5.15.2 (default directory) with at least these items selected:

- Qt 5.15.2
| - Qt 5.15.2
| | - macOS
| | - Qt WebEngine

Install in Webots and make installation package

cd ~/webots/scripts/install/
# Optional: edit the 2 first paths of ./qt_mac_installer.sh
./qt_mac_installer.sh
Clone this wiki locally