Aditya Kulkarni
5 years ago
1 changed files with 33 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||
FROM ubuntu:16.04 |
|||
LABEL Description="Ubuntu 16.04 for static Qt 5.11.2" |
|||
|
|||
# Dependencies of the Qt offline installer |
|||
RUN apt-get -y update && apt-get install -y \ |
|||
curl libdbus-1-3 libexpat1 \ |
|||
libgl1-mesa-dev libglu1-mesa-dev libfontconfig1-dev libssl-dev \ |
|||
libfreetype6 libgl1-mesa-glx libglib2.0-0 \ |
|||
libx11-6 libx11-xcb1 \ |
|||
g++ build-essential cmake wget git \ |
|||
software-properties-common # for add-apt-repository \ |
|||
autoconf automake autopoint bison flex gperf libtool libtool-bin intltool lzip python ruby unzip p7zip-full libgdk-pixbuf2.0-dev libltdl-dev |
|||
|
|||
# Get OpenSSL |
|||
RUN cd /opt && wget https://www.openssl.org/source/openssl-1.0.2r.tar.gz && \ |
|||
tar xvf openssl-1.0.2r.tar.gz && \ |
|||
cd openssl-1.0.2r && ./Configure linux-x86_64 && make -j$(nproc) && \ |
|||
cd /opt && rm openssl-1.0.2r.tar.gz |
|||
|
|||
# Get Qt5.11.2 |
|||
RUN cd /opt && \ |
|||
wget https://download.qt.io/archive/qt/5.11/5.11.2/single/qt-everywhere-src-5.11.2.tar.xz && \ |
|||
tar xvf qt-everywhere-src-5.11.2.tar.xz && \ |
|||
cd qt-everywhere-src-5.11.2 && \ |
|||
OPENSSL_LIBS='-L/opt/openssl-1.0.2r -lssl -lcrypto' ./configure -static -prefix /opt/Qt/5.11.2/static -skip qtlocation -skip qtmacextras -skip qtpurchasing -skip qtscript -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtdatavis3d -skip qtdoc -skip qtcharts -skip qtdeclarative -skip qt3d -skip qtwebengine -skip qtandroidextras -skip qtwebview -skip qtgamepad -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtwebview -skip qtwebchannel -skip qtwebglplugin -nomake examples -nomake tests -qt-zlib -qt-libpng -qt-xcb -qt-xkbcommon -feature-fontconfig -no-feature-getentropy -release -openssl-linked -opensource -confirm-license && \ |
|||
make -j$(nproc) && make -j4 install && \ |
|||
cd /opt && rm qt-everywhere-src-5.11.2.tar.xz && rm -rf qt-everywhere-src-5.11.2 |
|||
|
|||
# Get and build MXE |
|||
RUN cd /opt && \ |
|||
make -j$(nproc) MXE_TARGETS=x86_64-w64-mingw32.static qtbase qtwebsockets |
|||
|
|||
ENV PATH="/opt/mxe/usr/bin:${PATH}" |
Loading…
Reference in new issue