# Develop with cross-compiler

Source: [https://docs.qualcomm.com/doc/80-88500-5/topic/develop_device_with_cross-compiler.html](https://docs.qualcomm.com/doc/80-88500-5/topic/develop_device_with_cross-compiler.html)

## About this task

Note: Not supported on the Linux Embedded
        systems.

**Prerequisites:**

Develop with cross-compiler on the host system:

## Procedure

1. To install the necessary software packages, run the following commands:
        
sudo apt update Copy to clipboard

        sudo apt install diffstat xmlstarlet texinfo chrpath gcc-aarch64-linux-gnu libarchive-dev ssh libselinux1-dev fakechroot g++-aarch64-linux-gnu libiberty-dev qemu-user-static g++ gawk gcc make libwayland-dev fakeroot libpam0g-dev openjdk-8-jdk-headless binutils-dev util-linux uuid-dev zstdCopy to clipboard
2. To create soft links, run the following commands:
        
sudo rm -rf /lib/ld-linux-aarch64.so.1 Copy to clipboard

        sudo ln -sf /usr/aarch64-linux-gnu/lib/ld-2.31.so /lib/ld-linux-aarch64.so.1 Copy to clipboard

        sudo ln -sf /bin/bash /bin/sh Copy to clipboard

        sudo dpkg -P qemu-user-static Copy to clipboard

        wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_6.2+dfsg-2ubuntu6_amd64.deb Copy to clipboard

        sudo dpkg -i qemu-user-static_6.2+dfsg-2ubuntu6_amd64.debCopy to clipboard
3. To install Android tools, run the following command:
        
sudo apt install android-tools-fsutilsCopy to clipboard

- **[prepare_sysroot.html](https://docs.qualcomm.com/doc/80-88500-5/topic/prepare_sysroot.html)**
- **[Pack the image](https://docs.qualcomm.com/doc/80-88500-5/topic/packing.html)**

**Parent Topic:** [Develop applications](https://docs.qualcomm.com/doc/80-88500-5/topic/develop_applications.html)

Last Published: Nov 25, 2025

[Previous Topic
Sample applications](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/Sample-applications-overview.md) [Next Topic
prepare\_sysroot.dita](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/prepare_sysroot.md)