Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Question about Gokrazy for the group then. If I wanted to build a rpi image that uses fyne:

https://developer.fyne.io/started/cross-compiling

is it possible to cross-compile that from a mac or window machine and get this rpi working binary ready to ship via Gokrazy? So far cross-compiling has failed for me. Too many x11 deps and weird stuff that makes it so much easier to just run go build on the rpi itself.



Cross-compiling something for gokrazy will likely be a can of worms if it has a lot of C dependencies, which tend to be dynamically linked by default. There's no dynamic library loader on gokrazy, so you either need to add one yourself or get all those C deps (and their deps) to be statically compiled into your Go binary. Neither is a picnic, although maybe someone else has already done the work of figuring out how to set up a dynamic loader.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: