Appendix C: Cross-Compiling

When building applications that need access to native APIs and graphics hardware, we can use CGo. Although not much harder to build for regular development, this does make cross compiling much more complicated. For every target platform you want to build for, there must be a C compiler that knows how to create native binary files. This appendix outlines the steps required to set up cross compilation targets for each combination referenced earlier in this book.

Important note

Please note that cross compiling is not required for day-to-day development. For most development, you won't require the cross-compiler setup. The Go compiler and standard tools discussed in Appendix A: Developer Tool Installation, are all that ...

Get Building Cross-Platform GUI Applications with Fyne now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.