RaspberryPiWithQt6WebEngine

From Qt Wiki
Revision as of 12:31, 4 January 2024 by Michal Klocek (talk | contribs) (add setup draft)
Jump to navigation Jump to search

Introduction

This page describes how to set up self-compiled Qt6 with WebEngine on Raspberry Pi 4 running Raspberry Pi OS.

To see other guides visit:

Setup

To be able to cross compile Qt6 for Raspberry Pi OS, we need three things:

  • Raspberry Pi OS sysroot for arm64 target
  • Cross-Compile toolchain
  • Qt6 host build

Qt6 uses cmake therefore to cross-compile we need to have actually two builds of Qt. One Qt6 host build, which is later used to cross-compile the arm64 Qt build.

In this guide we are going to cross compile Qt 6.5 with WebEngine coming from Qt 6.7

  • Let's create our workspace:
mkdir -p ~/workspaces/raspberrypi/host
mkdir -p ~/workspaces/raspberrypi/target