The compilation process mainly refers to《Cross compile Qt5 for raspberry Pie 4 14.2 (with eglfs support), you can follow the tutorial step by step. In the whole process, there are two places to pay attention to.
1. Sudo RPI update will fail to download through the command due to network problems. The best way is to install locally. The download method of update compressed package is throughhttps://ghproxy.com/Input link
Query the result, LS – LA / opt / VC / lib to see if there is any in this directory
libGLESv2.soThese two libraries are not available before the update. If these two libraries appear and are real libraries rather than soft links, the update is basically successful.
2. If you “configure and cross compile QT” in step 3, run“
./ After "configure" fails, be sure to delete it before the next run of configure
config. Cache (under the qtbase directory), otherwise the correct change will still fail.