~eliasnaur/gio

missing pkg 'xorg-dev' for example/glfw

Meng, Fino
Details
Message ID
<BYAPR11MB376560D4D4468A298C414EF8EE800@BYAPR11MB3765.namprd11.prod.outlook.com>
DKIM signature
missing
Download raw message
hi team, 

I just pull gio repo and played with examples, on Debian 10, login with Wayland but not X11, it seems that, example/glfw  still need "xorg-dev " under wayland, here is the print: 

fino@OP7071DE:/work/gioui/gio/example/glfw$ go run main.go
go: downloading github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
go: downloading github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7
go: downloading github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72
# github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/internal.h:187,
                 from ./glfw/src/context.c:30,
                 from /home/fino/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20191125211704-12ad95a8df72/c_glfw.go:4:
./glfw/src/x11_platform.h:36:10: fatal error: X11/Xcursor/Xcursor.h: No such file or directory  #include <X11/Xcursor/Xcursor.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

issue fixed by:   sudo apt install xorg-dev

BR / Fino Meng (孟祥夫)
Intel – IOTG Developer Enabling
Export thread (mbox)