I'm having issue with building this demo.
this is how make file looks like.
segmentation: ../src/segmentation.cpp ../src/export.cpp
mkdir -p $(OBJDIR)
emcc \
../src/segmentation.cpp \
../src/export.cpp \
-I $(OPENCV_INSTALL_DIR)/include \
$(OPENCV_INSTALL_DIR)/lib/libopencv_core.so \
$(OPENCV_INSTALL_DIR)/lib/libopencv_imgproc.so \
-s EXPORTED_FUNCTIONS="['_on_mouse', '_on_init', '_on_process']" \
-O3 \
--llvm-lto 1 \
--closure 1 \
-s PRECISE_F32=1 \
-s FORCE_ALIGNED_MEMORY=1 \
-s TOTAL_MEMORY=306777216 \
-o ./bin/segmentation.js
clean:
rm ./bin/*.js ./bin/*.mem
.......
i guess it does not recognize "emcc" command. is there any specific environment variable i have to set to get this command working.