installation

ntop001 edited this page May 5, 2018 · 3 revisions

To install korok just use go get korok.io/korok, it will works well. The following dependencies will be installed:

  1. go-gl gl-api for Windows/OSX.
  2. glfw windows system for Windows/OSX.
  3. freetype truetype font support.
  4. golang/x/image png/jpg image support.
  5. golang/x/mobile mobile support for Android/iOS
  6. oggvorbis ogg/vorbis decoding.

If any of the above dependency failed, you can just install it with the go get command.

System requirements

korok use OpenGL as rendering backend, OpenAL/OpenSL for audio.

Windows(not tested)

  1. OpenGL v2.1
  2. OpenAL v1.1

Most windows has a OpenGL version 1.1, maybe you should install v2.1 manually. See here for more information.

Mac/OSX

  1. OpenGL v3.3
  2. OpenAL v1.1

Android

  1. OpenGL|ES v2.0
  2. OpenSL|ES

iOS

  1. OpenGL|ES v2.0
  2. OpenAL v1.1

If you are in China

For users in China suffering from g.f.w, it will fail to install golang/x/image and golang/x/mobile. The following guide is for you.

Q.1. Why I can't install golang/x/image and golang/x/mobile?

Both golang/x/image and golang/x/mobile is redirected by http://golang.org/. But http://golang.org/ is blocked by g.f.w, so go get will always fail while connecting to it.

Q.2. How can I workaround?

Setup VPN for your git environment. Or use git clone to clone each of the dependencies, then put them in the correct go-path.

A go workspace looks in practice:

 /bin
 /pkg
 /src
      /golang.org/x/image
      /golang.org/x/mobile

Git clone image package from https://github.com/golang/image and mobile package from https://github.com/golang/mobile, then copy them to /golang.org/x/.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.