glfw
glfw copied to clipboard
Can go-gl/glfw support other UNIX systems like NetBSD?
GLFW itself supports UNIX-like systems in theory, but go-gl/glfw supports only Linux and FreeBSD. Just out of curiosity, I was wondering why there is such limitation.
Doesn't glfw on linux just interface with x-11 or Wayland? So the limitation should be if the distro supports x or Wayland. (Looking at glfw itself it also supports OSMesa) ETA Looks like it should be as simple as adding netbsd to the build tags.
I don't think there is any obstacle on compiling it on other BSDs.
Mainly the files c_glfw_freebsd.go
native_linbsd.go
should be updated with netbsd openbsd
tags and of course new build tags in build.go
should be added. Also if you were to send a PR, a readme update with build dependencies would be great too.
openbsd support in #336
netbsd support blocked on https://github.com/go-gl/glow/pull/121 and https://github.com/godbus/dbus/pull/275
I think this might have been accidentally closed. NetBSD support has not landed yet as far as I know. There might theoretically be more systems that could be added in the future (etc. DragonflyBSD, OpenIndiana) as well.
Yes the PR just partially fixed this issue
Looks like support for NetBSD here should be unblocked now. Yay! :)
🎉
@ilylily Were you interested in getting NetBSD support added here?
i am! i have a patch for x, but i got lost seeing if i could solve some issues building for netbsd's wayland stack, then of course work picked up and i forgot all about it. i'll send a pr with what i've got for further discussion
I have opened https://github.com/go-gl/gl/pull/146 to try and solve that regeneration of the gl
package.
I tried to get DragonflyBSD running using the same way as netbsd by adding support here and regenerating gl. However, I get an error about no window creation method being selected. Does anyone know if glfw is supported on DragonflyBSD?