-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.x64
71 lines (64 loc) · 1.65 KB
/
Dockerfile.x64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update && apt -y upgrade && apt -y install \
apt-utils \
autoconf \
automake \
autopoint \
bash \
bison \
build-essential \
bzip2 \
flex \
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
RUN cd /opt && \
git clone https://github.com/mxe/mxe.git && \
cd /opt/mxe && \
NPROC=$(($(nproc)+4)) && \
make --jobs=$NPROC JOBS=$NPROC MXE_TARGETS='x86_64-w64-mingw32.static' qt5; exit 0
#
# I don't know why this modules fail to compile in qt5 package.
# But recompiling fixs them.
# These commands are explicitly putted in separate RUN command, so it is possible to
# start from intermediate state (in case of an error your time will not be wasted).
#
RUN cd /opt/mxe && \
make MXE_TARGETS='x86_64-w64-mingw32.static' qtquickcontrols && \
make MXE_TARGETS='x86_64-w64-mingw32.static' qtquickcontrols2 && \
make MXE_TARGETS='x86_64-w64-mingw32.static' qtquick3d && \
make MXE_TARGETS='x86_64-w64-mingw32.static' qttools && \
make MXE_TARGETS='x86_64-w64-mingw32.static' qtgraphicaleffects; exit 0
#
# Add your packages here
#
RUN cd /opt/mxe && \
ln -s /opt/mxe/usr/bin/x86_64-w64-mingw32.static-cmake /usr/bin/cmake; exit 0
ENV PATH="/opt/mxe/usr/bin:${PATH}"