Qt applications and cross-compilation

Hi all,

I am currently trying to port an existing Qt application from a NanoPi to the ROCKPi4 platform. So far, I am using Debian and managed to install QtCreator and Qt and get the application running. Now, I’d like to get rid of some errors that occur when starting the program:

libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: rockchip_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: rockchip

Does anyone know how to fix these errors on the Rock PI 4?

Furthermore, did anyone ever get to run cross-compilation for Rock PI? I tried to follow some Raspberry tutorials and tweak them here and there but I didn’t manage to build Qt for the Rock.

Thanks in advance.

Can you provide me the program? I want to reproduce that. and try to fix that.

Thanks for your response. Now, I am not convinced anymore that the errors are related to the program in and of itself.
I can reproduce these errors also by running glxgears.

Do you perhaps have a tutorial or guide I can follow to set up cross-compilation from, e.g., Ubuntu to a RockPi 4 running Debian?

Thanks in advance.

Amazing! When I run the glxgears software on debain system, it can work normally.

Do you have a guide I can follow for cross-compiling Qt applications for the Rock Pi 4?

Did you compile / install any additional drivers?
This is what happens when I run glxgears:

I could get the same window ,but I didn’t get these errors.

 libGL error: MESA-LOADER: failed to retrieve device information
 libGL error: unable to load driver: rockchip_dri.so
 libGL error: driver pointer missing
 libGL error: failed to load driver: rockchip
 libGL error: MESA-LOADER: failed to retrieve device information
 libGL error: unable to load driver: rockchip_dri.so
 libGL error: driver pointer missing
 libGL error: failed to load driver: rockchip

Which version of firmware are you using?

Is there any firmware to flash on a Rock Pi 4? I can’t seem to find it in the list of devices.


I useing this image.
rockpi4b_debian_buster_xfce4_arm64_20210126_0032-gpt.img.gz