|
| 1 | +FROM quay.io/pypa/manylinux2014_aarch64:latest |
| 2 | + |
| 3 | +RUN yum install bzip2-devel curl-devel zlib-devel xcb-util-renderutil-devel xcb-util-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel mesa-libGL-devel libxkbcommon-devel libxkbcommon-x11-devel libXi-devel freetype-devel -y |
| 4 | + |
| 5 | +RUN curl -O -L https://download.qt.io/official_releases/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz && \ |
| 6 | + tar -xf qt-everywhere-src-5.15.0.tar.xz && \ |
| 7 | + cd qt-everywhere* && \ |
| 8 | + export MAKEFLAGS=-j$(nproc) && \ |
| 9 | + ./configure -prefix /opt/Qt5.15.0 -release -opensource -confirm-license -qtnamespace QtOpenCVPython -xcb -xcb-xlib -bundled-xcb-xinput -no-openssl -no-dbus -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmultimedia -skip qtpurchasing -skip qtqa -skip qtremoteobjects -skip qtrepotools -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttranslations -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip xmlpatterns -skip declarative -make libs && \ |
| 10 | + make && \ |
| 11 | + make install && \ |
| 12 | + cd .. && \ |
| 13 | + rm -rf qt-everywhere-src-5.15.0 && \ |
| 14 | + rm qt-everywhere-src-5.15.0.tar.xz |
| 15 | + |
| 16 | +ENV QTDIR /opt/Qt5.15.0 |
| 17 | +ENV PATH "$QTDIR/bin:$PATH" |
| 18 | + |
| 19 | +RUN mkdir ~/ffmpeg_sources && \ |
| 20 | + cd ~/ffmpeg_sources && \ |
| 21 | + curl -O -L https://github.com/openssl/openssl/archive/OpenSSL_1_1_1c.tar.gz && \ |
| 22 | + tar -xf OpenSSL_1_1_1c.tar.gz && \ |
| 23 | + cd openssl-OpenSSL_1_1_1c && \ |
| 24 | + ./config --prefix="$HOME/ffmpeg_build" --openssldir="$HOME/ffmpeg_build" shared zlib && \ |
| 25 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 26 | + # skip installing documentation |
| 27 | + make install_sw && \ |
| 28 | + rm -rf ~/openssl_build |
| 29 | + |
| 30 | +RUN cd ~/ffmpeg_sources && \ |
| 31 | + curl -O -L http://www.nasm.us/pub/nasm/releasebuilds/2.14.01/nasm-2.14.01.tar.bz2 && \ |
| 32 | + tar -xf nasm-2.14.01.tar.bz2 && cd nasm-2.14.01 && ./autogen.sh && \ |
| 33 | + ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \ |
| 34 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 35 | + make install |
| 36 | + |
| 37 | +RUN cd ~/ffmpeg_sources && \ |
| 38 | + curl -O -L http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && \ |
| 39 | + tar -xf yasm-1.3.0.tar.gz && \ |
| 40 | + cd yasm-1.3.0 && \ |
| 41 | + ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && \ |
| 42 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 43 | + make install |
| 44 | + |
| 45 | +RUN cd ~/ffmpeg_sources && \ |
| 46 | + git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git && \ |
| 47 | + cd libvpx && \ |
| 48 | + ./configure --prefix="$HOME/ffmpeg_build" --disable-examples --disable-unit-tests --enable-vp9-highbitdepth --as=yasm --enable-pic --enable-shared && \ |
| 49 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 50 | + make install |
| 51 | + |
| 52 | +RUN cd ~/ffmpeg_sources && \ |
| 53 | + curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \ |
| 54 | + tar -xf ffmpeg-snapshot.tar.bz2 && \ |
| 55 | + cd ffmpeg && \ |
| 56 | + PATH=~/bin:$PATH && \ |
| 57 | + PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --enable-openssl --enable-libvpx --enable-shared --enable-pic --bindir="$HOME/bin" && \ |
| 58 | + make -j$(getconf _NPROCESSORS_ONLN) && \ |
| 59 | + make install && \ |
| 60 | + echo "/root/ffmpeg_build/lib/" >> /etc/ld.so.conf && \ |
| 61 | + ldconfig && \ |
| 62 | + rm -rf ~/ffmpeg_sources |
| 63 | + |
| 64 | +ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig:/root/ffmpeg_build/lib/pkgconfig |
| 65 | +ENV LDFLAGS -L/root/ffmpeg_build/lib |
| 66 | +ENV PATH "$HOME/bin:$PATH" |
0 commit comments