ref: wiki gio/install.md -rw-r--r-- 1.3 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: installation
---

Installation instructions for running Gio programs.

## Linux

For Linux you need Wayland and the wayland, xkbcommon, GLES, EGL development packages.

On Fedora 28 and newer, install the dependencies with the command

    $ sudo dnf install wayland-devel libxkbcommon-devel mesa-libGLES-devel mesa-libEGL-devel

On Ubuntu 18.04 and newer, use

    $ sudo apt install libwayland-dev libxkbcommon-dev libgles2-mesa-dev libegl1-mesa-dev

## macOS, iOS, tvOS

Xcode is required for Apple platforms.

Building for tvOS requires Go 1.13.

## Windows

For Windows you need the ANGLE drivers for emulating OpenGL ES.

You can build ANGLE yourself or use
[a prebuilt version](https://drive.google.com/file/d/1k2950mHNtR2iwhweHS1rJ7reChTa3rki/view?usp=sharing).
Leave the DLLs in the same directory as the Gio program.

To avoid the console appearing when running Gio programs, use the `-H windowsgui` linker flag:

	$ go build -ldflags="-H windowsgui" gioui.org/apps/hello

## Android

For Android you need the Android SDK with the NDK bundle installed.

Point the ANDROID_HOME to the SDK root directory. To install the NDK bundle use the `sdkmanager`
command that comes with the SDK:

	$ sdkmanager 'ndk-bundle'

## Webassembly/WebGL

To run Gio in a browser you need support for WebAssembly and WebGL.

Building for webassembly requires Go 1.13.