If you are developing c++ code for use on any of the Nvidia Jetson product line, and you can use bazel to build your code, feel free to try out my bazel cross compile toolchain definition. I’m not a compiler expert, so use with caution and send PRs to fix my mistakes!
It is trivial to include the croosstool in your bazel project. Simply add the following to your WORKSPACE file:
Next, in your .bazelrc file:
You can then build with:
The resultant executable can then be ran on any of the Nvidia Jetson product line.