# Jetson安装unitree_sdk2_python报错Could not locate cycl。

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-03-21-unitree-sdk2-python-53
> 频道：pitfalls | 更新日期：2026-03-21 | 标签：auto, github-issue, unitree_sdk2_python
> 核心摘要：NVIDIA Jetson上安装SDK找不到CycloneDDS，需手动编译0.10.x版本C库并正确配置CYCLONEDDS_HOME与CMAKE_PREFIX_PATH环境变量。

# Jetson安装unitree_sdk2_python报错Could not locate cycl。

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Problems with cyclonedds while using NVIDIA Jetson](https://github.com/unitreerobotics/unitree_sdk2_python/issues/53)（GitHub unitreerobotics/unitree_sdk2_python #53）

**状态**：已解决

## 问题

在NVIDIA Jetson平台安装unitree_sdk2_python时，CMake报错“Could not locate cyclonedds. Try to set CYCLONEDDS_HOME or CMAKE_PREFIX_PATH”。即使遵循README指引或尝试常规安装方法仍失败，怀疑与aarch64架构兼容性有关。

## 环境

NVIDIA Jetson (aarch64), unitree_sdk2_python, CycloneDDS 0.10.2/0.10.x, Python 3.8, CMake

## 解决办法

1. 克隆CycloneDDS源码并切换至0.10.x分支：`git clone https://github.com/eclipse-cyclonedds/cyclonedds -b releases/0.10.x`。
2. 创建构建目录并编译安装至本地路径：`mkdir build install && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=../install && cmake --build . --target install`。
3. 进入unitree_sdk2_python目录，使用绝对路径（避免`~`）设置环境变量：`export CYCLONEDDS_HOME="$HOME/cyclonedds/install"`及`export CMAKE_PREFIX_PATH="$CYCLONEDDS_HOME:${CMAKE_PREFIX_PATH}"`。
4. 执行SDK安装命令：`pip3 install -e .`。
5…

讨论原作者：@Orile14 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub unitreerobotics/unitree_sdk2_python #53：Problems with cyclonedds while using NVIDIA Jetson](https://github.com/unitreerobotics/unitree_sdk2_python/issues/53)