# adjust your SYSROOT accordingly $ export SYSROOT=/home/ap/Collabora/rootfs/arm64/debian-testing $ sudo apt-get install pkg-config (in the sysroot/target rootfs) $ sudo apt-get install libconfig-dev (in the sysroot/target rootfs) $ git clone https://github.com/libusbgx/libusbgx.git $ cd libusbgx $ autoreconf -i # subdirectory under usr/lib is platform-specific, so is --host= $ PKG_CONFIG_PATH=$SYSROOT/usr/lib/aarch64-linux-gnu/pkgconfig ./configure --host=aarch64-linux-gnu --prefix=/usr --with-sysroot=$SYSROOT $ make CFLAGS="--sysroot=$SYSROOT" $ sudo make DESTDIR=$SYSROOT install $ sudo apt-get install asciidoc-base $ sudo apt-get install libglib2.0-dev $ sudo apt-get install libsystemd-dev $ git clone https://github.com/kopasiak/gt.git $ cd gt/source # create a toolchain file with the…