Setting Up Cross-Compilation for RK3588 from an x86 Host
A mid-size project takes tens of minutes on an RK3588 board and a couple on an x86 host. Cross toolchains are daily kit in embedded work.
Why cross-compile
- Install: on Ubuntu just apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu, or use the vendor SDK toolchain;
- CMake: a toolchain file setting CMAKE_SYSTEM_NAME=Linux, CMAKE_SYSTEM_PROCESSOR=aarch64 and the compiler prefix — configure once, reuse forever;
- Dependencies: target libraries must land in a sysroot, not the host’s /usr, or you’ll get undefined references and confusion.
The vendor SDK toolchain is the path of least resistance — its glibc matches the firmware runtime and avoids the classic builds-but-won’t-run problem.
Related products: RP01A dev board, M-RK3588S SoM. Datasheets, firmware and SDKs are free at the Hugsun Documentation Center; for selection advice or volume pricing, talk to us.


