3 ms·
Can you tell us how to cross-compile for the pi? I remember looking for it but not finding much...
by StavrosK 14y ago
Can you tell us how to cross-compile for the pi? I remember looking for it but not finding much...
- georgemcbay 14y agoDave Cheney (whose blog post is the linked article here) has a good writeup on this here: http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go http://dave.cheney.net/2012/09/08/an-introduction-to-cross-c... Basically cross-compiling in Go is as easy as setting a few environmental variables to describe which OS/arch you want to compile for, though you have to do some from-source building of the Go toolchain in order to get the different compilers for different arches. But you should be building from source if targeting ARM anyway because the current full Go binary release has much worse ARM support than the current +tip branch of Go in Go's mercurial repo.
- StavrosK 14y agoI see, thank you. That's what I was trying and couldn't get to work, probably because I was only trying half of it.