RaspberryPiWithQt6WebEngine
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:
- Qt5 WebEngine cross compilation guide for Raspbian
- Qt6 general cross compilation guide for Raspberry Pi OS
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