Closed WalterPrech closed 2 years ago
I found a solution/patch to complete cross compiling the Qt libraries for Raspberry Pi4.
Using this patch, solves the error:
--- a/qtbase/src/gui/configure.json 2021-12-07 09:49:39.810299326 -0600
+++ b/qtbase/src/gui/configure.json 2021-12-07 09:49:20.546298594 -0600
@@ -862,7 +862,10 @@
"type": "compile",
"test": {
"include": [ "EGL/egl.h", "bcm_host.h" ],
- "main": "vc_dispmanx_display_open(0);"
+ "main": [
+ "vc_dispmanx_display_open(0);",
+ "EGL_DISPMANX_WINDOW_T *eglWindow = new EGL_DISPMANX_WINDOW_T;"
+ ]
},
"use": "egl bcm_host"
},
@WalterPrech Thanks that will be helpful for others.
Hi, I'm following the step-by-step instructions for cross compiling Qt for Raspberry Pi.
I set up a Raspberry Pi 4 with 32bit Raspberry Pi OS Lite. Also I set up a virtual machine with Ubuntu 20.04 LTS as host to cross compile.
On the Pi 4 I can't enable GL (FAKE KMS) with sudo raspi-config (there is no Advanced Options -> A8 GL Driver -> G2 GL (Fake KMS) available). Also the directory /opt/vc is not available.
On the host PC, after the build configure, EGLFS Raspberry Pi is set to yes.
The make command ends up with the following errors:
Are there special configurations to do for cross compiling with Raspberry Pi OS Lite Bullseye and Pi 4?
Can you please give me some hints?