Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41098 from elpaso/mxe-updates-for-3_18-3_16-backport
MXE python bump backport
- Loading branch information
Showing
2 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
FROM buildpack-deps:stretch | ||
# Build deps for QGIS Windows binaries using MXE cross compile environment | ||
# Author: Alessandro Pasotti | ||
|
||
FROM ubuntu:focal | ||
|
||
RUN chown root:root /tmp && chmod ugo+rwXt /tmp | ||
RUN apt-get update | ||
RUN apt-get install -y --no-install-recommends autopoint bison flex gperf libtool ruby scons unzip p7zip-full intltool libtool libtool-bin nsis lzip zip | ||
|
||
WORKDIR /mxe | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
dirmngr \ | ||
software-properties-common \ | ||
lsb-release \ | ||
gpg-agent \ | ||
python3-distutils | ||
|
||
RUN git clone https://github.com/mxe/mxe . || git pull origin master | ||
RUN make MXE_TARGETS=x86_64-w64-mingw32.shared.posix -j 16 \ | ||
qca \ | ||
qtlocation \ | ||
qscintilla2 \ | ||
qwt \ | ||
gdal \ | ||
qtkeychain \ | ||
qtserialport \ | ||
qtwebkit \ | ||
qtwinextras \ | ||
libzip \ | ||
gsl \ | ||
libspatialindex \ | ||
exiv2 \ | ||
protobuf | ||
RUN apt-key adv \ | ||
--keyserver keyserver.ubuntu.com \ | ||
--recv-keys 86B72ED9 && \ | ||
add-apt-repository \ | ||
"deb [arch=amd64] https://pkg.mxe.cc/repos/apt `lsb_release -sc` main" && \ | ||
apt-get update | ||
|
||
RUN chmod -R a+rw /mxe/usr/x86_64-w64-mingw32.shared.posix | ||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \ | ||
mxe-x86-64-w64-mingw32.shared-gdal \ | ||
mxe-x86-64-w64-mingw32.shared-qca \ | ||
mxe-x86-64-w64-mingw32.shared-qtlocation \ | ||
mxe-x86-64-w64-mingw32.shared-qscintilla2 \ | ||
mxe-x86-64-w64-mingw32.shared-qwt \ | ||
mxe-x86-64-w64-mingw32.shared-qtkeychain \ | ||
mxe-x86-64-w64-mingw32.shared-qtserialport \ | ||
mxe-x86-64-w64-mingw32.shared-qtwebkit \ | ||
mxe-x86-64-w64-mingw32.shared-qtwinextras \ | ||
mxe-x86-64-w64-mingw32.shared-exiv2 \ | ||
mxe-x86-64-w64-mingw32.shared-protobuf \ | ||
mxe-x86-64-w64-mingw32.shared-zlib \ | ||
mxe-x86-64-w64-mingw32.shared-libzip \ | ||
mxe-x86-64-w64-mingw32.shared-libspatialindex \ | ||
mxe-x86-64-w64-mingw32.shared-gsl \ | ||
mxe-x86-64-w64-mingw32.shared-zstd | ||
|
||
# For QT SQL driver installation as an unprivileged user | ||
RUN chmod -R 777 /usr/lib/mxe/usr/x86_64-w64-mingw32.shared/qt5/plugins/ |