Open emirdeliz opened 1 year ago
Did you label functions as extern C
?
I never compiled CPP, but I saw many notes about adding extern C
to prevent name mangling.
the best thing to is probably to remove -sWARN_ON_UNDEFINED_SYMBOLS=0
.. then those missing symbols will become build errors and you can work on figuring out how to include them in your project.
It looks like you need to actually include the opencv library code somehow, most likely as library file at link time.
I never compiled CPP, but I saw many notes about adding
extern C
to prevent name mangling.
I need to compare two images using opencv. After comparing, I return a complex object to js. The problem is that extern C only returns C types. So it's not possible to use an extern in this case.
Please include the following in your bug report:
Version of emscripten/emsdk:
About my scenario. I try to use opencv(cpp) with webassembly. So when the compile is done I get the errors on output js like below:
I'm running using vs code container. The image is emirdeliz/cpp-opencv-node-emscripten and platform linux/amd64. My project is: https://github.com/emirdeliz/object-detector-image-webassembly
So what's the problem?