Can anybody generate opencv.js?

前端 未结 4 1512
情书的邮戳
情书的邮戳 2021-02-14 11:53

I can\'t generate OpenCV.js using this instructions: https://docs.opencv.org/master/d4/da1/tutorial_js_setup.html

I have this error:

CMake Error:

4条回答
  •  耶瑟儿~
    2021-02-14 12:37

    Looks like Emscripten doesn't setup the enviroment variable correctly to the SDK

    For anyone trying to get this to build you need to specify the correct path to the Emscripten

    which is the path where Emscripten is installed found in emsdk/upstream/emscripten

    python ./platforms/js/build_js.py build_js --emscripten_dir=/home/username/Desktop/emsdk/upstream/emscripten
    

    This should then work

提交回复
热议问题