It is recommended that you use docker to cross-compile your qt app: https://github.com/friendlyarm/friendlyelec-ubuntu16-docker
To build a local compilation environment, it is recommended to install ubuntu 16.04 64-bit system, and then refer to the following file to install relevant packages in ubuntu: https://github.com/friendlyarm/friendlyelec-ubuntu16-docker/blob/master/Dockerfile