This guide is for Discord plugin users that can’t compile or package their game for the Linux platform.
If you haven’t installed Discord Rich Presence in your Unreal Engine 4 project click here our guide.
The first step is to download all of the required files.
Downloading the Files
To download the library files necessary for compilation, navigate to the releases section of the DiscordRPC GitHub page.
Click here to view the Releases
This file is hosted on the official Discord GitHub page and not CouchLearn.com
Find the latest release (Green text on the left) and download the discord-rpc-linux.zip file.
Unzip the discord-rpc-linux.zip file somewhere you can easily access it.
Installing the Files
Include Files
Navigate to the /ThirdParty/DiscordRpcLibrary folder in your project’s plugins folder and check if you already have the Include folder.
If you have this folder move on to the next step.
If you do not have this folder follow the “Copying files to Compile the plugin” section.
Linux Build Files
Create a new folder named Linux:
Navigate to the /linux-dynamic/lib folder from the files extracted earlier. Simply copy and paste the libdiscord-rpc.so file into the Linux folder created in the last step.
Conclusion
Your Discord Rich Presence enabled game will now successfully compile and package for the Linux platform!
Packaging for the Linux platform is possible from a Windows machine but requires extra steps to enable this in your project.
A guide for packaging Linux executables from a Windows PC is being developed and will be linked here on completion.
To set up the blueprints required for Discord Rich Presence, read the guide here on CouchLearn.com
Leave a Reply