0
votes

I have C++ code that manipulates images with OpenCV and I'd like to compile it with emscripten. But emscripten doesn't find OpenCV if i type:

em++ test.c -s WASM=1 -O3 -o test.js -lopencv_highgu

The warning i get:

WARNING:root:emcc: cannot find library "opencv_highgui"

I guess emscripten doesn't use my normal include path. So the question is how can i compile my C++/OpenCV program to WebAssembly

1
Your development environment is malconfigured. What are you asking? - Öö Tiib

1 Answers

1
votes

You'd first have to compile the entire OpenCV library to WebAssembly and then include it in your project. Here is some additional information: https://hacks.mozilla.org/2017/09/bootcamps-webassembly-and-computer-vision/