> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build with QSC-CLI

Use the Qualcomm<sup>®</sup> Software Center Command-Line Interface (QSC-CLI) to download and compile the QIR SDK. Then, flash images using various tools or commands.

<Warning>
  **Warning**

  It's not recommended to rebuild the QIR SDK, as the build process is complex for non-professionals. Build the QIR SDK ONLY if you understand the process and have the following needs:

  * Build an image for the device which doesn't have a prebuilt image, for example, the Qualcomm<sup>®</sup> IQ-8 Evaluation Kit. For details, see [Supported platforms](./qir-sdk-overview#supported-platforms).
  * Add new features to the QIR SDK.
  * Change the content of the target image.
  * Fix bugs in the QIR SDK.
  * Optimize the performance of the QIR SDK.
  * Change the version of certain components.
</Warning>

**Prerequisites**

* Ensure that you have installed the QSC CLI with the instructions in [Install QSC-CLI](../../Key-Documents/Firmware-Guide/build-with-qsc-cli#install-qsc-cli).
* The QSC CLI requires Docker. Install Docker on the host computer if you haven't done so.

<Note>
  **Note**

  It's not recommended to build the QIR SDK with QSC Launcher or QSC-CLI in the Mac UTM environment. Using this method may require multiple manual retries upon errors.
</Note>

## Download

To download the QIR SDK software distributions, follow these steps:

1. Sign in to `qsc-cli` using your registered email ID.
   ```xml theme={null}
   qsc-cli login -u <username>
   ```
2. Download a specific software release of the QIR SDK using the following command. To identify the appropriate values for the command arguments, see the following table.
   ```python theme={null}
   qsc-cli download --workspace-path '<absolute_workspace_path>' --product '<Product_ID>' --release '<Release_ID>' --distribution '<Distro>'
   ```

<Note>
  **Note**

  * Both the `--release` and `--build` options can be used individually to download a software package. If both options are provided, the `--release` parameter will be used to initiate the download.
  * For information about access levels, including `public` and `authorized`, see [Working with Qualcomm](https://www.qualcomm.com/support/working-with-qualcomm).
  * The build and flash steps follow the [Qualcomm<sup>®</sup> Linux Build Guide](../../Key-Documents/Firmware-Guide/build-with-qsc-cli).
</Note>

## Build the QIR with QSC-CLI downloads

To build the QIR SDK, see [Build default configuration–Compile](../../Key-Documents/Firmware-Guide/build-with-qsc-cli#compile) from the `Qualcomm Linux Build Guide`.

**Outputs**

<Note>
  **Note**

  `<Workspace_Path>` is the argument that you provide to the `--workspace-path` parameter of the [download command](./build-with-qsc-cli#download).
</Note>

<Tabs>
  <Tab title="IQ-9075 Evaluation Kit">
    * Robotics images: `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs9075-custom/tmp-glibc/deploy/images/qcs9075-iq-9075-evk/qcom-robotics-full-image/*`
    * QIR SDK: `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs9075-custom/tmp-glibc/deploy/qirpsdk_artifacts/qcs9075-iq-9075-evk/qirp-sdk_<version>.tar.gz`
  </Tab>

  <Tab title="IQ-8 Beta Evaluation Kit">
    * Robotics images: `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs8300-custom/tmp-glibc/deploy/images/qcs8300-ride-sx/qcom-robotics-full-image/*`
    * QIR SDK: `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs8300-custom/tmp-glibc/deploy/qirpsdk_artifacts/qcs8300-ride-sx/qirp-sdk_<version>.tar.gz`
  </Tab>
</Tabs>

## Flash the robotics image to devices

To flash the robotics image to the device, see [Flash the robotics image](./flash-the-robotics-image), using the `qcom-robotics-full-image` generated in [Build the QIR with QSC-CLI downloads](#build-the-qir-with-qsc-cli-downloads).
