In Unity 6000.0.11f, when using the this package the build throws the the Bee errors undefined symbol
. Further versions (2022.3.15f and 2023.1.15f1) does not have this problem.
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
D:\Projekte\Unity\_temp\SuperResponsiveGUI>set MYDIR=C:\Program Files\Unity\Hub\Editor\6000.0.11f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\
D:\Projekte\Unity\_temp\SuperResponsiveGUI>goto FOUND_MYDIR
wasm-ld: error: Library/PackageCache/com.gilzoide.flex-ui/Plugins/build/webgl/libflex-ui.bc: undefined symbol: std::__2::__vector_base_common<true>::__throw_length_error() const
wasm-ld: error: Library/PackageCache/com.gilzoide.flex-ui/Plugins/build/webgl/libflex-ui.bc: undefined symbol: std::__2::__vector_base_common<true>::__throw_out_of_range() const
emcc: error: '"C:/Program Files/Unity/Hub/Editor/6000.0.11f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\wasm-ld.exe" @C:\Users\Rob\AppData\Local\Temp\emscripten_zp6fwbeo.rsp.utf-8' failed (returned 1)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Build completed with a result of 'Failed' in 30 seconds (30201 ms)
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
D:\Projekte\Unity\_temp\SuperResponsiveGUI>set MYDIR=C:\Program Files\Unity\Hub\Editor\6000.0.11f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\
D:\Projekte\Unity\_temp\SuperResponsiveGUI>goto FOUND_MYDIR
wasm-ld: error: Library/PackageCache/com.gilzoide.flex-ui/Plugins/build/webgl/libflex-ui.bc: undefined symbol: std::__2::__vector_base_common<true>::__throw_length_error() const
wasm-ld: error: Library/PackageCache/com.gilzoide.flex-ui/Plugins/build/webgl/libflex-ui.bc: undefined symbol: std::__2::__vector_base_common<true>::__throw_out_of_range() const
emcc: error: '"C:/Program Files/Unity/Hub/Editor/6000.0.11f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\wasm-ld.exe" @C:\Users\Rob\AppData\Local\Temp\emscripten_zp6fwbeo.rsp.utf-8' failed (returned 1)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Steps to reproduce:
- Open (new) project
- Install the upm package:
projectpath> openupm add com.gilzoide.flex-ui
- Add UI Image (UGUI) (including Canvas and Eventsystem) to scene.
- Add Component FlexLayout.cs to image
- Save scene
- Build scene in WebGL
- → error appears