Cross compilation
Compiling a Go-GTK based application for additional platforms requires requires additional C compilers to be installed so that CGo can create the necessary binary output. The steps for completing this, if you haven't done so already, are in the Appendix, Cross-Compiler Setup. You'll also need to have GTK+ installed, which should obviously already be the case. As the Cross compilation section of Chapter 4, Walk - Building Graphical Windows Applications, andlabs UI already stepped through the details, so we won't repeat them here. The process is identical due to andlabs UI's use of the GTK+ library for some target platforms. Be sure to set the appropriate GOOS, GOARCH, CGO_ENABLED, CC, and CXX environment variables.
Before ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access