Skip to content

Commit c8159c4

Browse files
committed
WIP windows
1 parent 946e0aa commit c8159c4

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

build-windows/Dockerfile

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ RUN apt-get update
2121
RUN apt-get install -q -y --no-install-recommends \
2222
g++ libbz2-dev wget build-essential cmake ninja-build \
2323
mingw-w64 mingw-w64-tools gcc-mingw-w64 g++-mingw-w64 \
24+
binutils-mingw-w64-i686 \
2425
autoconf automake libtool curl make g++ unzip \
2526
libpcre2-32-0 libpcre2-dev git rpm zip ca-certificates \
2627
libreadline-dev libffi-dev build-essential \
2728
libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev \
2829
python3-numpy libtbbmalloc2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev \
29-
usbutils swig libssl-dev libudev-dev
30+
usbutils swig libssl-dev libudev-dev python3 python3-venv python3-pip
3031
RUN rm -rf /var/lib/apt/lists/*
3132

3233

@@ -202,4 +203,48 @@ RUN rm -Rf protobuf-${protobuf_version} \
202203
&& rm protobuf-cpp-${protobuf_version}.tar.gz
203204

204205

205-
#TODO merger les workflow github
206+
#############################################################
207+
## Python
208+
#############################################################
209+
# Version must match python version installed on host
210+
ARG python3_version=3.13.5
211+
WORKDIR ${WORK_DIR}
212+
RUN wget -q https://www.python.org/ftp/python/${python3_version}/python-${python3_version}-embed-win32.zip
213+
RUN unzip -q python-${python3_version}-embed-win32.zip -d pywin32
214+
WORKDIR ${WORK_DIR}/pywin32
215+
RUN gendef python313.dll
216+
RUN i686-w64-mingw32-dlltool -d python313.def -D python313.dll -l libpython313.a
217+
218+
# RUN wget --no-check-certificate --no-verbose https://www.python.org/ftp/python/${python3_version}/Python-${python3_version}.tar.xz \
219+
# && tar xf Python-${python3_version}.tar.xz
220+
# WORKDIR ${WORK_DIR}/Python-${python3_version}
221+
# RUN CC=i686-w64-mingw32-gcc \
222+
# CXX=i686-w64-mingw32-g++ \
223+
# AR=i686-w64-mingw32-ar \
224+
# RANLIB=i686-w64-mingw32-ranlib \
225+
# ./configure \
226+
# --host=i686-w64-mingw32 \
227+
# --target=i686-w64-mingw32 \
228+
# --build=x86_64-linux-gnu \
229+
# --disable-ipv6 \
230+
# ac_cv_file__dev_ptmx=no \
231+
# ac_cv_file__dev_ptc=no \
232+
# ac_cv_have_long_long_format=yes \
233+
# --enable-shared \
234+
# --without-pymalloc \
235+
# --with-openssl=${YADOMS_DEPS}/openssl \
236+
# --with-build-python=/usr/bin/python${python3_version%.*} \
237+
# --prefix=${YADOMS_DEPS}/python-lib
238+
# RUN make HOSTPYTHON=/usr/local/bin/python3 \
239+
# BLDSHARED="i686-w64-mingw32-gcc -shared" \
240+
# CROSS_COMPILE=i686-w64-mingw32- \
241+
# CROSS_COMPILE_TARGET=yes \
242+
# -j$(nproc)
243+
# RUN make install
244+
# WORKDIR ${WORK_DIR}
245+
# RUN rm -Rf Python-${python3_version} \
246+
# && rm Python-${python3_version}.tar.xz
247+
248+
#TODO WIP...
249+
250+
#TODO merger les workflow github (utiliser des matrices ?)

0 commit comments

Comments
 (0)