Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808180 - media-libs/mlt-7.0.1[opencv] w/ media-libs/opencv[-contrib]: CMake Error at .../FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find OpenCV (missing: tracking)
Summary: media-libs/mlt-7.0.1[opencv] w/ media-libs/opencv[-contrib]: CMake Error at ....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-14 11:01 UTC by Michelangelo Scopelliti
Modified: 2021-08-15 18:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (mlt-7.0.1:20210814-105553.log.gz,3.48 KB, application/gzip)
2021-08-14 11:02 UTC, Michelangelo Scopelliti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2021-08-14 11:01:27 UTC
media-libs/mlt-7.0.1 builds fine unless USE=opencv.
With  opencv enabled, configure phase fails with error

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenCV (missing: tracking) (found version "4.5.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/lib64/cmake/opencv4/OpenCVConfig.cmake:354 (find_package_handle_standard_args)
  CMakeLists.txt:244 (find_package)


the build log will follow.

Reproducible: Always




emerge --info

Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1, gcc-11.2.0, glibc-2.33-r5, 5.13.9 x86_64)
=================================================================
System uname: Linux-5.13.9-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-glibc2.33
KiB Mem:    32589568 total,  26362032 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 14 Aug 2021 08:22:18 +0000
Head commit of repository gentoo: eaf1106bc2b46490e13c9750d0a103aba1bf708a

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p11::gentoo, 3.9.6_p1::gentoo, 3.10.0_rc1_p1::gentoo
dev-lang/rust:            1.54.0::gentoo
dev-util/cmake:           3.21.1::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

kernelpanic
    location: /var/db/repos/kernelpanic
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=native -mtune=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg cgroup clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -mtune=native -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 amr ao avif blas bluray branding bzip2 cairo cdda clang cli crypt cups curl dbus djvu dri dvb dvd elogind encode eselect-ldso exif ffmpeg fftw flac fontconfig fortran fribidi gdbm gif gimp gmp gsm gtk harfbuzz heif iconv icu imlib inotify ipv6 jbig jemalloc jit jpeg jpeg2k lapack lcms libass libglvnd libnotify libsamplerate libtirpc llvm lto luajit lvm lz4 lzma lzo mms mng mp3 mpeg multilib natspec ncurses nls nptl offensive ogg openal opencv openexr opengl openmp opus pam pango pcre pcre16 pdf png policykit postproc postscript printsupport pulseaudio raw readline rubberband scanner seccomp smp sndfile sox speex spell split-usr ssl svg tbb theora threads tiff truetype udev udisks unicode usb v4l vaapi vdpau vidstab vim-syntax vorbis vpx vulkan wavpack webp wmf x264 xattr xcb xcomposite xdg xetex xml xpm xv xvid zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby27" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Michelangelo Scopelliti 2021-08-14 11:02:24 UTC
Created attachment 732865 [details]
build log
Comment 2 Luke A. Guest 2021-08-14 15:55:23 UTC
Can confirm, get the same here.
Comment 3 Andreas Sturmlechner gentoo-dev 2021-08-15 09:29:47 UTC
What are your media-libs/opencv USE flags?
Comment 4 Michelangelo Scopelliti 2021-08-15 09:49:55 UTC
(In reply to Andreas Sturmlechner from comment #3)
> What are your media-libs/opencv USE flags?

on my system:

emerge -pqv opencv

[ebuild   R    ] media-libs/opencv-4.5.2-r1:0/4.5.2::gentoo  USE="eigen features2d ffmpeg jpeg jpeg2k lapack lto openexr opengl openmp png python qt5 threads tiff v4l vaapi webp -contrib -contribcvv -contribdnn -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -gdal -gflags -glog -gphoto2 -gstreamer -gtk3 -ieee1394 -java -opencl -opencvapps -tesseract -testprograms -vtk -xine" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="avx avx2 f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx512f" PYTHON_TARGETS="python3_9 -python3_8"
Comment 5 Luke A. Guest 2021-08-15 09:54:29 UTC
(In reply to Andreas Sturmlechner from comment #3)
> What are your media-libs/opencv USE flags?

I don't have any set or unset, just the defaults.

emerge -pqv opencv

[ebuild   R   ] media-libs/opencv-4.5.2-r1  USE="eigen features2d ffmpeg gstreamer jpeg jpeg2k opencl openexr opengl openmp png python qt5 tiff v4l vaapi webp -contrib -contribcvv -contribdnn -contribfreetype -contribhdf (-contribovis) -contribsfm -contribxfeatures2d -cuda -debug -dnnsamples -download -examples -gdal -gflags -glog -gphoto2 -gtk3 -ieee1394 -java -lapack -lto -opencvapps -tesseract -testprograms -threads -vtk -xine" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="avx f16c fma3 popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 -avx2 -avx512f" PYTHON_TARGETS="python3_9 -python3_8"
Comment 6 Andreas Sturmlechner gentoo-dev 2021-08-15 09:54:49 UTC
Please enable USE=contrib, then try to build media-libs/mlt again; if it still fails please also enable USE=contribdnn, try again, and report back here.
Comment 7 Michelangelo Scopelliti 2021-08-15 10:33:57 UTC
(In reply to Andreas Sturmlechner from comment #6)
> Please enable USE=contrib, then try to build media-libs/mlt again; if it
> still fails please also enable USE=contribdnn, try again, and report back
> here.

USE=contrib fixed the issue for me
Comment 8 Larry the Git Cow gentoo-dev 2021-08-15 18:57:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72e8f494f6ffee3cb0a5ee1a2e35d6228fe372fe

commit 72e8f494f6ffee3cb0a5ee1a2e35d6228fe372fe
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-08-15 17:42:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-08-15 18:56:40 +0000

    media-libs/mlt: Require media-libs/opencv[contrib]
    
    Reported-by: Michelangelo Scopelliti <kernelpanic@gmx.com>
    Closes: https://bugs.gentoo.org/808180
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../mlt/{mlt-7.0.1.ebuild => mlt-7.0.1-r1.ebuild}      | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)