Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cannot get Emscripten path, please specify it either by EMSCRIPTEN environment variable or --emscripten_dir option.

Hello guys.I am totally new for opencv.js.I have some problems on building opencv.js I am using Windows 10.I follow below steps for setup opencv.js.The problem look like "EMPSCRÄ°PTEN cannot set the path properly and part 5 fail to execute".How can i solve this problem?

https://docs.opencv.org/3.3.1/d4/da1/tutorial_js_setup.html

1-)First I used below link to download the Empscripten https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#sdk-installation-instructions

2-)And execute this line son command propmpt(in empscripten folder)

emsdk
emsdk_env.bat

After this Execution , Empscripten set the path

EMSDK = C:/Users/q/Desktop/web/opencv.js/emsdk-portable-64bit
EM_CONFIG = C:\Users\q\.emscripten

3-)Download phyton 3

4-)Clone opencv

git clone https://github.com/opencv/opencv.git

5-)Execute this code to build opencv.js but i get following error

python C:\Users\q\opencv\platforms\js\build_js.py C:\OpencvJS

C:\Users\q>python C:\Users\q\opencv\platforms\js\build_js.py C:\OpencvJS
Args: Namespace(build_dir='C:\\OpencvJS', build_doc=False, build_test=False, build_wasm=False, clean_build_dir=False, config_only=False, emscripten_dir=None, enable_exception=False, opencv_dir='C:\\Users\\q\\opencv', skip_config=False)
Cannot get Emscripten path, please specify it either by EMSCRIPTEN environment variable or --emscripten_dir option.