Qt cross compile raspberry pi zero 2

I successfully cpompiled Qt for Pi 4 following the instructions.
wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

Since I use an Pi 2 Zero in my application I would like to cross compile for this device. The core uses the same instruction set as the Pi4 (armv8-a), bus has an 32bit OS.

Can I use aarch64-linux-gnu or does it have to be another compiler (arm-linux-gnueabihf)?

I changed -DQT_QMAKE_TARGET_MKSPEC devices/linux-rasp-pi3-g++ but configure failed – OpenGL Test failed.

Did someone tried to crss compile for Pi Zero 2?

Read more here: Source link