discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
6k stars 1.26k forks source link

Game SDK: undefined reference to GLIBC_2.27 when compiling Linux in Unreal Engine #6176

Open Zaratusa opened 1 year ago

Zaratusa commented 1 year ago

Description

Hi,

I'm using the Game SDK 3.2.1 on Linux in Unreal Engine 4.27 with the Toolchain v19 (clang-11.0.1-based). When compiling the game I'm getting the following linker errors:

discord_game_sdk.so: undefined reference to powf@GLIBC_2.27 [--no-allow-shlib-undefined]
discord_game_sdk.so: undefined reference to exp2f@GLIBC_2.27 [--no-allow-shlib-undefined]

Is there any way to fix this issue?

Steps to Reproduce

Use Unreal Engine Linux Toolchain v19 or newer to build an application with the Game SDK.

Expected Behavior

It compiles successfully without linker errors.

Current Behavior

It fails to compile with linker errors.

Client and System Information

HashemShepard commented 2 months ago

Any progress on this ?

Zaratusa commented 2 months ago

Nope, I'm still using version 2.5.6

HashemShepard commented 2 months ago

@Zaratusa can you send me the link to 2.5.6 please, i need a working .so file to package my game

Zaratusa commented 2 months ago

It's available on the GameSDK overview page. Here is also a direct link.

HashemShepard commented 2 months ago

Still getting these two errors

    ld.lld: error: A:/Mobar/GameFiles/ProjectMobar/Plugins/DiscordUE4/Source/ThirdParty/discord-files/Linux/x86_64-unknown-linux-gnu\libdiscord_game_sdk.so: undefined reference to exp2f@GLIBC_2.27 [--no-allow-shlib-undefined]

even with 2.5.6