# Lib issues when building for Linux

**URL:** <https://qa.fmod.com/t/lib-issues-when-building-for-linux/16263>\
**Category:** Unity\
**Tags:** linux, unity\
**Created:** [October 6, 2020, 9:12pm UTC](https://qa.fmod.com/t/lib-issues-when-building-for-linux/16263 "2020-10-06T21:12:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tasta](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@Tasta](https://qa.fmod.com/u/Tasta)\
**Post date:** [October 6, 2020, 9:12pm UTC](https://qa.fmod.com/t/lib-issues-when-building-for-linux/16263/1 "2020-10-06T21:12:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ben\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/ben_fmod/32/1452_2.png) [@ben\_fmod](https://qa.fmod.com/u/ben_fmod)\
**Post date:** [October 8, 2020, 11:07pm UTC](https://qa.fmod.com/t/lib-issues-when-building-for-linux/16263/2 "2020-10-08T23:07:14Z")

</div>

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
```
