Skip to content

Commit

Permalink
try with two sip libs
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Apr 4, 2018
1 parent 7de0054 commit feed623
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .docker/Dockerfile
@@ -0,0 +1,50 @@
FROM ubuntu:18.04
MAINTAINER Denis Rouzaud <denis@opengis.ch>

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

RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get update
RUN apt-get install -y curl tar

WORKDIR /root
RUN curl -s -S -O https://www.riverbankcomputing.com/hg/sip/archive/tip.tar.gz \
&& tar xzf tip.tar.gz

RUN apt-get install -y make

RUN mkdir /root/sip419
RUN mv $(find -type d -iname 'sip-*')/* sip419
WORKDIR /root/sip419
RUN sed -i -r "s/RM_HEXVERSION = '04ffff'/RM_HEXVERSION = '041308'/; s/RM_RELEASE = '4.255.255'/RM_RELEASE = '4.19.8'/" build.py
#RUN python3 build.py prepare && python3 configure.py && make && make install

RUN apt-get install -y python3-sip

WORKDIR /root
RUN curl -s -S -O https://svwh.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.9.2/PyQt5_gpl-5.9.2.tar.gz
RUN tar xzf PyQt5_gpl-5.9.2.tar.gz
WORKDIR /root/PyQt5_gpl-5.9.2
RUN apt-get update
RUN apt-get install -y qt5-qmake
RUN apt-get install -y g++
RUN apt-get install -y flex bison
RUN apt-get install -y python3-dev

WORKDIR /root/sip419
RUN python3 build.py prepare && python3 configure.py && make && make install

RUN apt-get install -y qt5-default
RUN apt-get install -y libqt5svg5-dev
WORKDIR /root/PyQt5_gpl-5.9.2
RUN python3 configure.py --verbose --confirm-license --qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --qsci-api --enable QtGui --enable QtSvg --enable QtSql
RUN make && make install

WORKDIR /root
RUN curl -s -S -O https://cfhcable.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.10.3/QScintilla_gpl-2.10.3.tar.gz
RUN tar xzf QScintilla_gpl-2.10.3.tar.gz
WORKDIR /root/QScintilla_gpl-2.10.3/Python
# RUN python3 configure.py --pyqt=PyQt5
# RUN make
# RUN make install
12 changes: 9 additions & 3 deletions .docker/qgis3-build-deps.dockerfile
Expand Up @@ -62,6 +62,10 @@ RUN apt-get update \
python3-nose2 \
python3-pip \
python3-psycopg2 \
python3-pyqt5 \
python3-pyqt5.qsci \
python3-pyqt5.qtsql \
python3-pyqt5.qtsvg \
python3-termcolor \
python3-yaml \
qt3d5-dev \
Expand Down Expand Up @@ -90,11 +94,12 @@ RUN apt-get update \
mock \
future \
termcolor \
PyQt5 \
QScintilla \
&& apt-get autoremove -y python3-pip python2.7 \
&& apt-get clean

RUN bash -c "echo $(sip -V)"
RUN bash -c "echo $(which sip)"

WORKDIR /root
RUN curl -s -S -O https://www.riverbankcomputing.com/hg/sip/archive/tip.tar.gz \
&& tar xzf tip.tar.gz \
Expand All @@ -106,7 +111,8 @@ RUN python3 build.py prepare \
&& make \
&& make install

RUN echo $(sip -V)
RUN bash -c "echo $(sip -V)"
RUN bash -c "echo $(which sip)"

# WORKDIR /root
# RUN curl -s -S -O https://svwh.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.9.2/PyQt5_gpl-5.9.2.tar.gz \
Expand Down

0 comments on commit feed623

Please sign in to comment.