[on RPi] Check OS is 64 bit

uname -m

sudo nano /etc/apt/sources.list 

uncomment source files

sudo apt update
sudo apt dist-upgrade

echo "$USER ALL=NOPASSWD:$(which rsync)" | sudo tee --append /etc/sudoers

sudo apt install build-essential cmake unzip pkg-config gfortran gcc g++ gperf flex texinfo gawk bison openssl pigz libncurses-dev autoconf automake tar figlet libusb-1.0-0-dev libssl-dev libgles2-mesa-dev libgbm-dev libdrm-dev libudev-dev
wget https://raw.githubusercontent.com/abhiTronix/raspberry-pi-cross-compilers/master/utils/SSymlinker

sudo chmod +x SSymlinker
./SSymlinker -s /usr/include/aarch64-linux-gnu/asm -d /usr/include
./SSymlinker -s /usr/include/aarch64-linux-gnu/gnu -d /usr/include
./SSymlinker -s /usr/include/aarch64-linux-gnu/bits -d /usr/include
./SSymlinker -s /usr/include/aarch64-linux-gnu/sys -d /usr/include
./SSymlinker -s /usr/include/aarch64-linux-gnu/openssl -d /usr/include
./SSymlinker -s /usr/lib/aarch64-linux-gnu/crtn.o -d /usr/lib/crtn.o
./SSymlinker -s /usr/lib/aarch64-linux-gnu/crt1.o -d /usr/lib/crt1.o
./SSymlinker -s /usr/lib/aarch64-linux-gnu/crti.o -d /usr/lib/crti.o


sudo mkdir /usr/local/qt6pi sudo chown -R
$USER:$USER /usr/local/qt6pi


[on Host] Install required build tools

sudo apt update
sudo apt install gcc g++ git bison python gperf pkg-config gdb-multiarch wget rsync build-essential cmake unzip gfortran gperf flex texinfo gawk bison openssl pigz libncurses-dev autoconf automake tar figlet

mkdir tools build rootfs rootfs/usr rootfs/opt
rsync -avz --rsync-path="sudo rsync" --delete This email address is being protected from spambots. You need JavaScript enabled to view it.:/lib rootfs
rsync -avz --rsync-path="sudo rsync" --delete This email address is being protected from spambots. You need JavaScript enabled to view it.:/usr/include rootfs/usr
rsync -avz --rsync-path="sudo rsync" --delete This email address is being protected from spambots. You need JavaScript enabled to view it.:/usr/lib rootfs/usr
#rsync -avz --rsync-path="sudo rsync" --delete This email address is being protected from spambots. You need JavaScript enabled to view it.:/opt/vc rootfs/opt

wget https://raw.githubusercontent.com/abhiTronix/rpi_rootfs/master/scripts/sysroot-relativelinks.py
sudo chmod +x sysroot-relativelinks.py
./sysroot-relativelinks.py rootfs


[on RPi] Update the device to let the linker find the Qt libs: