Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV.js build error with CMake :Failed to fetch compiler version information

Hi, I've tried to build openCV.js with this tutorial : https://docs.opencv.org/ref/master/d4/da1/tutorial_js_setup.html

when using command python <opencv_src_dir>/platforms/js/build_js.py <build_dir>, I got a error message like below :

CMake Error at /Users/mac/Documents/dev/reactnative/emsdk/emscripten/1.38.13/cmake/Modules/Platform/Emscripten.cmake:111 (message):

Failed to fetch compiler version information with command "'/Users/mac/Documents/dev/react-native/emsdk/emscripten/1.38.13/emcc' -v"! Process returned with error code 1.

I checked whether emcc exists using sudo emcc- v image description

then it shows some info...

Could you give me some hints?


directory

  • opencv : /Users/mac/documents/dev/react-native/opencv/opencv

  • emsdk : /Users/mac/documents/dev/react-native/emsdk

cmake version : 3.12.3

build command : macui-MacBook-Air:opencv mac$ python ./platforms/js/build_js.py openCVlib --emscripten_dir ../../emsdk/emscripten/1.38.13