You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build Attract Mode for my Steam Deck, but I don't want to build it on my Steam Deck because that would involve enabling Developer Mode, setting the filesystem to be read-write, and, well, making those intrusive changes. Instead, I want to build it on another machine (using Docker, of course), smoke-test it on that machine (where my username isn't "deck"), copy the output directory to my Steam Deck's home directory, and then add it to Steam as a non-Steam game. So, in the end, my Steam Deck would have:
~/attract-2.7.0/bin/attract
~/attract-2.7.0/share/attract/
~/attract-2.7.0/lib/ (any libraries I need to copy over go here)
The lib directory can be dealt with using patchelf (I know I should be able to do this with an environment variable, but I couldn't get that to work):
The share directory location, well, that's why I entered the ticket. I want Attract Mode to look for it in a place relative to the executable location. The only way I could get that to work was by patching the Makefile:
The point is is that it would be nice to have an easier way of making the executable look for DATA_PATH in a relative location, and not an absolute one.
This would also make it easier to build, say, an AppImage, which needs the executable to look for data in paths that are relative to the executable location.
The text was updated successfully, but these errors were encountered:
Okay, use case first.
I want to build Attract Mode for my Steam Deck, but I don't want to build it on my Steam Deck because that would involve enabling Developer Mode, setting the filesystem to be read-write, and, well, making those intrusive changes. Instead, I want to build it on another machine (using Docker, of course), smoke-test it on that machine (where my username isn't "deck"), copy the output directory to my Steam Deck's home directory, and then add it to Steam as a non-Steam game. So, in the end, my Steam Deck would have:
The lib directory can be dealt with using patchelf (I know I should be able to do this with an environment variable, but I couldn't get that to work):
(Reference: https://stackoverflow.com/questions/13769141/can-i-change-rpath-in-an-already-compiled-binary)
The share directory location, well, that's why I entered the ticket. I want Attract Mode to look for it in a place relative to the executable location. The only way I could get that to work was by patching the Makefile:
I don't know if I did it exactly right, but that does work. My build command line is then:
Reference:
https://stackoverflow.com/questions/9654062/tell-a-configure-script-to-use-a-relative-path-for-datarootdir
The point is is that it would be nice to have an easier way of making the executable look for DATA_PATH in a relative location, and not an absolute one.
This would also make it easier to build, say, an AppImage, which needs the executable to look for data in paths that are relative to the executable location.
The text was updated successfully, but these errors were encountered: