comparison deploy/linux/docker/Dockerfile_appimage.in @ 1976:810a0b8f5472 c++14

Requiring c++14 is not going to work for Travis (because we want to support a Qt version too old to know about the c++14 config flag) or for our AppImage build (because we want to run on distros to old to support the relevant gcc ABI). So instead we try to confine the C++ standard selection to one place (config/noconfig) and revert to c++11 if the compiler is too old to know about c++14. All of the actual SV code remains c++11, and we assume we build against an older version of capnproto when we want to perform a c++11 build.
author Chris Cannam
date Fri, 31 Aug 2018 13:41:27 +0100
parents be5496ec5f97
children 34cb861994a2
comparison
equal deleted inserted replaced
1975:18fb91db5311 1976:810a0b8f5472
38 # have. However, we do install JACK because the Dynamic JACK mechanism 38 # have. However, we do install JACK because the Dynamic JACK mechanism
39 # should ensure we can detect, configure, and use that without 39 # should ensure we can detect, configure, and use that without
40 # actually linking against it. We also have Pulse as the default I/O. 40 # actually linking against it. We also have Pulse as the default I/O.
41 41
42 RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty 42 RUN apt-add-repository -y ppa:beineri/opt-qt-5.10.1-trusty
43 RUN apt-add-repository -y ppa:ubuntu-toolchain-r/test
44 RUN apt-get update && \ 43 RUN apt-get update && \
45 apt-get install -y \ 44 apt-get install -y \
46 g++-4.9 \
47 qt510base \ 45 qt510base \
48 qt510svg 46 qt510svg
49 RUN apt-get clean && rm -rf /var/lib/apt/lists/* 47 RUN apt-get clean && rm -rf /var/lib/apt/lists/*
50
51 RUN for x in g++ gcc gcc-ar gcc-nm gcc-ranlib ; do ln -sf /usr/bin/$x-4.9 /usr/bin/$x ; ln -sf /usr/bin/x86_64-linux-gnu-gcc-$x-4.9 /usr/bin/x86_64-linux-gnu-gcc-$x ; done
52 48
53 RUN locale-gen en_US.UTF-8 49 RUN locale-gen en_US.UTF-8
54 ENV LANG en_US.UTF-8 50 ENV LANG en_US.UTF-8
55 ENV LANGUAGE en_US:en 51 ENV LANGUAGE en_US:en
56 ENV LC_ALL en_US.UTF-8 52 ENV LC_ALL en_US.UTF-8
57 53
58 RUN hg clone -r[[REVISION]] https://code.soundsoftware.ac.uk/hg/sonic-visualiser 54 RUN hg clone -r[[REVISION]] https://code.soundsoftware.ac.uk/hg/sonic-visualiser
59 55
60 RUN git clone https://github.com/sandstorm-io/capnproto 56 RUN git clone https://github.com/sandstorm-io/capnproto
61 WORKDIR capnproto 57 WORKDIR capnproto
62 RUN git checkout v0.7.0 58 RUN git checkout v0.6.0
63 WORKDIR c++ 59 WORKDIR c++
64 RUN autoreconf -i && ./configure && make -j3 && make install 60 RUN autoreconf -i && ./configure && make -j3 && make install
65 61
66 WORKDIR ../../sonic-visualiser 62 WORKDIR ../../sonic-visualiser
67 ENV QTDIR /opt/qt510 63 ENV QTDIR /opt/qt510