philippj / SteamworksPy

A working Python API system for Valve's Steamworks.
MIT License
212 stars 39 forks source link

[LINUX] libsteam_api.so not found #61

Closed rimpy-custom closed 2 years ago

rimpy-custom commented 3 years ago

Have tried to compile SteamworksPy on Debian 10, process was successful. But when I try to use it, I get error: libsteam_api.so: cannot open shared object file: No such file or directory ldd SteamworksPy.so return this: libsteam_api.so => not found But it is in the same folder. next to SteamworksPy.so file.

ldd SteamworksPy.so from precompiled 1.6.1 release also has the same issue.

rimpy-custom commented 3 years ago

Ok, fixed that with adding to the end of makefile: -Wl,-rpath=.: g++ -std=c++11 -o SteamworksPy.so -shared -fPIC SteamworksPy.cpp -l steam_api -L. -Wl,-rpath=.

Cussa commented 3 years ago

Hello, one question: is it possible to provide the Linux compiled version, like we have for windows? The latest release just have the windows 64 dll.

danlexo commented 2 years ago

Just to note, if -Wl,-rpath=. flag is not set then LD_LIBRARY_PATH environment variable needs to be set to where libsteam_api.so is located

vu1canic commented 2 years ago

PR works for at least for me

philippj commented 2 years ago

Resolved by #72