Cannot build WASM. Noesis 3.1.7 & Unity 2021.3.23f1
Posted: 27 Apr 2023, 03:33
Ok, so I got Noesis 3.1.7 to build with Unity 2022, but in WebGL the text boxes don't work. So I'm trying to go back to Unity 2021.
Now I'm getting this error when trying to do a WebGL build,
What version of Unity do I need to be using to get Noesis 3.1.7 and WebGL to work?
ilding Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_SetCallbacks
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(RenderBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(RenderBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceD3D12_Create
>>> defined as (i32, i32, i32, i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceAGC_SetCommandBuffer
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceGNM_SetContext
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
error: undefined symbol: sendfile (referenced by top-level compiled C/C++ code)
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _sendfile may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc2: error: '"C:/Program Files/Unity/Hub/Editor/2021.3.23f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node.exe" "C:\Program Files\Unity\Hub\Editor\2021.3.23f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\src\compiler.js" C:\Users\james\AppData\Local\Temp\tmpj22ialdz.txt' failed (1)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Now I'm getting this error when trying to do a WebGL build,
What version of Unity do I need to be using to get Noesis 3.1.7 and WebGL to work?
ilding Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output:
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_SetCallbacks
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(RenderBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDevice_CloneRenderTarget
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(RenderBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceD3D12_Create
>>> defined as (i32, i32, i32, i32, i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceAGC_SetCommandBuffer
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
wasm-ld: warning: function signature mismatch: Noesis_RenderDeviceGNM_SetContext
>>> defined as (i32, i32) -> i32 in C:\\Users\\james\\AppData\\Local\\Temp\\tmpaett4ye6GameAssembly.a(byft_esisGUI__4.o)
>>> defined as (i32, i32) -> void in C:\\Users\\james\\AppData\\Local\\Temp\\tmp955mjnndNoesis.a(UnityBindings.o)
error: undefined symbol: sendfile (referenced by top-level compiled C/C++ code)
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _sendfile may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc2: error: '"C:/Program Files/Unity/Hub/Editor/2021.3.23f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/node/node.exe" "C:\Program Files\Unity\Hub\Editor\2021.3.23f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\src\compiler.js" C:\Users\james\AppData\Local\Temp\tmpj22ialdz.txt' failed (1)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)