Here is how to fix it on Linux platform with emsdk 1.39.7
instead of what is said here: https://ogrecave.github.io/ogre/api/1.1 ... -ogre.html
you have to replace
Code: Select all
emcmake cmake .. -DCMAKE_BUILD_TYPE=Release"
Code: Select all
emcmake cmake .. -DCMAKE_BUILD_TYPE=Release -DEMSCRIPTEN=1 -DOGRE_BUILD_COMPONENT_CSHARP=0 -DOGRE_BUILD_PLUGIN_DOT_SCENE=0 -DOGRE_BUILD_SAMPLES=1 -DOGRE_BUILD_COMPONENT_JAVA=0 -DOGRE_BUILD_COMPONENT_OVERLAY_IMGUI=0
In each emscripten function of the constructor/destructor, replace the first NULL argument with "#canvas"
Then launch the build:
Code: Select all
emmake make