try to patch cingg like this:
diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
index 7be18228..49056989 100644
--- a/cinelerra-5.1/opencv_build
+++ b/cinelerra-5.1/opencv_build
@@ -105,6 +105,7 @@ $(opencv)/build: $(opencv).src
-DWITH_IPP=OFF \
-DWITH_LAPACK=OFF \
-DWITH_GPHOTO2=OFF \
+ -DWITH_JASPER=OFF \
-DBUILD_SHARED_LIBS=ON \
-DINSTALL_C_EXAMPLES=ON \
-DINSTALL_PYTHON_EXAMPLES=ON \
$
and see if opencv build proceed to actually 100% mark w/o errors.