I’ve been struggling with getting a Linux build to use the Steam DLL from Ludosity. It just wouldn’t find the DLL files no matter where I placed them. The error from Ludosity’s wrapper:
“Could not load a dll file. Make sure that the steam_api.dll/libsteam_api.dylib file is placed at the correct location. See the documentation for more info.”
The solution had little to do with how the Unity project was setup, or where the .so files were (in the same directory as the .x86 file).
You need to create a script file (use gedit in Linux) and put in the following:
#!/bin/sh
export LD_LIBRARY_PATH=“.:$LD_LIBRARY_PATH”
./myunitygame.x86 “$@”
That tells Linux to look in the current directory for any library (.so) files. By default Linux does not do that, unlike Windows. Then you just run that script instead of your game. (Make sure both have Execute Permissions set)