glfw icon indicating copy to clipboard operation
glfw copied to clipboard

Can go-gl/glfw support other UNIX systems like NetBSD?

Open hajimehoshi opened this issue 3 years ago • 12 comments

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.

hajimehoshi avatar Jul 17 '20 14:07 hajimehoshi

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.

Noofbiz avatar Jul 17 '20 16:07 Noofbiz

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.

tapir avatar Jul 17 '20 17:07 tapir

openbsd support in #336

netbsd support blocked on https://github.com/go-gl/glow/pull/121 and https://github.com/godbus/dbus/pull/275

ilylily avatar Oct 22 '21 07:10 ilylily

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.

Jacalz avatar Oct 24 '21 15:10 Jacalz

Yes the PR just partially fixed this issue

hajimehoshi avatar Oct 24 '21 15:10 hajimehoshi

Looks like support for NetBSD here should be unblocked now. Yay! :)

Jacalz avatar Oct 27 '21 13:10 Jacalz

🎉

hajimehoshi avatar Oct 27 '21 14:10 hajimehoshi

@ilylily Were you interested in getting NetBSD support added here?

Jacalz avatar Nov 27 '21 15:11 Jacalz

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

ilylily avatar Nov 28 '21 16:11 ilylily

I have opened https://github.com/go-gl/gl/pull/146 to try and solve that regeneration of the gl package.

Jacalz avatar Dec 08 '21 17:12 Jacalz

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?

image

Jacalz avatar Dec 11 '21 17:12 Jacalz