Error when running opencvExample using emscripten (Exception thrown, see JavaScript console)


I’m trying to compile and run the opencvExample that is included in the examples using emscripten.

It seems to compile fine (with emmake make) but when I try running (using emrun --browser chromium bin/opencvExample.html), I get a black screen with Exception thrown, see JavaScript console.
I’m using:

  • Linux (64 bit)
  • OF 0.9.3
  • Chromium Version 49.0.2623.87 (64-bit)

I found an emscripten version of opencvExample working fine here. Is there something obvious I’m missing when compiling (like a flag)?

Don’t know if there is anything helpful in the console output…

opencvExample.html:166 [ error ] ofShader: checkProgramLinkStatus(): OpenGL generated error Module.printErr @ opencvExample.html:166 opencvExample.js:24 Uncaught abort() at Error at jsStackTrace (http://localhost:6931/opencvExample.js:1:22445) at stackTrace (http://localhost:6931/opencvExample.js:1:22628) at Object.abort (http://localhost:6931/opencvExample.js:24:172077) at _abort (http://localhost:6931/opencvExample.js:1:289489) at vmd (http://localhost:6931/opencvExample.js:11:769615) at xAd (http://localhost:6931/opencvExample.js:17:9848) at Jnd (http://localhost:6931/opencvExample.js:11:797991) at Sg (http://localhost:6931/opencvExample.js:6:10729) at jx (http://localhost:6931/opencvExample.js:6:452885) at Y4 (http://localhost:6931/opencvExample.js:6:914635) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.