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

Unable to load shared library 'discord_game_sdk' #25

Open
RHeynsZa opened this issue Mar 23, 2021 · 5 comments
Open

Unable to load shared library 'discord_game_sdk' #25

RHeynsZa opened this issue Mar 23, 2021 · 5 comments

Comments

@RHeynsZa
Copy link

This still isnt resolved

#23

Created DiscordManager e5f71692-40e9-4e5e-8d90-305a3497c4fc
e5f71692-40e9-4e5e-8d90-305a3497c4fc - Creating new Discord instance
Unhandled exception. System.TypeInitializationException: The type initializer for 'RichPresenceApi.DiscordManager' threw an exception.
 ---> System.DllNotFoundException: Unable to load shared library 'discord_game_sdk' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libdiscord_game_sdk: cannot open shared object file: No such file or directory
   at DiscordSdk.Discord.DiscordCreate(UInt32 version, FFICreateParams& createParams, IntPtr& manager)
   at DiscordSdk.Discord..ctor(Int64 clientId, UInt64 flags) in D:\Programming\Git\FoundryVTT-Discord-Rich-Presence\LocalApi\DiscordSdk\Core.cs:line 1060
@cswendrowski
Copy link
Owner

@RHeynsZa what OS?

@RHeynsZa
Copy link
Author

Linux, Ubuntu 20

@NahmiiVuhuni
Copy link

Is there a specific version of dotnet we should try running this against? I would love to use this but we haven't seemed to find any support, and it's apparently broken on both Windows and Linux in some cases.

@LiquidPL
Copy link

This is happening because the latest release of the app is missing the Linux Discord Game SDK library, get it from here, and unzip the discord_game_sdk.so file in your main app directory.

@mastef
Copy link

mastef commented Jul 23, 2021

This is happening because the latest release of the app is missing the Linux Discord Game SDK library, get it from here, and unzip the discord_game_sdk.so file in your main app directory.

@LiquidPL the file seems to be present though https://github.com/cswendrowski/FoundryVTT-Discord-Rich-Presence/tree/master/LocalApi/DiscordSdk

The advice I read somewhere else was that *.so files need to start with lib on linux systems. So trying to rename discord_game_sdk.so to libdiscord_game_sdk.so could help.

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

5 participants