mercredi 20 novembre 2019

When I'm trying convert OpenCV4.1 program to wasm with the following command an error occured

When I'm trying to convert OpenCV4.1 program to wasm with the following command an error occured:

sudo /home/xxx/Documents/emsdk/upstream/emscripten/em++ -std=c++11 -s WASM=1 -I ../../../../usr/local/include/opencv4/ test.cpp -o test.html

The following error is coming:

error: undefined symbol: _ZN2cv11namedWindowERKNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi warning: To disable errors for undefined symbols use-s ERROR_ON_UNDEFINED_SYMBOLS=0 error: undefined symbol: _ZN2cv13destroyWindowERKNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE error: undefined symbol: _ZN2cv3Mat10deallocateEv error: undefined symbol: _ZN2cv6imreadERKNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi error: undefined symbol: _ZN2cv6imshowERKNSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERKNS_11_InputArrayE error: undefined symbol: _ZN2cv7waitKeyEi error: undefined symbol: _ZN2cv8fastFreeEPv Error: Aborting compilation due to previous errors shared:ERROR: '/home/kaushal/Documents/emsdk/node/12.9.1_64bit/bin/node /home/kaushal/Documents/emsdk/upstream/emscripten/src/compiler.js /tmp/tmpxI4v0X.txt' failed (1)

Please help me if anyone has any ideas.

Aucun commentaire:

Enregistrer un commentaire