rive-app / rive-unity

MIT License
104 stars 11 forks source link

Build for WebGL fails #57

Closed tarragonfly closed 4 months ago

tarragonfly commented 4 months ago
Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
emcc: warning: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/iOS/rive.a: archive is missing an index; Use emar when creating libraries to ensure an index is created [-Wemcc]
emcc: warning: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/iOS/rive.a: adding index [-Wemcc]
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueAuto
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueUndefined
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueAuto
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueAuto
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueAuto
wasm-ld: error: Library/PackageCache/app.rive.rive-unity@d2ff4ec8e3/Runtime/Libraries/WebGL/librive_wasm.a(layout_component.o): undefined symbol: YGValueAuto
emcc: error: 'C:/GameDev/2022.3.35f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\wasm-ld.exe @C:\Users\gdev\AppData\Local\Temp\emscripten_x7oo6cg_.rsp.utf-8' failed (returned 1)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Unity 2022.3.35f1 Rive 0.1.180 visor-fui example scene

damzobridge commented 4 months ago

Hi, this should be fixed by upgrading the Rive package version to v0.1.188 upwards.