mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-15 07:21:33 +01:00
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
# Libraries scripts
|
|
|
|
# Boost lib
|
|
RUN cd /tmp/ && git clone https://github.com/boostorg/boost.git && cd boost && git checkout boost-1.76.0 && git submodule update --init && \
|
|
cd /tmp/boost/ && ./bootstrap.sh --without-libraries=mpi,python,regex,iostreams && \
|
|
cd /tmp/boost/ && echo "using gcc : 8.4 : ${CXX} ; " >> tools/build/src/user-config.jam && \
|
|
cd /tmp/boost/ && ./b2 install --toolset=gcc-8.4 --prefix=/usr/local/boost threading=multi link=static && \
|
|
rm -rf /tmp/boost/
|
|
|
|
# OpenCV lib
|
|
RUN cd /tmp/ && git clone https://github.com/opencv/opencv.git && git clone https://github.com/opencv/opencv_contrib.git && \
|
|
cd /tmp/ && git -C opencv checkout 4.5.2 && git -C opencv_contrib checkout 4.5.2 && \
|
|
cd /tmp/opencv/ && mkdir -p build && cmake -Bbuild -H. \
|
|
-GNinja \
|
|
-D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules \
|
|
-D CMAKE_BUILD_TYPE=RELEASE \
|
|
-D OPENCV_ENABLE_NONFREE=ON \
|
|
-D WITH_V4L=OFF \
|
|
-D WITH_QT=OFF \
|
|
-D WITH_OPENGL=OFF \
|
|
-D WITH_FFMPEG=OFF \
|
|
-D BUILD_EXAMPLES=ON \
|
|
-D BUILD_DOCS=ON \
|
|
-D BUILD_PERF_TESTS=OFF \
|
|
-D BUILD_TESTS=ON \
|
|
-D BUILD_SHARED_LIBS=OFF \
|
|
-D BUILD_NEW_PYTHON_SUPPORT=OFF \
|
|
-D BUILD_opencv_python3=OFF \
|
|
-D HAVE_opencv_python3=OFF \
|
|
-D PYTHON_DEFAULT_EXECUTABLE="" && \
|
|
cd /tmp/opencv && ninja -Cbuild && \
|
|
cd /tmp/opencv/build && \
|
|
ninja install && \
|
|
rm -rf /tmp/opencv/ && rm -rf /tmp/opencv_contrib
|
|
|
|
|
|
|