This commit is contained in:
Faraz Fallahi
2022-04-24 16:34:14 -04:00
committed by GitHub
parent 1fd6fbd55d
commit d0c1131441
6 changed files with 19 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
FROM ubuntu:20.04
ENTRYPOINT ["/bin/bash"]
#RUN echo 'Acquire::http { Proxy "http://192.168.1.2:3142"; };' >> /etc/apt/apt.conf.d/00proxy
RUN echo 'Acquire::http { Proxy "http://192.168.1.2:3142"; };' >> /etc/apt/apt.conf.d/00proxy
RUN \
export DEBIAN_FRONTEND=noninteractive && \
@@ -12,7 +12,9 @@ RUN \
g++ g++-multilib gettext git gperf intltool iputils-ping libc6-dev-i386 \
libffi-dev libgdk-pixbuf2.0-dev libltdl-dev libssl-dev libtool-bin \
libxml-parser-perl lzip make nano openssl p7zip-full patch perl \
pkg-config python python-mako ruby scons sed unzip wget xz-utils && \
pkg-config ruby scons sed unzip wget xz-utils libgl-dev \
python3 python3-mako python3-pkg-resources python3-setuptools python-is-python3 \
&& \
apt -y autoremove && \
apt -y autoclean && \
apt -y clean && \

View File

@@ -2,8 +2,5 @@ FROM fffaraz/qt:mxe
RUN \
cd /opt/mxe && \
NPROC=$(($(nproc)+4)) && \
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='i686-w64-mingw32.shared' qt6-qtbase && \
ln -s /opt/mxe/usr/bin/i686-w64-mingw32.shared-qmake-qt6 /usr/bin/qmake && \
qmake --version && \
make --jobs=$(nproc) JOBS=$(nproc) MXE_TARGETS='i686-w64-mingw32.shared' qt6-qtbase && \
exit 0

View File

@@ -2,8 +2,5 @@ FROM fffaraz/qt:mxe
RUN \
cd /opt/mxe && \
NPROC=$(($(nproc)+4)) && \
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='i686-w64-mingw32.static' qt6-qtbase && \
ln -s /opt/mxe/usr/bin/i686-w64-mingw32.static-qmake-qt6 /usr/bin/qmake && \
qmake --version && \
make --jobs=$(nproc) JOBS=$(nproc) MXE_TARGETS='i686-w64-mingw32.static' qt6-qtbase && \
exit 0

View File

@@ -2,8 +2,5 @@ FROM fffaraz/qt:mxe
RUN \
cd /opt/mxe && \
NPROC=$(($(nproc)+4)) && \
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='x86_64-w64-mingw32.shared' qt6-qtbase && \
ln -s /opt/mxe/usr/bin/x86_64-w64-mingw32.shared-qmake-qt6 /usr/bin/qmake && \
qmake --version && \
make --jobs=$(nproc) JOBS=$(nproc) MXE_TARGETS='x86_64-w64-mingw32.shared' qt6-qtbase && \
exit 0

View File

@@ -2,8 +2,15 @@ FROM fffaraz/qt:mxe
RUN \
cd /opt/mxe && \
NPROC=$(($(nproc)+4)) && \
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='x86_64-w64-mingw32.static' qtbase && \
ln -s /opt/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 /usr/bin/qmake && \
make --jobs=$(nproc) JOBS=$(nproc) MXE_TARGETS='x86_64-w64-mingw32.static' qt6-qtbase && \
exit 0
ENV PATH="${PATH}:/opt/mxe/usr/x86_64-w64-mingw32.static/qt6/bin"
RUN \
set -eux && \
echo $PATH && \
ln -s /opt/mxe/usr/bin/x86_64-w64-mingw32.static-cmake /usr/local/bin/cmake && \
cmake --version && \
qmake --version && \
exit 0

View File

@@ -11,3 +11,5 @@ https://github.com/qt/qtbase/blob/dev/src/network/kernel/qurltlds_p.h
ln -s /opt/mxe/usr/bin/x86_64-w64-mingw32.static-cmake /usr/bin/cmake
ENV CMAKE_PREFIX_PATH="/opt/mxe/usr/x86_64-w64-mingw32.static/qt5"
---
docker run --rm -it fffaraz/qt:mxe
---