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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.