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.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.