Skip to content

Commit

Permalink
build: update OpenCV build script for OpenCV 4.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Ron Evans <[email protected]>
  • Loading branch information
deadprogram committed May 22, 2019
1 parent c4bd88c commit f8d94dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion travis_build_opencv.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit f8d94dd

Please sign in to comment.