wyvern010
Topic Author
Posts: 31
Joined: 18 Apr 2019, 13:41

WebGL won't build with 3.1.0rc1

24 Jul 2021, 17:46

HI,

I updated noesis from 3.0.12 to the latest 3.1.0rc1.
And when i build WebGL i get the following errors:
Failed running "D:/Unity/2020.3.14f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" -E "D:/Unity/2020.3.14f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten\emcc" @"D:\Slidecrew Developments\Noesis Test\Assets\..\Temp\emcc_arguments.resp"

stdout:
stderr:error: Linking globals named 'stbir_resize_uint8': symbol multiply defined!WARNING:root:Note: Input file "@C:\Users\*****\AppData\Local\Temp\tmpdjmn5f.response" did not exist.ERROR:root:Failed to run llvm optimizations: 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Exception: Failed building WebGL Player.
UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)
UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:423)
UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:464)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:914)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <25e9afc147634a5ca855ab83fab425dd>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
To verify that it was not something else in my project that made the build fail i created a new empty project -> imported the 3.1.0rc1 and added NoesisView to my camera.
Build failed.
Removed the Noesis package and build succeeded.
I'm currently using Unity 2020.3.14f1 and the emscriptem version is: 1.38.11
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: WebGL won't build with 3.1.0rc1

26 Jul 2021, 11:48

Just tried a clean project with Unity 2021.1.12, imported 'Hello World' sample and it correctly compiles and executes. But your linking error is suspicious because we are using that function (stbir_resize_uint8) and I see is not properly exported. I will fix it. Thanks for reporting.
 
wyvern010
Topic Author
Posts: 31
Joined: 18 Apr 2019, 13:41

Re: WebGL won't build with 3.1.0rc1

27 Jul 2021, 12:02

The issue is fixed in rc2.

Thanks for the quick repsonse!
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: WebGL won't build with 3.1.0rc1

27 Jul 2021, 12:09

I am glad to hear that! : )

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 83 guests