RaspberryPiWithQt6WebEngine: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
m (rephrase links)
m (add setup draft)
Line 1: Line 1:
==Introduction==
This page describes how to set up self-compiled Qt6 with WebEngine on Raspberry Pi 4 running Raspberry Pi OS.
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:
To see other guides visit:
* [[RaspberryPiWithQt5WebEngine|Qt5 Web Engine cross compilation guide for Raspbian]]
* [[RaspberryPiWithQt5WebEngine|Qt5 WebEngine cross compilation guide for Raspbian]]
* [[Cross-Compile_Qt_6_for_Raspberry_Pi|Qt6 general cross compilation guide for Raspberry Pi]]
* [[Cross-Compile_Qt_6_for_Raspberry_Pi|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:
<syntaxhighlight>
mkdir -p ~/workspaces/raspberrypi/host
mkdir -p ~/workspaces/raspberrypi/target
</syntaxhighlight>

Revision as of 12:31, 4 January 2024

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