Saturday, October 14, 2017

Cross-compile Go from your computer to target a Raspberry Pi3

To cross compile Go from your OS to Raspberry Pi 3 as a target you need to have the latest version of Go and the following steps:



Of course, you'll need to adjust your paths.
When the compilation is done, you should see something like:

Installed Go for linux/arm in ~/gotip
Installed commands in ~/gotip/bin

After that, simply compile Go from your machine, from ~/gotip, to your Raspberry Pi 3.

And that's it, job done.

Happy hacking!
Post a Comment