kaveh808 / kons-9

Common Lisp 3D Graphics Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Steam Deck Compatibility

aamedina opened this issue · comments

I thought it would be interesting to try and get this running on the Steam Deck. It's a read only file system outside of the home directory so you can't install GLFW3 as a dependency and have it get picked up automatically. I tested the LWJGL3 demo suite which uses GLFW3 and it worked, so it is possible to run GLFW3 applications on the Steam Deck as long as the binaries are packaged for the x64 linux platform. So I copied the GLFW3 libs from LWJGL3's natives jar and another for libGLU.so into another directory in the deck's home directory.

I told CFFI about these libraries using:

(setf cffi:*foreign-library-directories* (list "/home/deck/.local/lib/" "/usr/lib/" "/usr/lib64/"))

And then using SBCL I was able to run kons-9 on the Steam Deck! It seems to work well, performance is very good when interacting with 3d objects.

Very cool! Posting this as an issue in case you want to track something about dealing with those native libraries.

Very cool indeed.