* Changes to allow Linux companion to be compiled with qt5.7 * Optimize
43 lines
1.5 KiB
Docker
43 lines
1.5 KiB
Docker
# An Debian image for compiling OpenTX 2.2
|
|
|
|
FROM ubuntu:16.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
avr-libc \
|
|
build-essential \
|
|
cmake \
|
|
gcc \
|
|
git \
|
|
libgtest-dev \
|
|
lib32ncurses5 \
|
|
lib32z1 \
|
|
libfox-1.6-dev \
|
|
libsdl1.2-dev \
|
|
python-qt4 \
|
|
software-properties-common \
|
|
wget \
|
|
zip
|
|
|
|
RUN add-apt-repository ppa:beineri/opt-qt571-xenial -y && \
|
|
apt-get update && \
|
|
apt-get install -qq qt57base qt57multimedia qt57tools && \
|
|
/opt/qt57/bin/qt57-env.sh
|
|
|
|
RUN wget -q https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 && \
|
|
tar xjf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 && \
|
|
mv gcc-arm-none-eabi-4_7-2013q3 /opt/gcc-arm-none-eabi
|
|
|
|
RUN wget -q http://ftp.de.debian.org/debian/pool/main/g/gcc-avr/gcc-avr_4.7.2-2_amd64.deb && \
|
|
wget -q http://ftp.de.debian.org/debian/pool/main/a/avr-libc/avr-libc_1.8.0-2_all.deb && \
|
|
wget -q http://ftp.de.debian.org/debian/pool/main/b/binutils-avr/binutils-avr_2.24+Atmel3.4.4-1_amd64.deb && \
|
|
wget -q http://ftp.de.debian.org/debian/pool/main/m/mpclib/libmpc2_0.9-4_amd64.deb && \
|
|
dpkg -i gcc-avr_4.7.2-2_amd64.deb libmpc2_0.9-4_amd64.deb avr-libc_1.8.0-2_all.deb binutils-avr_2.24+Atmel3.4.4-1_amd64.deb
|
|
|
|
VOLUME ["/opentx"]
|
|
|
|
ENV PATH $PATH:/opt/gcc-arm-none-eabi/bin:/opentx/code/radio/util
|
|
ARG OPENTX_VERSION_SUFFIX=
|
|
ENV OPENTX_VERSION_SUFFIX ${OPENTX_VERSION_SUFFIX}
|
|
ENV CMAKE_PREFIX_PATH /opt/qt57
|