make时遇到/opencv/build/modules/js/bindings.cpp:78:29: fatal error: emscripten/bind.h: 没有那个文件或目录
[ 96%] Building CXX object modules/js/CMakeFiles/opencv_js.dir/bindings.cpp.o
cc1plus: warning: command line option ‘-Wno-missing-prototypes’ is valid for C/ObjC but not for C++
/home/ning/软件/opencv/build/modules/js/bindings.cpp:78:29: fatal error: emscripten/bind.h: 没有那个文件或目录
compilation terminated.
modules/js/CMakeFiles/opencv_js.dir/build.make:123: recipe for target 'modules/js/CMakeFiles/opencv_js.dir/bindings.cpp.o' failed
make[2]: *** [modules/js/CMakeFiles/opencv_js.dir/bindings.cpp.o] Error 1
CMakeFiles/Makefile2:4704: recipe for target 'modules/js/CMakeFiles/opencv_js.dir/all' failed
make[1]: *** [modules/js/CMakeFiles/opencv_js.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
解决方法
在cmake-gui中,在search搜索框中输入js,取消后面的对勾,重新configure和generate后,再make