Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hajimehoshi opened this issue Jul 17, 2020 · 12 comments · Fixed by #336
Open

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

hajimehoshi opened this issue Jul 17, 2020 · 12 comments · Fixed by #336

Comments

@hajimehoshi
Copy link
Member

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
Copy link

Noofbiz commented Jul 17, 2020

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
Copy link
Member

tapir commented Jul 17, 2020

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
Copy link
Contributor

ilylily commented Oct 22, 2021

openbsd support in #336

netbsd support blocked on go-gl/glow#121 and godbus/dbus#275

hajimehoshi pushed a commit that referenced this issue Oct 23, 2021
@Jacalz
Copy link
Collaborator

Jacalz commented Oct 24, 2021

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 hajimehoshi reopened this Oct 24, 2021
@hajimehoshi
Copy link
Member Author

Yes the PR just partially fixed this issue

@Jacalz
Copy link
Collaborator

Jacalz commented Oct 27, 2021

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

@hajimehoshi
Copy link
Member Author

🎉

@Jacalz
Copy link
Collaborator

Jacalz commented Nov 27, 2021

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

@ilylily
Copy link
Contributor

ilylily commented Nov 28, 2021

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

dmitshur pushed a commit that referenced this issue Dec 4, 2021
Add missing build tags. Wayland support is documented as incomplete.

For #288.

GitHub-Pull-Request: #341
@Jacalz
Copy link
Collaborator

Jacalz commented Dec 8, 2021

I have opened go-gl/gl#146 to try and solve that regeneration of the gl package.

@Jacalz
Copy link
Collaborator

Jacalz commented Dec 11, 2021

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
Copy link
Collaborator

Jacalz commented Apr 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants