überlegung windsows

This commit is contained in:
chk
2026-04-26 20:38:41 +02:00
parent 929b738bcc
commit 096bce11da
2 changed files with 79 additions and 0 deletions

25
install_inside_docker.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -e
# Update und installiere Build-Tools (wie im Dockerfile)
apt-get update && apt-get install -y \
build-essential cmake git pkg-config \
libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev \
libtbb-dev libjpeg-dev libpng-dev libtiff-dev \
ffmpeg ca-certificates \
python3 python3-dev python3-numpy \
&& rm -rf /var/lib/apt/lists/*
# Klone und baue OpenCV (wie im Dockerfile)
git clone --branch 4.12.0 https://github.com/opencv/opencv.git /opencv
git clone --branch 4.12.0 https://github.com/opencv/opencv_contrib.git /opencv_contrib
mkdir /opencv/build && cd /opencv/build
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules \
-D BUILD_opencv_python3=ON \
-D BUILD_EXAMPLES=OFF ..
make -j$(nproc) && make install && ldconfig
# Cleanup (optional, um Space zu sparen)
rm -rf /opencv /opencv_contrib