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

asked 2018-10-11 01:52:48 -0500

swon gravatar image

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

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

edit retag flag offensive close merge delete

Comments

please be so nice, and replace the screenshot with a TEXT version, thank you !

(it's useless here, can't be quoted from, indexed for search, etc.)

berak gravatar imageberak ( 2018-10-11 02:04:05 -0500 )edit

we also need the opencv version used

berak gravatar imageberak ( 2018-10-11 02:08:41 -0500 )edit