# 使用 QSC CLI 编译

Source: [https://docs.qualcomm.com/doc/80-70015-265Y/topic/using-qsc-cli_3_1.html](https://docs.qualcomm.com/doc/80-70015-265Y/topic/using-qsc-cli_3_1.html)

使用 Qualcomm® 软件中心命令行界面 (QSC-CLI) 下载和编译 QIRP SDK 和机器人镜像，并使用工具或命令刷写镜像。

**前提条件：**

- 根据 <cite class="cite">Qualcomm Linux 编译指南</cite>的[使用 QSC CLI 编译](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254/build_from_source_QSC_CLI.html) 中的命令安装 QSC。

## 下载

**步骤：**

1. 登录 `qpm-cli`。
    1. 使用此命令登录。

            qpm-cli --loginCopy to clipboard
    2. 验证 `qpm-cli` 登录是否成功。

            qpm-cli --product-listCopy to clipboard
2. 使用以下命令下载 QIRP SDK 的特定软件发行版本，并使用下表来确定命令参数的适当值。

    qsc-cli download --workspace-path '<absolute_workspace_path>' --product '<Product_ID>' --release '<Release_ID>' --distribution '<Distro>'Copy to clipboard

注释： `--release` 和 `--build` 选项均可单独用于下载软件包。如果同时提供这两个选项，则使用 `--release` 参数来触发下载。

Table : qsc-cli download 参数

| 参数 | 说明 | QSC-CLI 命令 |
| --- | --- | --- |
| `--workspace-path` | 绝对/完整工作区路径 | 自定义值 |
| `--product` | 产品 ID | 容许的产品 ID<br><ul class="ul" id="ID-concept-d4199e276__ul_kn1_czh_rcc"><br>                  <li class="li"><br>                    <pre class="pre codeblock" id="ID-concept-d4199e276__codeblock_lmb_tkp_wbc"><code><code class="ph codeph">QCM6490.LE.1.0</code></code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre><br>                  </li><br><br>                  <li class="li"><br>                    <pre class="pre codeblock" id="ID-concept-d4199e276__codeblock_myr_czh_rcc"><code>QCS9100.LE.1.0</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre><br>                  </li><br><br>                </ul> |
| `--release` | 发行版本 ID | <ul class="ul" id="ID-concept-d4199e276__ul_f1x_2zh_rcc"><br>                  <li class="li">QCM6490.LE.1.0<p class="p">参见 <a href="https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260" target="_blank" class="xref cursorpointer" onclick="Window.BookmapComponent.navigateExternalFile('https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260')">Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0 发布说明</a>。例如， <code class="ph codeph">r00270.1</code>。</p><br></li><br><br>                  <li class="li">QCS9100.LE.1.0<p class="p">参见 <a href="https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260" target="_blank" class="xref cursorpointer" onclick="Window.BookmapComponent.navigateExternalFile('https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260')">Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0 发布说明</a>。例如， <code class="ph codeph">r00099.1</code></p><br></li><br><br>                </ul> |
| `--build` | 编译 ID | <ul class="ul" id="ID-concept-d4199e276__ul_jdv_mzh_rcc"><br>                  <li class="li">QCM6490.LE.1.0<p class="p">参见 <a href="https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260" target="_blank" class="xref cursorpointer" onclick="Window.BookmapComponent.navigateExternalFile('https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260')">Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0 发布说明</a>。例如：</p><br><pre class="pre codeblock" id="ID-concept-d4199e276__codeblock_wfx_tkp_wbc"><code>QCM6490.LE.1.0-00270-STD.PROD-1</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre></li><br><br>                  <li class="li">QCS9100.LE.1.0<p class="p">参见 <a href="https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260" target="_blank" class="xref cursorpointer" onclick="Window.BookmapComponent.navigateExternalFile('https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-260')">Qualcomm® Linux Intelligent Robotics Product SDK (QIRP SDK) 2.0 发布说明</a>。例如：</p><br><pre class="pre codeblock" id="ID-concept-d4199e276__codeblock_ldv_mzh_rcc"><code>QCS9100.LE.1.0-00099-STD.PROD-1</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre></li><br><br>                </ul> |
| `--distribution` | Distro | 参见 [表 :  2](https://docs.qualcomm.com/doc/80-70015-265Y/topic/using-qsc-cli_3_1.html#ID-concept-d4199e276__ID-tbl-d32488e1870)。 |

Table : Distro 和权限级别

| 权限级别 | `Distro` | Yocto 层 |
| --- | --- | --- |
| 使用任意电子邮件地址注册的开发者（仅二进制文件，不包含 modem 和 GPS） | `Qualcomm_Linux.SPF.1.0|TEST|DEVICE|PB_QIRPSDK` | meta-qcom<br>    meta-qcom-hwe<br>    meta-ros<br>    meta-qcom-robotics<br>    meta-qcom-robotics-distro<br>    meta-qcom-robotics-sdk<br>    meta-qcom-qim-product-sdkCopy to clipboard |
| 经过验证的组织的注册开发者（二进制文件和用于编译特定固件镜像的源代码，不包括 modem 和 GPS） | `Qualcomm_Linux.SPF.1.0|AP|Standard|OEM|NM_QIRPSDK` | meta-qcom <br>    meta-qcom-hwe <br>    meta-qcom-extras <br>    meta-qcom-robotics-extras<br>    meta-ros<br>    meta-qcom-robotics<br>    meta-qcom-robotics-distro<br>    meta-qcom-robotics-sdk<br>    meta-qcom-qim-product-sdkCopy to clipboard |

## 编译和刷写

要编译和刷写 QIRP SDK，参见 [Qualcomm® Linux 编译指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254)。

- 要编译，参见[编译默认配置（使用 QSC CLI 编译）](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254/build_from_source_QSC_CLI.html#compile)。
    **QCM6490.LE.1.0 的输出（RB3 Gen2            视觉套件）：**

    - 机器人镜像：
                `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs6490-custom/tmp-glibc/deploy/images/qcs6490-rb3gen2-vision-kit/qcom-robotics-full-image/*`
    - QIRP SDK：
                `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs6490-custom/tmp-glibc/deploy/qirpsdk_artifacts/qirp-sdk_<version>.tar.gz`

    **QCS9100.LE.1.0 的输出（IQ-9100 Beta 评估套件）：**

    - 机器人镜像：
                `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs9100-custom/tmp-glibc/deploy/images/qcs9100-ride-sx/qcom-robotics-full-image/*`
    - QIRP SDK：
                `<Workspace_Path>/DEV/LE.QCROBOTICS.1.0.r1/build-qcs9100-custom/tmp-glibc/deploy/qirpsdk_artifacts/qirp-sdk_<version>.tar.gz`

注释： `<Workspace_Path>`
              是提供给下载命令的“`--workspace-path`” 参数的参数。
- 要将机器人镜像刷写到设备，参见[刷写镜像](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-254/flash_images.html)。
- 要将 QIRP SDK 安装到设备，参见[刷写和安装](https://docs.qualcomm.com/doc/80-70015-265Y/topic/flash-and-install_4_3.html)。

**上一级主题：** [编译软件](https://docs.qualcomm.com/doc/80-70015-265Y/topic/build-the-software_4_1.html)

Last Published: Dec 05, 2024

[Previous Topic
使用 QSC Launcher 编译](https://docs.qualcomm.com/bundle/publicresource/80-70015-265Y/topics/build-with-the-qcs-launcher.md) [Next Topic
使用 GitHub 编译](https://docs.qualcomm.com/bundle/publicresource/80-70015-265Y/topics/build-with-github-binaries.md)