高通学习25--安装Hexagon toolchain Ubuntu(TODO)

Hexagon Toolchain on Ubuntu

Here is a comprehensive guide to setting up the Hexagon Toolchain on Ubuntu (Linux), primarily in the context of the Qualcomm Neural Processing SDK (SNPE) and DSP development.


✅ Verified Host OS

SNPE is verified with Ubuntu 22.04 LTS as the Linux host operating system, as well as WSL2 environments. 10


📦 Step 1: Install Qualcomm Package Manager 3 (QPM3)

The Hexagon Toolchain is distributed via QPM317

  1. Download the Linux version of QPM3. The file name will look like: QualcommPackageManager3.3.0.121.7.Linux-x86.deb
  2. Install it with:
    sudo dpkg -i ./<path-to-your-downloaded-.deb>
    
  3. Launch the QPM3 app and log in with your Qualcomm ID. 17

🔍 Step 2: Identify Your Hexagon Architecture & SDK Version

Look up which Hexagon Architecture your chip supports (e.g., V68V73V75), then determine the correct Hexagon SDK version: 17

Hexagon ArchitectureHexagon SDK Version
V755.4.0
V735.4.0
V694.3.0
v684.2.0
v664.1.0

⬇️ Step 3: Download the Hexagon SDK & Toolchain

  1. In QPM3, go to "Tools" and search for "Hexagon SDK".
  2. Download the correct SDK version for your target device.
  3. Return to the search bar and search for "Hexagon Toolchain", then choose the version corresponding to your Hexagon Architecture. 17

⚠️ Important Note: Hexagon SDK tools versions 8.7.03 / 8.6.02 / 8.5.03 / 8.4.09 / 8.4.06 are not pre-packaged into their respective Hexagon SDK versions (5.4.0 / 4.3.0 / 4.2.0 / 4.1.0). They must be downloaded separately and placed at: 17

$HEXAGON_SDK_ROOT/tools/HEXAGON_Tools/

🔧 Step 4: Set Environment Variables

After installation, set the required environment variables. For Hexagon SDK 3.5.x21

export HEXAGON_SDK_ROOT=<path to hexagon sdk installation>
export HEXAGON_TOOLS_ROOT=$HEXAGON_SDK_ROOT/tools/HEXAGON_Tools/8.3.07
export ANDROID_NDK_ROOT=<path to Android NDK installation>
export SDK_SETUP_ENV=Done

For Hexagon SDK 4.x (DSP V68 or later): 19

export HEXAGON_SDK_ROOT=<path to hexagon sdk installation>
export HEXAGON_SDK4_ROOT=<path to hexagon sdk 4.x installation>
export HEXAGON_TOOLS_ROOT=$HEXAGON_SDK_ROOT/tools/HEXAGON_Tools/8.4.09
export QNN_SDK_ROOT=<path to QNN sdk installation>
export ANDROID_NDK_ROOT=<path to Android NDK installation>
export SDK_SETUP_ENV=Done

Note: $ANDROID_NDK_ROOT must be set for the Android NDK build toolchain. 19


🔨 Step 5: Complete SDK Setup

Follow the remaining setup instructions found at: 16

$HEXAGON_SDK_ROOT/docs/readme.html

Also ensure clang++ is installed so you can compile code for DSP hardware. 16


🗂️ DSP Libraries in the SDK

The Qualcomm Neural Processing SDK includes Hexagon DSP runtime libraries under lib/hexagon-<dsp_version> in the SDK layout, compiled for your target's DSP architecture. 1


📝 Summary

StepAction
1Install QPM3 on Ubuntu via .deb
2Identify your chip's Hexagon Architecture
3Download Hexagon SDK + Toolchain via QPM3
4Set HEXAGON_SDK_ROOTHEXAGON_TOOLS_ROOT, etc.
5Follow $HEXAGON_SDK_ROOT/docs/readme.html for final setup
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值