Skip to content

Commit

Permalink
add Qt 3D to deps Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 14, 2018
1 parent cf5d415 commit c0f1815
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .docker/Dockerfile
Expand Up @@ -3,11 +3,12 @@ MAINTAINER Denis Rouzaud <denis.rouzaud@gmail.com>

LABEL Description="Docker container with QGIS dependencies" Vendor="QGIS.org" Version="1.0"

# && echo "deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
# && echo "deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
# && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 \

RUN apt-get update \
&& apt-get install -y software-properties-common \
&& echo "deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
&& echo "deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main" >> /etc/apt/sources.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 \
&& apt-get update \
&& apt-get install -y \
bison \
Expand All @@ -30,6 +31,7 @@ RUN apt-get update \
libproj-dev \
libqca-qt5-2-dev \
libqca-qt5-2-plugins \
libqt53drender5 \
libqt5opengl5-dev \
libqt5scintilla2-dev \
libqt5sql5-sqlite \
Expand Down Expand Up @@ -67,6 +69,11 @@ RUN apt-get update \
python3-sip-dev \
python3-termcolor \
python3-yaml \
qt3d5-dev \
qt3d-assimpsceneimport-plugin \
qt3d-defaultgeometryloader-plugin \
qt3d-gltfsceneio-plugin \
qt3d-scene2d-plugin \
qt5keychain-dev \
qtbase5-dev \
qtpositioning5-dev \
Expand Down
4 changes: 4 additions & 0 deletions .docker/build-qgis-image.sh
@@ -0,0 +1,4 @@
#!/usr/bin/env bash


docker build -v ..:/root/QGIS -t "qgis/qgis3-build-deps:new" ..
8 changes: 5 additions & 3 deletions Dockerfile
@@ -1,10 +1,10 @@

# CACHE_TAG is provided by Docker cloud
# CACHE_TAG is provided by Docker cloud
# see https://docs.docker.com/docker-cloud/builds/advanced/
# using ARG in FROM requires min v17.05.0-ce
# using ARG in FROM requires min v17.05.0-ce
ARG CACHE_TAG=latest

FROM qgis/qgis3-build-deps:${CACHE_TAG}
FROM qgis/qgis3-build-deps:bionic
MAINTAINER Denis Rouzaud <denis.rouzaud@gmail.com>

ENV CC=/usr/lib/ccache/clang
Expand All @@ -18,10 +18,12 @@ WORKDIR /usr/src/QGIS/build

RUN cmake \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBINDINGS_GLOBAL_INSTALL=ON \
-DWITH_STAGED_PLUGINS=ON \
-DWITH_GRASS=ON \
-DWITH_3D=ON \
-DSUPPRESS_QT_WARNINGS=ON \
-DENABLE_TESTS=OFF \
-DWITH_QSPATIALITE=ON \
Expand Down

0 comments on commit c0f1815

Please sign in to comment.