Hi. I’m having some issues compiling libs with emscripten for a html5 native extension.
I’m trying to compile libwebm and apparently the symbol names differ. Running strings
on the lib I compiled with emscripten yields _ZN9mkvparser10EBMLHeaderC2Ev
, while the game seems to link against _ZN9mkvparser10EBMLHeaderC1Ev
.
Is there a recommended way for compiling emstripten libraries for use with Defold? Any recommended emscripten version? flags?
Update: Apparently strings
botched up. I did a regular grep through the .a
file and apparently both symbols show up, which is correct. Now, question is, why isn’t my library linked with the extension? I placed an emscripten-compiled libwebm.a
in lib/js-web
. Is that correct?