# Linking error on Linux UE4.26.2 FMOD 2.02.03

**URL:** https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745
**Category:** Unreal Engine
**Created:** [October 4, 2021, 9:21am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745 "2021-10-04T09:21:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)
#### Post date: [October 4, 2021, 9:21am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/1 "2021-10-04T09:21:03Z")

</div>

Hi,  
we have just created a Linux dedicated server build for our game, but it immediately crashes because of FMOD:

We are using UE4.26.2 and FMOD 2.02.03. The windows plugin is overwritten with the Linux patch, the plugins.txt files are also prepared. After doing Linux build, the .so files are copied from plugin Binaries to Game Binaries, similarly to our other game (that game is using UE4.24.3 and FMOD 2.01.07 and works fine).

1st we tested the plugin placed in the Game folder, but currently it is moved to our source built engine Engine/Plugins as written in the docs, but the results are the same:

Everything works fine (windows standalone, oculus/android, windows dedicated server), Linux server build is also compiled, but when starting the Linux server build we get the following strange error, and the server is crashing immediately, without providing any log file:

`./ZC2Server: error while loading shared libraries: ../../../core_api/platforms/linux/_builds/ReleaseWithLogging/Dynamic/x86_64/libfmodL.so: cannot open shared object file: No such file or directory`

It might be a linking error, that “platforms” path should not be required in our case.

In case of windows and android we use OculusSpatializerFMOD, it is not set up for Linux (Oculus usually doesn’t support Linux), no idea whether it can be a problem or not…

Thanks.

---

<div class="post-metadata">

### Author: ![Joseph46](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@Joseph46](https://qa.fmod.com/u/Joseph46)
#### Post date: [October 7, 2021, 9:30am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/2 "2021-10-07T09:30:17Z")

</div>

I realized the answer to this question moments before posting, but I spent enough time trying to figure it out I’m posing anyway for future reference if anyone else follows the Debian instructions and wonders why they get an undefined reference.

If you are including the “fmod\_studio.hpp” file you also need to include the fmod studio library. Add `-lfmodstudio` after `-lfmod` and provided you have everything else right it will now compile without an undefined reference[.](https://www.myccpay.bid/)

---

<div class="post-metadata">

### Author: ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)
#### Post date: [October 7, 2021, 10:02am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/3 "2021-10-07T10:02:30Z")

</div>

Hi,  
thanks, I just simply don’t understand it 🙂  
@Joseph46 should I include that .hpp file, or where to put `-lfmodstudio` and `-lfmod` ?

---

<div class="post-metadata">

### Author: ![Andrew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/andrew/32/261_2.png) [@Andrew](https://qa.fmod.com/u/Andrew)
#### Post date: [October 8, 2021, 3:35am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/4 "2021-10-08T03:35:53Z")

</div>

I’ve just uploaded a patch release to fix this problem. Re-download the UE4 integration and make sure you get the “patch3” release and all should be well.

Apologies for the inconvenience.

---

<div class="post-metadata">

### Author: ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)
#### Post date: [October 8, 2021, 8:06am UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/5 "2021-10-08T08:06:04Z")

</div>

thanks, I’m testing it today, and I will provide feedback.

---

<div class="post-metadata">

### Author: ![zsombor.bencsik](https://avatars.discourse-cdn.com/v4/letter/z/ee7513/32.png) [@zsombor.bencsik](https://qa.fmod.com/u/zsombor.bencsik)
#### Post date: [October 8, 2021, 1:46pm UTC](https://qa.fmod.com/t/linking-error-on-linux-ue4-26-2-fmod-2-02-03/17745/6 "2021-10-08T13:46:37Z")

</div>

hi,  
now with patch 3 the linux dedicated server starts properly, thanks again
