build: update OpenCV build script for OpenCV 4.1.0
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
parent
c4bd88c03d
commit
f8d94dd8f8
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue