Merge pull request 'download OpenCV 3rd from shstk' (#8) from master into release
SHS Gitea/docker/pipeline/head Something is wrong with the build of this commit
SHS Gitea/docker/pipeline/head Something is wrong with the build of this commit
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
+13
-4
@@ -178,10 +178,19 @@ RUN wget -nv https://shstk.ru/files/qt-everywhere-opensource-src-${CUR_QT_VERSIO
|
|||||||
|
|
||||||
# OpenCV
|
# OpenCV
|
||||||
WORKDIR /soft
|
WORKDIR /soft
|
||||||
RUN git clone -b ${CUR_OPENCV_VERSION} --depth 1 https://github.com/opencv/opencv.git \
|
RUN <<EOF
|
||||||
&& mkdir -p ${INSTALL_DIR}/build/opencv && cd ${INSTALL_DIR}/build/opencv \
|
git clone -b ${CUR_OPENCV_VERSION} --depth 1 https://github.com/opencv/opencv.git
|
||||||
&& cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_LIBJPEG_TURBO_SIMD=0 -DBUILD_PERF_TESTS=0 -DBUILD_TESTS=0 -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN} /soft/opencv \
|
mkdir -p ${INSTALL_DIR}/build/opencv && cd ${INSTALL_DIR}/build/opencv
|
||||||
&& make install -j${JOBS_COUNT} && rm -rf ./* && rm -rf /soft/opencv
|
cmake -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
|
||||||
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DENABLE_LIBJPEG_TURBO_SIMD=0 -DBUILD_PERF_TESTS=0 -DBUILD_TESTS=0 \
|
||||||
|
-DOPENCV_DOWNLOAD_MIRROR_ID="custom" -DOPENCV_DOWNLOAD_MIRROR_URL="shstk.ru/files" \
|
||||||
|
-DOPENCV_ADE_URL="https://shstk.ru/files/opencv/ade/archive/" \
|
||||||
|
/soft/opencv
|
||||||
|
make install -j${JOBS_COUNT}
|
||||||
|
rm -rf ./*
|
||||||
|
rm -rf /soft/opencv
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
# HDF5
|
# HDF5
|
||||||
|
|||||||
Reference in New Issue
Block a user