Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find libsteaam_api.so #10

Closed
blindsighter314 opened this issue Nov 21, 2019 · 2 comments
Closed

Cannot find libsteaam_api.so #10

blindsighter314 opened this issue Nov 21, 2019 · 2 comments

Comments

@blindsighter314
Copy link

Whenever I attempt to require luasteam.so I get the following error.

Error

error loading module 'luasteam' from file './luasteam.so':
libsteam_api.so: cannot open shared object file: No such file or directory

Traceback

[C]: at 0x7f86e885f310
[C]: in function 'require'
main.lua:2: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

My OS is Ubuntu Linux 64 bit.
In my current configuration I have luasteam.so and libsteam_api.so sitting in the root game folder with main.lua.

I am requiring luasteam with

steam = require 'luasteam'

I have tried the pre compiled luasteam as well as compiling it myself with Lua 5.1 .h files. I have tried putting libsteam_api in the root folder as well as the save folder and the normal sdk folder, all with the same error.

I am using the latest release of the Steamworks SDK as of November 11th. Any tips?

Thank you,

@yancouto
Copy link
Collaborator

yancouto commented Nov 21, 2019

Not sure exactly how you're running this command.

It might help if you set LD_LIBRARY_PATH to the directory that has libsteam, so something like

LD_LIBRARY_PATH=. lua main.lua

Does that help?

If it doesn't, try to provide a minimum (not) working example and I'll see if I can repro.

@blindsighter314
Copy link
Author

That worked, thank you very much for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants