MinGW-w64: cross compile multilib toolchain docker image based on centos7 targetting win64 and win32
-
cgdoc/mingw-w64-multilib:posix-v1.4
- Source
- Base Image
- Centos 7
- Cross Compilation Toolchain
MinGW-w64
: 10.0.0GCC
: 10.3.0Binutils
: 2.37- Thread model:
posix
- Languages: C, C++
- Thread support: C++ 11 Thread, POSIX Threads (winpthreads)
- Native Compilation Toolchain
GCC
: 10.2.1Binutils
: 2.35- Thread model:
posix
- Languages: C,C++,FORTRAN
- Build System
make
: GNU Make 4.2.1cmake
: 3.23.2meson
: 0.61.5rake
: Ruby Make 13.0.6 (Ruby 2.6)
- Repos
- CentOS 7 Base
- CentOS 7 SCL
- EPEL 7
-
cgdoc/mingw-w64-multilib:win32-v1.4
- Source
- Base Image
- Centos 7
- Cross Compilation Toolchain
MinGW-w64
: 10.0.0GCC
: 10.3.0Binutils
: 2.37- Thread model:
Win32
- Languages: C, C++
- Thread support: C++ 11 Thread (mingw-std-threads), POSIX Threads (pthreads4w, aka pthreads-w32)
- Native Compilation Toolchain
GCC
: 10.2.1Binutils
: 2.35- Thread model:
posix
- Languages: C,C++,FORTRAN
- Build System
make
: GNU Make 4.2.1cmake
: 3.23.2meson
: 0.61.5rake
: Ruby Make 13.0.6 (Ruby 2.6)
- Repos
- CentOS 7 Base
- CentOS 7 SCL
- EPEL 7
- For cross-compiling win32 target: see for example
- cross-compiling win64 target: see for example
- working with WSL:
- Create a temporary container from an image, say, cgdoc/mingw-w64-multilib:win32-v1.4
docker create --name centos7-extended cgdoc/mingw-w64-multilib:win32-v1.4
- Export the container as a tar archive
docker export centos7-extended > centos7-extended.tar
- Import the distro tar file into WSL
wsl --import centos7-extended . centos7-extended.tar
- (optional) Remove the container and the tar file
docker rm centos7-extended
del /f centos7-extended.tar
- Run the imported CentOS Linux distro
wsl -d centos7-extended