OpenCV has a problem with a patch being applied when qt5 is installed. This should fix it: # Only needed if qt5 has been configured if [ -d /usr/include/qt5 ]; then cd $PRGNAM2-$VERSION patch -p1 < $CWD/patch_filter_scharr.diff cd - fi Ben