installing ebiten on fedora

Update: i also found the dependency list on the ebiten wiki: https://github.com/hajimehoshi/ebiten/wiki/Linux#fedora

Second: and it is now found on the new website https://ebiten.org/install.html#Fedora

a few weeks after i ported Impact.js to the modern world (some writing about this adventure will follow), i found another interesting engine, this time written in go.

the engine is called ebiten and has a pretty low-level api, but compiles to all desktop and mobile platforms - so i want to give it a try

install

go get github.com/hajimehoshi/ebiten/...

but wait… there are errors! :(

 ~ go get github.com/hajimehoshi/ebiten/...
# github.com/hajimehoshi/oto
gows/src/github.com/hajimehoshi/oto/driver_linux.go:23:10: fatal error: alsa/asoundlib.h: No such file or directory
 #include <alsa/asoundlib.h>
          ^~~~~~~~~~~~~~~~~~
compilation terminated.
# github.com/go-gl/glfw/v3.2/glfw
In file included from ./glfw/src/internal.h:169,
                 from ./glfw/src/context.c:28,
                 from gows/src/github.com/go-gl/glfw/v3.2/glfw/c_glfw.go:4:
./glfw/src/x11_platform.h:36:10: fatal error: X11/Xlib.h: No such file or directory
 #include <X11/Xlib.h>
          ^~~~~~~~~~~~
compilation terminated.

i’m using fedora, and i started to search for the missing headers…

dnf provides '*X11/Xlib.h'
..
...
..

after bugging through a whole bunch of other errors and missing headers, i found all dependencies you need!

all together

first of all we can install needed packages with a groupinstall

sudo dnf groupinstall "X Software Development"

the other missing packages are

  • alsa-lib-devel
  • libX11-devel
  • libXrandr-devel
  • libXcursor-devel
  • libXinerama-devel
sudo dnf install alsa-lib-devel libX11-devel libXrandr-devel libXcursor-devel libXinerama-devel

now everything should just work :)

Last posts

Tags