# BuildFailedException: No FMOD platform found for build target PS5

**URL:** <https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366>\
**Category:** Unity\
**Created:** [February 16, 2022, 1:07am UTC](https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366 "2022-02-16T01:07:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ackleyrc](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ackleyrc](https://qa.fmod.com/u/ackleyrc)\
**Post date:** [February 16, 2022, 1:07am UTC](https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366/1 "2022-02-16T01:07:58Z")

</div>

Hello, I’m attempting to produce a build for PS5 and getting a BuildFailedException. I don’t get this error when building via the Build Settings window, but I do when built thru Unity’s BuildPipeline.

The build fails with the following:

BuildFailedException: No FMOD platform found for build target PS5.  
You may need to install a platform specific integration package from [https://www.fmod.com/download](https://www.fmod.com/download).  
FMODUnity.EditorSettings+BuildProcessor.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Assets/Plugins/FMOD/src/Editor/EditorSettings.cs:632)  
UnityEditor.Build.BuildPipelineInterfaces+\<\>c\_\_DisplayClass15\_0.b\_\_1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at \<7ac35247888b44f4a7e290f1f6bb33f3\>:0)  
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at \<7ac35247888b44f4a7e290f1f6bb33f3\>:0)  
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)

I’m using FMOD 2.02.04 with the package for PS5 SDK 3.000. I’ve tried only re-importing the PS5 package, as well as deleting the entire FMOD plugin and re-importing both packages (base plus PS5) from scratch, but same exception occurs. No such exceptions when targeting Standalone Windows64 via BuildPipeline.

I noticed a response to an earlier post about BuildFailedExceptions mentions checking Assets/Plugins/FMOD/lib/ for the library corresponding to the target platform, though for me, all these files are under Assets/Plugins/FMOD/platforms/. Libraries for both Windows and PS5 appear in their respective folders under this platforms directory.

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![ackleyrc](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ackleyrc](https://qa.fmod.com/u/ackleyrc)\
**Post date:** [February 18, 2022, 1:44am UTC](https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366/2 "2022-02-18T01:44:04Z")

</div>

Also can confirm that we have FMOD content linking set up for multiple platforms, with a platform-dedicated set of banks for each in their own respective subdirectory, including one for PS5.

---

<div class="post-metadata">

**Author:** ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)\
**Post date:** [February 21, 2022, 1:26am UTC](https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366/3 "2022-02-21T01:26:53Z")

</div>

Have you imported the PS5 integeration package from the [FMOD downloads page](https://fmod.com/download#unityintegration)?  
EDIT: Apolgies just re-read your post and saw that you have imported the PS5 package. I recently saw a similar issue on Xbox one and it appears to be due to a missing preprocessor directive. Can you please try adding the following to the top of **Assets\Plugins\FMOD\platforms\ps5\src\PlatformPS5.cs**

```auto
#if !UNITY_PS5
    #define UNITY_PS5
#endif

```

You may need to remove this section to avoid a naming collision with PS4:

```auto
#if UNITY_PS5 && !UNITY_EDITOR
namespace FMOD
{
    public partial class VERSION
    {
        public const string dll = "libfmod" + dllSuffix;
    }
}

namespace FMOD.Studio
{
    public partial class STUDIO_VERSION
    {
        public const string dll = "libfmodstudio" + dllSuffix;
    }
}
#endif

```

---

<div class="post-metadata">

**Author:** ![ackleyrc](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ackleyrc](https://qa.fmod.com/u/ackleyrc)\
**Post date:** [February 23, 2022, 2:19am UTC](https://qa.fmod.com/t/buildfailedexception-no-fmod-platform-found-for-build-target-ps5/18366/4 "2022-02-23T02:19:24Z")

</div>

That fixed it! Just adding that first block was sufficient to resolve the error. Thanks so much!

EDIT: Removing that second block was also needed after all, so when targeting other platforms (e.g. Windows 64, Xbox Series, etc), the FMOD libraries could be disambiguated.
