Could not generate .wasm file when building opencv.js

asked 2018-12-03 19:13:20 -0500

ars0 gravatar image

updated 2018-12-04 18:16:34 -0500

I was trying to build the opencv.js with the wasm output. I just followed the steps on the opencv.js tutorial:
cd opencv
python ./platforms/js/ build_wasm --build_wasm

The build was completed with no error (some warnings), but I could not find the .wasm output in the bin folder, there were only two files opencv.js and opencv_js.js. I want to use the feature2d module so I tried the latest versions 4.0.0 and 3.4.4, both of them did not output the wasm file. Attached is the output in the terminal console for your reference: link text

Then I also tried 3.4.3 version, and this time I was able to get the opencv_js.wasm file together with opencv.js and opencv_js.js. But it seems that 3.4.3 version does not include features2d in the js binding.

Environment - OpenCV => 4.0.0 / 3.4.4 - Operating System / Platform => Ubuntu 16.04 - Compiler => Emscripten 1.38.20

edit retag flag offensive close merge delete


can you put your output HERE (even if it's long !), not on an external dropbox (where it will expire) ?

berak gravatar imageberak ( 2018-12-04 01:27:48 -0500 )edit

The whole output is around 10k lines.. so I think maybe it's better to put in a file. I put it on google drive so it won't expire.

ars0 gravatar imagears0 ( 2018-12-04 18:20:14 -0500 )edit

Exact same problem here, opencv.js and opencv_js.js are generated, but not the wasm file

davidstrahm gravatar imagedavidstrahm ( 2018-12-13 14:10:02 -0500 )edit