Cross-compiling from MacOS to Jetson

Hi I am looking to cross-compile from MacOS to Jetson Xavier NX using CMake but I am having trouble in finding the relevant toolchains and gcc compilers for this task. What can I do?

It’s easy…except for the MacOS part. :)

On Linux we’d just install gcc-aarch64-linux-gnu but I just did a google search for “macos cross compile to linux aarch64” and got a bunch of hits with links to toolchains. Perhaps give that a try?

You do have to be careful though, even on Linux. Cross-compiling a small standalone C program is easy. If you need other package libraries though, you have to create a “sysroot” to install the aarch64 versions of those libraries.

Have a reference to this document.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/xavier_toolchain.html#

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.