# Failing to load needed PS4 libs using packaged build in UE4.11

**URL:** https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454
**Category:** Unreal Engine
**Created:** [April 20, 2016, 6:20pm UTC](https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454 "2016-04-20T18:20:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bwalker1981](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@bwalker1981](https://qa.fmod.com/u/bwalker1981)
#### Post date: [April 20, 2016, 6:20pm UTC](https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454/1 "2016-04-20T18:20:26Z")

</div>

I was recently experimenting with making PS4 packages of our UE4 game. When running the built package on the PS4 I noticed I couldn’t get our FMOD effects to play. While looking through the logs I noticed this error:

> [2016.04.18-22.29.44:337][0]LogFMODOculus: StartupModule  
> [2016.04.18-22.29.44:337][0]LogFMOD: FFMODStudioModule startup  
> [2016.04.18-22.29.44:337][0]LogFMOD: Lib path = ‘…/…/…/CharacterDemo/Plugins/FMODStudio/Binaries’  
> [2016.04.18-22.29.44:338][0]LogFMOD: FFMODStudioModule::LoadDll: Loading /app0/characterdemo/plugins/fmodstudio/binaries/ps4/libfmodL.prx  
> [2016.04.18-22.29.44:338][0]LogFMOD:Error: Failed to load module (error code -2147352574)  
> [2016.04.18-22.29.44:338][0]LogFMOD:Error: Failed to load FMOD DLL ‘/app0/characterdemo/plugins/fmodstudio/binaries/ps4/libfmodL.prx’, FMOD sounds will not play!  
> [2016.04.18-22.29.44:338][0]LogFMOD: FFMODStudioModule::LoadDll: Loading /app0/characterdemo/plugins/fmodstudio/binaries/ps4/libfmodstudioL.prx  
> [2016.04.18-22.29.44:338][0]LogFMOD:Error: Failed to load module (error code -2147352574)  
> [2016.04.18-22.29.44:338][0]LogFMOD:Error: Failed to load FMOD DLL ‘/app0/characterdemo/plugins/fmodstudio/binaries/ps4/libfmodstudioL.prx’, FMOD sounds will not play!

If I change the path in FFMODStudioModule::GetDLLPath to be:

FString::Printf(TEXT(“/app0/prx/lib%s.prx”), ShortName);

Then the FMOD libraries loads correctly:

> 03:05:08 [2016.04.19-00.01.41:470][0]LogFMODOculus: StartupModule  
> 03:05:08 [2016.04.19-00.01.41:471][0]LogFMOD: FFMODStudioModule startup  
> 03:05:08 [2016.04.19-00.01.41:471][0]LogFMOD: Lib path = ‘…/…/…/CharacterDemo/Plugins/FMODStudio/Binaries’  
> 03:05:08 [2016.04.19-00.01.41:471][0]LogFMOD: FFMODStudioModule::LoadDll: Loading /app0/prx/libfmodL.prx  
> 03:05:08 [2016.04.19-00.01.41:533][0]LogFMOD: FFMODStudioModule::LoadDll: Loading /app0/prx/libfmodstudioL.prx

Is this the right change to make or is there some project configuration setting I’m missing that causes the PS4 FMOD dlls to not be copied into the location it’s looking for them?

---

<div class="post-metadata">

### Author: ![geoff](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@geoff](https://qa.fmod.com/u/geoff)
#### Post date: [April 22, 2016, 5:48am UTC](https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454/2 "2016-04-22T05:48:01Z")

</div>

Hi,  
The prx loading changed in 4.11 since Epic added official support for plugins with dynamic libraries. As part of that change the prx loading path changed from:

```
return FString::Printf(TEXT("/app0/%s/ps4/lib%s.prx"), *ShortLibPath, ShortName);

```

To the new form:

```
return FString::Printf(TEXT("lib%s.prx"), ShortName);

```

Can you confirm you have this latest version already and that it wasn’t working for you?

I did test the above path string and it worked as far as I could tell, but there are various configurations so I might have missed something. Are you running a code project from within Visual Studio using on-demand cooking, via the editor with “Launch Game”, or are you testing a packaged build?

---

<div class="post-metadata">

### Author: ![bwalker1981](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@bwalker1981](https://qa.fmod.com/u/bwalker1981)
#### Post date: [April 26, 2016, 11:01pm UTC](https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454/3 "2016-04-26T23:01:44Z")

</div>

I was running against FMOD 1.08.01. I just noticed that 1.08.02 was released and it fixes that prx loading line. This appears to fix the issue for me. I’m testing against a packaged build BTW not using the on-demand cooking.

---

<div class="post-metadata">

### Author: ![geoff](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@geoff](https://qa.fmod.com/u/geoff)
#### Post date: [April 27, 2016, 2:31am UTC](https://qa.fmod.com/t/failing-to-load-needed-ps4-libs-using-packaged-build-in-ue4-11/12454/4 "2016-04-27T02:31:41Z")

</div>

> [@](#):
>
> I was running against FMOD 1.08.01. I just noticed that 1.08.02 was released and it fixes that prx loading line. This appears to fix the issue for me. I’m testing against a packaged build BTW not using the on-demand cooking.

Good to hear, let me know if you run into any more packaging problems with the new version.
