Skip to content

Instantly share code, notes, and snippets.

@znerol
Created April 27, 2019 20:59
Show Gist options
  • Save znerol/3f56762feca53f6677e7b3d218734604 to your computer and use it in GitHub Desktop.
Save znerol/3f56762feca53f6677e7b3d218734604 to your computer and use it in GitHub Desktop.
Build instructions for AEO-light (centos)
FROM centos:7
RUN yum makecache fast && yum groupinstall -y 'Development Tools'
RUN mkdir -p /src
# Build libdpx
WORKDIR /src
RUN git clone https://github.com/PatrickPalmer/dpx.git
WORKDIR /src/dpx
RUN libtoolize && aclocal && autoconf && automake -a && ./configure && make
# Build dspfilters
WORKDIR /src
RUN git clone https://github.com/vinniefalco/DSPFilters.git
WORKDIR /src/DSPFilters
RUN python waf configure && python waf build && python waf install
# Enable rpmfusion repository.
# https://rpmfusion.org/Configuration
RUN yum -y install epel-release
RUN rpm --import 'https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-7'
RUN yum localinstall -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
# Install remaining build dependencies
RUN yum -y install \
ffmpeg-devel \
libtiff-devel \
qt5-qtbase-devel \
qt5-qtmultimedia-devel
WORKDIR /src
RUN git clone https://github.com/usc-imi/aeo-light.git
WORKDIR /src/aeo-light
RUN cp ../dpx/libdpx/libdpx.a ./libdpx.a
# Note: Linker fails to link against dspfilters on case-sensitive filesystems. The library installs as `libDSPFilters.so`, thus we need to fix that in the project file.
RUN sed -i 's#-ldspfilters#-lDSPFilters#g' aeogui.pro
# Note: rpmfusion ffmpeg includes are placed in `/usr/include/ffmpeg`, thus we need to fix that in the project file.
RUN sed -i 's#INCLUDEPATH += /usr/local/include/ /opt/local/include/#INCLUDEPATH += /usr/local/include/ /opt/local/include/ /usr/include/ffmpeg/#' aeogui.pro
RUN qmake-qt5 && make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment