So I’m developing my game for Linux using FMOD and Resonance Audio.
After building my game (for Linux) and hitting play, I get an issue loading the libresonanceaudio.so file. FMOD seems to be looking in (relative to the build directory) Whatever_Data/Plugins/ instead of Whatever_Data/Plugins/x86_64 on Linux.
A current workaround is in PlatformLinux.cs, changing out the GetPluginPath(...) function (line 82-85) to this:
internal override string GetPluginPath(string pluginName)
{
return string.Format("{0}/{1}/lib{2}.so", GetPluginBasePath(), RuntimeUtils.GetPluginArchitectureFolder(), pluginName);
}
Note that it’s now also looking inside the Whatever_Data/Plugins/{RuntimeUtils.GetPluginArchitectureFolder()}/, instead of directly inside Whatever_Data/Plugins/.
Hi,
Thanks for bringing this to our attention and sharing your workaround.
I could not reproduce the issue testing Unity 6.3 and FMOD Integration 2.03.14. I checked the resonance plugin was found in:
/UNITY_PROJECT/UNITY_PROJECT_Data/Plugins/libresonanceaudio.so
This is with the default player settings, have you made any changes to the project to make it build to an x86_64 folder? Would it be possible to share the full build logs as well?
Hi, thanks for the response 
I was getting the error with Unity 6.4 (I’ve since upgraded to Unity 6.5), using FMOD 2.03.13 (Unity Verified).
I seem to have failed to mention that I’m running the Unity Editor on Linux, sorry about that
.
I haven’t made any changes to settings to save to a platform-specific folder.
I’ve noticed that PlatformWindows’s GetPluginPath is very similar to the one I’ve provided.
internal override string GetPluginPath(string pluginName)
{
#if UNITY_STANDALONE_WIN
return string.Format("{0}/{1}/{2}.dll", GetPluginBasePath(), RuntimeUtils.GetPluginArchitectureFolder(), pluginName);
#else // UNITY_WSA
return string.Format("{0}.dll", pluginName);
#endif
}
PlatformWindows.cs
I can’t share full build logs (I can only find Editor.log) since it’s 2.9MiB and I can’t as a new user upload attachments, and Pastebin won’t accept it.
Hi,
Thanks for the info, I was also testing on Linux Ubuntu 24.04.4 LTS, the missing link was Unity 6.4 I was able to reproduce the issue.
I will make a task to add your workaround. Thank you for bringing this to our attention.