Open arthurBricq opened 2 months ago
Some tips are here:
https://emscripten.org/docs/porting/Debugging.html
In particular, build with -g
to get proper symbol names. That would show function names in the stack trace, so you would see what is calling abort()
.
Hello everyone, and thanks in advance for the support.
I have been trying to compile small example of mine with OpenGL+GLFW+GLAD. The C++ code is accessible here: https://github.com/arthurBricq/RubicsCube/, alongside with the emscripten scripts that I use to compile and run (https://github.com/arthurBricq/RubicsCube/tree/main/build_emscripten). Of course the C++ executable works.
By following several tutorials, mostly the officials and this one I successfully managed to compile my code. The problem is that when I run the code (with http local server to open the generated
.html
file), I get an error :Exception thrown, see JavaScript console
. But the exception in the console seems very very obscure to me...It seems to be
Aborted(native code called abort())
but really I couldn't find more about the error.Here's my CMakeLists.txt
My compilation script is
And its succesfull output is the following
So, considering the warnings, I am assuming that there is a linking problem. But I really did not the solution on the already existing issues of this forum.
Thanks in advance
PS: I use Ubuntu