Lib issues when building for Linux

Hello FMOD,

We’re trying to setup a build machine & test runner on linux for our Unity Project. (Unity is 2019.3.x, FMOD is 2.01.01)

We’re having a problem with the libfmodstudio shared library.

First, we get a bunch of these warnings:
Plugins: Couldn't open Assets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so, error: Assets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so: invalid ELF header

After which the runner gets stuck doing this:
DllNotFoundException: fmodstudioL at (wrapper managed-to-native) FMOD.Memory.FMOD5_Memory_GetStats(int&,int&,bool) at FMOD.Memory.GetStats (System.Int32& currentalloced, System.Int32& maxalloced, System.Boolean blocking) [0x00001] in Assets/Plugins/FMOD/src/Runtime/wrapper/fmod.cs:888 at FMODUnity.RuntimeUtils.EnforceLibraryOrder () [0x00001] in Assets/Plugins/FMOD/src/Runtime/RuntimeUtils.cs:407 at FMODUnity.EditorUtils.CreateSystem () [0x0000c] in Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:212 at FMODUnity.EditorUtils.get_System () [0x00013] in Assets/Plugins/FMOD/src/Editor/EditorUtils.cs:287 at FMODUnity.EventManager.UpdateCache () [0x0029e] in Assets/Plugins/FMOD/src/Editor/EventManager.cs:157 at FMODUnity.EventManager.RefreshBanks () [0x00007] in Assets/Plugins/FMOD/src/Editor/EventManager.cs:37 at FMODUnity.EventManager.Update () [0x0000b] in Assets/Plugins/FMOD/src/Editor/EventManager.cs:669

Up until the log files gets about 900MB and our runner gets shut down for eating too much RAM.

Is this something on FMOD’s side (e.g. binary arch wrong), or did we do something wrong?

Thanks,
Tasta.

Hi, thanks for getting in touch. There don’t seem to be any problems with libfmodstudioL.so on our end. Can you try running the Linux file command on libfmodstudioL.so? This is what I get:

$ file Assets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so
Assets/Plugins/FMOD/lib/linux/x86_64/libfmodstudioL.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=733dc55f25ae89e67fba6b99bb5cd5ee1034773b, stripped