Hi,
I’m trying to snap my game. I can install the *.snap file I get after running $ snapcraft
, but when I try to run it I get this output:
caleb@whistling-duck:~/projects/gladupe$ gladupe
gladupe 0.1 installed
libGL error: MESA-LOADER: failed to open i965 (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: i965
libGL error: MESA-LOADER: failed to open i965 (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: i965
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
X Error: GLXBadContext
Request Major code 152 (GLX)
Request Minor code 6 ()
Error Serial #112
Current Serial #111
After a few searches I found this: Adding OpenGL/GPU support to a snap
But after changing my snapcraft.yaml as the link says, the error was the same.
The only OpenGL-related stuff I had in there before was libgl1
and libglx0
in stage-packages
.
While my project doesn’t directly need OpenGL, for snapcraft I’m statically compiling with my game two libraries that do.
That being said, how do I solve or avoid this error?
Thanks.
Edit: I thought I’d note that when I install it, I can do
caleb@whistling-duck:~$ cd /snap/gladupe/current
caleb@whistling-duck:/snap/gladupe/current$ bin/gladupe
and it works fine.