FMOD 2.00.07 / Unity 2019.2.18f1
Hey, ever since integrating FMOD I’m unable to build for WebGL. A release build compiles and runs, but gets stuck 90% of the way into the loading screen, and a development build doesn’t compile at all. Where do I get started with this?
Release build browser console output:
[UnityCache] 'http://localhost:58544/Build/debug.wasm.framework.unityweb' successfully downloaded and stored in the indexedDB cache [UnityLoader.js:4:13333](http://localhost:58544/Build/UnityLoader.js)
[UnityCache] 'http://localhost:58544/Build/debug.wasm.code.unityweb' successfully downloaded and stored in the indexedDB cache [UnityLoader.js:4:13333](http://localhost:58544/Build/UnityLoader.js)
[UnityCache] 'http://localhost:58544/Build/debug.data.unityweb' successfully downloaded and stored in the indexedDB cache [UnityLoader.js:4:13333](http://localhost:58544/Build/UnityLoader.js)
failed to asynchronously prepare wasm: LinkError: import object field '__ZN4FMODU7gGlobalE' is not a Number [UnityLoader.js:4:11145](http://localhost:58544/Build/UnityLoader.js)
printErr http://localhost:58544/Build/UnityLoader.js:4
instantiateArrayBuffer blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8
LinkError: "import object field '__ZN4FMODU7gGlobalE' is not a Number" [UnityLoader.js:4:11108](http://localhost:58544/Build/UnityLoader.js)
LinkError: "import object field '__ZN4FMODU7gGlobalE' is not a Number" [UnityLoader.js:4:11145](http://localhost:58544/Build/UnityLoader.js)
printErr http://localhost:58544/Build/UnityLoader.js:4
onAbort http://localhost:58544/Build/UnityLoader.js:4
abort blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8
instantiateArrayBuffer blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8
uncaught exception: abort({}) at jsStackTrace@blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8:22313 stackTrace@blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8:22484 onAbort@http://localhost:58544/Build/UnityLoader.js:4:11047 abort@blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8:673613 instantiateArrayBuffer/<@blob:http://localhost:58544/f606791b-ad57-4022-bb88-d3db3bf69060:8:31339
Development build Unity editor console output:
Failed running “C:/Program Files/Unity/Hub/Editor/2019.2.18f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe” -E “C:/Program Files/Unity/Hub/Editor/2019.2.18f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten\emcc” @“C:\Workspace\pawnbarian\Assets..\Temp\emcc_arguments.resp”
stdout:
stderr:warning: unexpected number of arguments 1 in call to ‘__cxa_pure_virtual’, should be 0warning: unexpected number of arguments 2 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0warning: unexpected number of arguments 4 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0warning: unexpected number of arguments 5 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0warning: unexpected number of arguments 4 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0warning: unexpected number of arguments 2 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0warning: unexpected number of arguments 3 in call to ‘_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv’, should be 0error: unresolved symbol: FMOD5_ChannelGroup_AddDSPerror: unresolved symbol: FMOD5_ChannelGroup_AddFadePointerror: unresolved symbol: FMOD5_ChannelGroup_AddGrouperror: unresolved symbol: FMOD5_ChannelGroup_Get3DAttributes
[a gazillion more lines about FMOD5 unresolved symbols truncated]