EZ RKNN Async is a native extension that must be compiled on (or for) the target Rockchip device. There is no pre-built wheel on PyPI — you build a wheel from source and install it locally.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/happyme531/ztu_somemodelruntime_ez_rknn_async/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
Before building, make sure the following are present on your device:- Python 3.7+ with
pip - Rockchip device with RKNPU2 (RK3588, RK3566, RK3568, etc.)
librknnrt.soinstalled system-wide (provided by the Rockchip RKNN SDK)- CMake 3.18+
- A C++17-capable compiler (GCC 8+ or Clang 7+)
- pybind11 ≥ 2.10 (installed automatically by the build system)
Build and install from source
Build a wheel
Use CMake 3.18+ is required. The build system picks up the RKNN headers and
pip’s wheel-building mode with scikit-build-core as the build backend. The --no-deps flag skips building dependency wheels, keeping the output directory clean.librknnrt.so from the system include and library paths automatically.Install the built wheel
numpy and, on Python 3.7, typing_extensions).Build dependencies summary
| Dependency | Minimum version | Notes |
|---|---|---|
| Python | 3.7 | |
| CMake | 3.18 | Required by scikit-build-core |
| C++ compiler | C++17 | GCC 8+ or Clang 7+ |
| pybind11 | 2.10 | Fetched automatically if not present |
| scikit-build-core | 0.5 (Python < 3.8), 0.7 (Python ≥ 3.8) | Build backend |
| numpy | 1.21 | Runtime dependency |
| typing_extensions | 4.0 | Runtime dependency on Python 3.7 only |
| librknnrt.so | 2.4.1+ recommended | Must be installed on the device |
Troubleshooting
librknnrt.so not found during build
Make sure the RKNN SDK runtime library is installed. On most Linux distributions this means the .so file is in /usr/lib or /usr/local/lib. If it is in a non-standard location, set LD_LIBRARY_PATH before building:
pip: