Skip to content

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.

Talk to an engineer

Need selection advice, samples or a volume quote?

Tell us your scenario and target volume — you will get selection advice, lead time and pricing within one business day.

  • Free selection & feasibility review
  • Sample / evaluation board support
  • ODM / OEM customization