-
Notifications
You must be signed in to change notification settings - Fork 186
/
Dockerfile_mxe
65 lines (58 loc) · 1.24 KB
/
Dockerfile_mxe
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
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y -q --no-install-recommends \
autoconf \
automake \
autopoint \
bash \
bison \
bzip2 \
dpkg \
dpkg-dev \
flex \
g++ \
g++-multilib \
gettext \
git \
gperf \
fakeroot \
intltool \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libltdl-dev \
libssl-dev \
libtool \
libxml-parser-perl \
lua5.1 \
make \
openssl \
p7zip-full \
patch \
perl \
pkg-config \
python \
ruby \
scons \
sed \
unzip \
wget \
xz-utils \
mercurial \
subversion \
lzip \
libtool-bin \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/mxe/mxe.git
WORKDIR /mxe
# there is a recent bug, 'mesa' fails to build
RUN git checkout 3735aa8020609e680ca6867e3f4835d8a06efa9b
RUN make -j8 qt5 cmake qwt nsis
ENV PATH="${PATH}:/mxe/usr/bin/:/mxe/usr/i686-w64-mingw32.static/qt5/bin/"
WORKDIR /serialplot
ADD . /serialplot
WORKDIR ./build_docker_mxe
RUN i686-w64-mingw32.static-cmake \
-DBUILD_QWT=false \
-DQWT_LIBRARY=/mxe/usr/i686-w64-mingw32.static/qt5/lib/libqwt.a \
-DQWT_INCLUDE_DIR=/mxe/usr/i686-w64-mingw32.static/qt5/include/ \
../
RUN make -j8 package