在Windows中构建opencv.js时出错

时间:2018-06-22 07:28:55

标签: javascript python opencv

我确实更改了OSError: [WinError 193] %1 is not a valid Win32 application opencv.js中提供的语句,但是现在给出了另一个错误。它显示了

PS C:\Users\Chintu\Documents\OpenCv\opencv_back> python ./platforms/js/build_js.py build_js

回溯(最近通话最近):

中的文件“ C:\ Users \ Chintu \ Documents \ OpenCv \ emsdk \ emscripten \ 1.38.6 \ tools \ cache.py”,第137行

from . import shared

ImportError: cannot import name 'shared'

During handling of the above exception, another exception occurred: 追溯(最近一次通话):

from . import jsrun, cache, tempfiles, colored_logger

文件“ C:\ Users \ Chintu \ Documents \ OpenCv \ emsdk \ emscripten \ 1.38.6 \ tools \ cache.py”,第140行,在    import shared ImportError: No module named 'shared'

Traceback (most recent call last):

File "./platforms/js/build_js.py", line 215, in <module>

builder = Builder(args)

File "./platforms/js/build_js.py", line 84, in __init__

self.emcc_version = determine_emcc_version(self.emscripten_dir)

File "./platforms/js/build_js.py", line 62, in determine_emcc_version

ret = subprocess.check_output([os.path.join(emscripten_dir, "emcc.bat"), "--version"])

File "C:\Python34\lib\subprocess.py", line 620, in check_output

raise CalledProcessError(retcode, process.args, output=output) subprocess.CalledProcessError: Command '['C:\\Users\\Chintu\\Documents\\OpenCv\\emsdk\\emscripten\\1.38.6\\emcc.bat', '--version']' returned non-zero exit status 1

你能帮帮我吗!

0 个答案:

没有答案