Skip to content

Instantly share code, notes, and snippets.

@cassinaj
Created November 10, 2015 19:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cassinaj/d7ed46c613d800b660d7 to your computer and use it in GitHub Desktop.
Save cassinaj/d7ed46c613d800b660d7 to your computer and use it in GitHub Desktop.
Docker file qt5-ubuntu:14.04 wit QT5
FROM ubuntu:14.04
MAINTAINER Jan Issac <jan.issac@gmail.com>
# Use noninteractive debconf frontend
ENV DEBIAN_FRONTEND noninteractive
# Update
Run apt-get update
# install prerequisites
RUN apt-get -y install --no-install-recommends \
sudo \
lsb-release \
bash-completion \
git \
vim \
wget \
curl
# build essentials
RUN apt-get -y install --no-install-recommends \
build-essential \
ccache \
perl \
python
####################
# QT5 requirements #
####################
RUN apt-get -y build-dep qtbase5-dev
# Libxcb
RUN apt-get -y install --no-install-recommends \
"^libxcb.*" \
libx11-xcb-dev \
libglu1-mesa-dev \
libxrender-dev \
libxi-dev
# Accessibility
RUN apt-get -y install --no-install-recommends \
"libatspi2*" \
libdbus-1-dev
# QT WebKit requirements
RUN apt-get -y install --no-install-recommends \
flex \
bison \
gperf \
libicu-dev \
libxslt-dev \
ruby
# QT WebEngine requirements
RUN apt-get -y install --no-install-recommends \
libssl-dev \
libxcursor-dev \
libxcomposite-dev \
libxdamage-dev \
libxrandr-dev \
libfontconfig1-dev \
libcap-dev \
libbz2-dev \
libgcrypt11-dev \
libpci-dev \
libnss3-dev \
libxcursor-dev \
libxcomposite-dev \
libxdamage-dev \
libxrandr-dev \
libdrm-dev \
libfontconfig1-dev \
libxtst-dev \
libasound2-dev \
libcups2-dev \
libpulse-dev \
libudev-dev \
libssl-dev
# QT Multimedia
RUN apt-get -y install --no-install-recommends \
libasound2-dev \
libgstreamer0.10-dev \
libgstreamer-plugins-base0.10-dev
####################
# Build QT5 #
####################
# Get the source code
RUN cd /tmp && \
git clone git://code.qt.io/qt/qt5.git \
--branch 5.5 && \
cd qt5 && \
git checkout 5.5 && \
./init-repository
# Configure QT5
RUN cd /tmp/qt5 && \
./configure \
-prefix /usr/local \
-opensource \
-confirm-license \
-nomake tests \
-nomake examples \
-dbus \
-no-separate-debug-info \
-xcb \
-system-xcb \
-qpa xcb \
-no-gtkstyle \
-release \
-force-debug-info \
-reduce-relocations \
-optimized-qmake
# Compile QT5
RUN cd /tmp/qt5 && make -j
# install QT5
RUN cd /tmp/qt5 && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment