site  contact  subhomenews

Pyqt5 and MLT compiled in OE

January 05, 2022 — BarryK

I have been looking around at video editors, as having ongoing issues with LiVES. There are a couple that require 'pyqt5' and at least one that requires 'mlt'. This is what I have compiled in OpenEmbedded:

fdk-aac          2.0.1
mlt 7.4.0
python3-pyqt5 5.15.1
qtquickcontrols2 5.14.2+gitAUTOINC+bb2b1adffe
sip3 4.19.23

MLT home page:

https://mltframework.org/

Here is my recipe, meta-quirky/recipes-support/mlt/mlt_7.4.0.bb:

# Recipe created by recipetool
# recipetool create -o mlt_7.4.0.bb https://github.com/mltframework/mlt/archive/refs/tags/v7.4.0.tar.gz

LICENSE = "LGPLv2.1 & GPLv2 & GPLv3 & MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=4b54a1fd55a448865a0b32d41598759d \
file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://GPLv3;md5=d32239bcb673463ab874e80d47fae504 \
file://src/modules/plus/ebur128/COPYING;md5=b7edcc6cb01ace25ebd2555cf15473dc"

SRC_URI = "https://github.com/mltframework/mlt/archive/refs/tags/v${PV}.tar.gz"
SRC_URI[md5sum] = "4bc74ec681e67310340bafc235178a81"
SRC_URI[sha256sum] = "17c19843ffdbca66777aaadf39acb11829fd930eaded92f768cbcb8ae59a5f37"

#removed: tcl-native ruby-native
DEPENDS = "libx11 swig-native qtbase virtual/libgl \
libsdl libsdl2 ffmpeg zlib libxxf86vm libxv xvidcore libxtst libxshmfence \
libxrender libxrandr libxml2 libxi libxfixes libxext libxdmcp libxdamage \
libxcb libxau x265 x264 libx11 libwebp wavpack libvpx libvorbis libvdpau \
libva v4l-utils util-linux libusb1 eudev libtheora openssl speex speexdsp \
sox libsndfile1 libsndfile1-native libsm libsamplerate0 libraw1394 \
qtdeclarative qtscript qtsvg qttools qtx11extras qtxmlpatterns \
pulseaudio libpthread-stubs libpthread-stubs-native libpng libpcre libpcre2 \
pango opencore-amr libogg lame libmad xz libjpeg-turbo libid3tag icu \
libice harfbuzz graphite2 mesa glib-2.0 glib-2.0-native gdk-pixbuf fribidi \
freetype fontconfig flac fftw libffi expat libexif libdrm libdc1394 \
libcdio-paranoia libcdio libcap bzip2 libbluray ffmpeg libao alsa-lib \
swig python3-native lua-native perl-native"

inherit cmake cmake_qt5 pkgconfig

#removed: -DCPU_SSE2=OFF
EXTRA_OECMAKE = "-DMOD_DECKLINK=OFF -DMOD_JACKRACK=OFF -DMOD_XINE=OFF \
-DMOD_FREI0R=OFF -DMOD_KDENLIVE=OFF -DMOD_RTAUDIO=OFF -DMOD_RUBBERBAND=OFF \
-DSWIG_PYTHON=ON -DSWIG_LUA=ON -DSWIG_PERL=OFF"

#| ninja: error: build.ninja:4240: multiple rules generate out/lib/mlt.so [-w dupbuild=err]
#fix, ref: https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg63379.html
EXTRA_OECMAKE_BUILD += "-w dupbuild=warn"

#/mlt/7.4.0-r6/image/usr/lib/perl5/vendor_perl/5.30.1/x86_64-linux/auto/mlt/mlt.so
#| CMake Error at src/swig/perl/cmake_install.cmake:50 (file):
#| file RPATH_CHANGE could not write new RPATH:
# have changed -DSWIG_PERL to OFF.

SUMMARY = "MLT Multimedia Framework"
HOMEPAGE = "https://www.mltframework.org"

So, what video-editors to consider? Have got a short list, will check them out.   

Tags: easy