From f8d94dd8f8b8a19084c7ef1549c37d17318803c2 Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Tue, 21 May 2019 15:57:19 +0200 Subject: [PATCH] build: update OpenCV build script for OpenCV 4.1.0 Signed-off-by: Ron Evans --- travis_build_opencv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/travis_build_opencv.sh b/travis_build_opencv.sh index ba4db7501..9a383bcff 100755 --- a/travis_build_opencv.sh +++ b/travis_build_opencv.sh @@ -1,7 +1,7 @@ #!/bin/bash set -eux -o pipefail -OPENCV_VERSION=${OPENCV_VERSION:-3.4.2} +OPENCV_VERSION=${OPENCV_VERSION:-4.1.0} #GRAPHICAL=ON GRAPHICAL=${GRAPHICAL:-OFF} @@ -49,7 +49,9 @@ cmake -D WITH_IPP=${GRAPHICAL} \ -D BUILD_opencv_python=OFF \ -D BUILD_opencv_python2=OFF \ -D BUILD_opencv_python3=OFF \ + -D OPENCV_GENERATE_PKGCONFIG=ON \ -D CMAKE_INSTALL_PREFIX=$HOME/usr \ + -D OPENCV_ENABLE_NONFREE=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${OPENCV_VERSION}/modules .. make -j8 make install && touch $HOME/usr/installed-${OPENCV_VERSION}