glfw: Unable to install glfw/v3.1

I’m trying to install github.com/go-gl/glfw/v3.1/glfw with next command:

go get github.com/go-gl/glfw/v3.1/glfw

And got following result:

# github.com/go-gl/glfw/v3.1/glfw
In file included from ./glfw/src/internal.h:74:0,
                 from ./glfw/src/context.c:28,
                 from ./glfw_context.c:1:
./glfw/src/x11_platform.h:38:33: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
 #include <X11/Xcursor/Xcursor.h>
                                 ^
compilation terminated.

I tried on Ubuntu.

$ uname -a
Linux localhost 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

I’ve just checked. For future reference the package xorg-dev installs everything needed.

I think it’s actually libxcursor-dev

Finally, after I’ve installed libxinerama-dev, go get github.com/go-gl/glfw/v3.1/glfw successfully finished. Thank you.

Isn’t there a meta package that gets everything. Something like xorg-dev?

openSUSE Leap 15.3 problem is solved by:

sudo zypper in xorg-x11-devel

libxi-dev contains XInput2.h, and now it could not find X11/extensions/Xinerama.h