go-gl / glfw

Go bindings for GLFW 3
BSD 3-Clause "New" or "Revised" License
1.55k stars 179 forks source link

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

Open hajimehoshi opened 4 years ago

hajimehoshi commented 4 years ago

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.

Noofbiz commented 4 years ago

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.

tapir commented 4 years ago

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.

ilylily commented 2 years ago

openbsd support in #336

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

Jacalz commented 2 years ago

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.

hajimehoshi commented 2 years ago

Yes the PR just partially fixed this issue

Jacalz commented 2 years ago

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

hajimehoshi commented 2 years ago

🎉

Jacalz commented 2 years ago

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

ilylily commented 2 years ago

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

Jacalz commented 2 years ago

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

Jacalz commented 2 years ago

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 commented 3 months ago

Is there any more to do here? Flavours of Solaris (Illumos based mostly) and DragonflyBSD are the only ones missing support as far as I know and those are far from common in the world nowadays.