Warning, file /packaging/appimage-packaging/kdenlive/scripts/opencv.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #!/bin/bash 0002 set -x 0003 #opencv_contrib 0004 cd /app/src/ 0005 if ( test -d /app/src/opencv_contrib ) 0006 then 0007 echo "opencv_contrib already cloned" 0008 cd opencv_contrib 0009 git reset --hard 0010 # git pull --rebase 0011 git checkout 3.2.0 0012 cd .. 0013 else 0014 git clone https://github.com/opencv/opencv_contrib.git 0015 fi 0016 0017 cd /app/src/ 0018 git clone https://github.com/opencv/opencv.git 0019 cd opencv 0020 git checkout 3.2.0 0021 0022 #opencv 0023 0024 # create build dir 0025 SRC=/app/src/opencv 0026 PREFIX=/usr 0027 mkdir -p $SRC/build 0028 0029 # go there 0030 cd $SRC/build 0031 0032 if cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX; then 0033 0034 # make 0035 make -j8 0036 0037 # install 0038 sudo make install 0039 0040 else 0041 error_exit "$LINENO: An error has occurred.. Aborting." 0042 fi 0043 0044 function error_exit 0045 { 0046 echo "$1" 1>&2 0047 exit 1 0048 }