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

Doesn't work on Ubuntu 20.04 #54

Open
djohts opened this issue Nov 4, 2022 · 2 comments
Open

Doesn't work on Ubuntu 20.04 #54

djohts opened this issue Nov 4, 2022 · 2 comments

Comments

@djohts
Copy link

djohts commented Nov 4, 2022

Hello, I am using a minecraft launcher which has a module for Discord rich presence which uses this library, yet it doesn't work on Ubuntu 20.04 due to outdated libc6 version (upgrading to 21 is not an option for me, as most of the guides say to do (nor I want to spend hours of time to update libc manually)).

Error:

java.lang.UnsatisfiedLinkError: /home/alex/.minecraftlauncher/SoF/guard/libdiscord_game_sdk_jni.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/alex/.minecraftlauncher/SoF/guard/libdiscord_game_sdk_jni.so)
$ uname -a
Linux pcdjoh 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
@JnCrMx
Copy link
Owner

JnCrMx commented Nov 11, 2022

Hello,

I am working towards a Java-only implementation of this library, which then would not have this issue.

Until then, you can attempt to compile the library and by that also the native library from source: https://github.com/JnCrMx/discord-game-sdk4j#building-the-native-library-from-source

@letorbi
Copy link
Contributor

letorbi commented Jul 16, 2023

The java-impl branch contains the Java-only implementation. It is currently known to work with Windows, Mac (Intel & ARM) as well as Arch Linux (and probably other distros).

It is mostly API compatible to the master branch and even though some things might be missing, the main features are available.

I am using that branch for a little project of mine, and it is working fine so far. You can use JitPack to include the java-impl branch into your project.

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

3 participants