Running OpenGL-based applications in Distrobox

Hopefully this is the right place to ask this - the containers channel said not to ask about Distrobox there. Some of my hobby projects involve developing and using OpenGL applications, the two most important ones being built on SDL2 and Qt respectively. Since development involves installing GCC and a whole host of dependencies, I've been trying to set up a Distrobox environment to do this, rather than installing everything on top of Bazzite itself. For the SDL2 case, performance is not great when I run the application from Distrobox via the debugger in VS Codium. General FPS is alright (probably around 20), but the application exhibits regular hitches of a few seconds each time, which makes it unusable. For the Qt-based OpenGL application, I don't seem to be able to launch it at all. When I try, glewInit() fails and returns GLEW_ERROR_NO_GLX_DISPLAY, which I gather is something to do with X11/Wayland, but I'm not sure exactly what. Are there recommended practices for running 3D applications like this from within Distrobox? Alternatively, is there a good way to develop them on Bazzite itself, in some other kind of sandbox in user space?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?