Closed gucki closed 5 months ago
It's probably an upstream problem. Have you tried to build libjxl
in this setup?
You need to use the posix threads version of mingw
. Tested it works.
@inflation Thank you very much! I can confirm it works. Just in case it might help others, here's the Dockerfile I'm using for my builds:
FROM rust:1.77-bookworm
RUN apt update
RUN apt install -y mingw-w64 cmake
RUN update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
RUN update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
RUN update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
RUN update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
RUN rustup target add x86_64-pc-windows-gnu
The error is:
The build runs in a docker container, which basically looks like this: