- Home /
How to implement Emscripten linking support for WebGl build?
In my web app I have upload and download methods that pull from an MS Azure server storage blob. Downloading information works fine since I'm just using UnityWebRequests. Unfortunately, to upload to Azure storage you must use Azure's API for storage manipulation so I've imported the proper libs for that. When it comes to uploading data to the server while running the web app in the browser I run into the error found at the end of the post.
I've looked for answers to find a work-around but haven't found any solutions that work and many seem to work (and I cannot remove any async functions/threading tasks).
How would I implement Emscripten's linking support into my project? Step-by-step instructions would be nice!
Invoking error handler due to
Uncaught abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at Error
at jsStackTrace (SMTC CGC Beta2.wasm.framework.unityweb:8:22295)
at stackTrace [Object.stackTrace] (SMTC CGC Beta2.wasm.framework.unityweb:8:22466)
at Object.onAbort (https://smtc-cgc.azurewebsites.net/Build/UnityLoader.js:4:11047)
at abort (SMTC CGC Beta2.wasm.framework.unityweb:8:493247)
at _dlopen (SMTC CGC Beta2.wasm.framework.unityweb:8:177073)
at wasm-function[64565]:0x10b5127
at wasm-function[65841]:0x10ee465
at wasm-function[36719]:0xa6dbf6
at wasm-function[36718]:0xa6db70
at wasm-function[67107]:0x112ab33
at dynCall_iii [Object.dynCall_iii] (SMTC CGC Beta2.wasm.framework.unityweb:8:466052)
at invoke_iii (SMTC CGC Beta2.wasm.framework.unityweb:8:340263)
at wasm-function[36717]:0xa6d923
at wasm-function[67138]:0x112afbf
at dynCall_vi [Object.dynCall_vi] (SMTC CGC Beta2.wasm.framework.unityweb:8:479893)
at invoke_vi (SMTC CGC Beta2.wasm.framework.unityweb:8:366807)
at wasm-function[36715]:0xa6d796
at wasm-function[36714]:0xa6d6d5
at wasm-function[48545]:0xd2533e
at wasm-function[67101]:0x112aaa4
at dynCall_ii [Object.dynCall_ii] (SMTC CGC Beta2.wasm.framework.unityweb:8:464651)
at invoke_ii (SMTC CGC Beta2.wasm.framework.unityweb:8:337710)
at wasm-function[48547]:0xd25481
at wasm-function[67101]:0x112aaa4
at dynCall_ii [Object.dynCall_ii] (SMTC CGC Beta2.wasm.framework.unityweb:8:464651)
at invoke_ii (SMTC CGC Beta2.wasm.framework.unityweb:8:337710)
at wasm-function[36755]:0xa6f261
at wasm-function[45504]:0xc731b5
at wasm-function[35699]:0xa3fb90
at wasm-function[19875]:0x6818eb
at wasm-function[67111]:0x112ab9b
at dynCall_iiii [Object.dynCall_iiii] (SMTC CGC Beta2.wasm.framework.unityweb:8:467117)
at invoke_iiii (SMTC CGC Beta2.wasm.framework.unityweb:8:342215)
at wasm-function[35714]:0xa40d3d
at wasm-function[67142]:0x112b01a
at dynCall_vii [Object.dynCall_vii] (SMTC CGC Beta2.wasm.framework.unityweb:8:482002)
at invoke_vii (SMTC CGC Beta2.wasm.framework.unityweb:8:370532)
at wasm-function[27372]:0x8161d9
at wasm-function[35710]:0xa409fa
at wasm-function[24026]:0x741f07
at wasm-function[24031]:0x742581
at wasm-function[24023]:0x741cd1
at wasm-function[24021]:0x741b99
at wasm-function[24038]:0x742a23
at wasm-function[35686]:0xa3edc6
at wasm-function[35685]:0xa3ed88
at wasm-function[67113]:0x112abd1
at dynCall_iiiii [Object.dynCall_iiiii] (SMTC CGC Beta2.wasm.framework.unityweb:8:467849)
at invoke_iiiii (SMTC CGC Beta2.wasm.framework.unityweb:8:343574)
at wasm-function[35687]:0xa3f08a
1bc730cc-0b8a-466b-a427-63f8e4de01cb:8 Uncaught abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at Error
at jsStackTrace (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:22295)
at Object.stackTrace (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:22466)
at Object.onAbort (https://smtc-cgc.azurewebsites.net/Build/UnityLoader.js:4:11047)
at abort (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:493247)
at _dlopen (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:177073)
at wasm-function[64565]:0x10b5127
at wasm-function[65841]:0x10ee465
at wasm-function[36719]:0xa6dbf6
at wasm-function[36718]:0xa6db70
at wasm-function[67107]:0x112ab33
at Object.dynCall_iii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:466052)
at invoke_iii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:340263)
at wasm-function[36717]:0xa6d923
at wasm-function[67138]:0x112afbf
at Object.dynCall_vi (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:479893)
at invoke_vi (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:366807)
at wasm-function[36715]:0xa6d796
at wasm-function[36714]:0xa6d6d5
at wasm-function[48545]:0xd2533e
at wasm-function[67101]:0x112aaa4
at Object.dynCall_ii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:464651)
at invoke_ii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:337710)
at wasm-function[48547]:0xd25481
at wasm-function[67101]:0x112aaa4
at Object.dynCall_ii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:464651)
at invoke_ii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:337710)
at wasm-function[36755]:0xa6f261
at wasm-function[45504]:0xc731b5
at wasm-function[35699]:0xa3fb90
at wasm-function[19875]:0x6818eb
at wasm-function[67111]:0x112ab9b
at Object.dynCall_iiii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:467117)
at invoke_iiii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:342215)
at wasm-function[35714]:0xa40d3d
at wasm-function[67142]:0x112b01a
at Object.dynCall_vii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:482002)
at invoke_vii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:370532)
at wasm-function[27372]:0x8161d9
at wasm-function[35710]:0xa409fa
at wasm-function[24026]:0x741f07
at wasm-function[24031]:0x742581
at wasm-function[24023]:0x741cd1
at wasm-function[24021]:0x741b99
at wasm-function[24038]:0x742a23
at wasm-function[35686]:0xa3edc6
at wasm-function[35685]:0xa3ed88
at wasm-function[67113]:0x112abd1
at Object.dynCall_iiiii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:467849)
at invoke_iiiii (blob:https://smtc-cgc.azurewebsites.net/1bc730cc-0b8a-466b-a427-63f8e4de01cb:8:343574)
at wasm-function[35687]:0xa3f08a
Your answer
Follow this Question
Related Questions
Compile errors using WebGl plattform 2 Answers
Cannot load native dll in WebGL build 0 Answers
Realtime multiplayer over web server 0 Answers
Custom dll does not work with build -> works with editor - Unity 2019.4.38f 0 Answers
WebGL error after hosting 1 Answer