PoC repository of this issue

openMVG/openMVG#1615 (comment)

1.Rewrite script.sh file. Set LIB and BUILD_DIR to suitable for your enviroments.

WORK_DIR=~/mask_test
#LIB=<OpenMVG executable file directory>
#BUILD_DIR=<openMVS executable file directory>

2.execute script.sh

./script