Bug 406390

Summary: 2019-04-10- Refactoring Track Producers - not recognizing mlt version on compile
Product: [Applications] kdenlive Reporter: Evert Vorster <evorster>
Component: Setup & InstallationAssignee: Vincent PINON <vpinon>
Status: RESOLVED FIXED    
Severity: critical    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Evert Vorster 2019-04-10 06:52:27 UTC
SUMMARY
I am trying to build the refactoring track producers from git, but am unable to. 
In the configuration phase, it mis-detects mlt version. 

------------snip-------------
[evert@Vorster kdenlive-testing-git]$ makepkg
==> Making package: kdenlive-testing-git 19.03.70.r10665.4fc2f242e-1 (Wed Apr 10 08:47:14 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating kdenlive git repo...
Fetching origin
==> Validating source files with sha1sums...
    kdenlive ... Skipped
==> Extracting sources...
  -> Creating working copy of kdenlive git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Error at /usr/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find MLT: Found unsuitable version "6.11.0", but required is at
  least "6.12.0" (found /usr/lib/libmlt.so)
Call Stack (most recent call first):
  /usr/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindMLT.cmake:59 (find_package_handle_standard_args)
  CMakeLists.txt:66 (find_package)


-- Configuring incomplete, errors occurred!
See also "/data/OS/aur/kdenlive-testing-git/src/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...
[evert@Vorster kdenlive-testing-git]$ whereis melt
melt: /usr/bin/melt
[evert@Vorster kdenlive-testing-git]$ /usr/bin/melt --version
melt 6.15.0
Copyright (C) 2002-2019 Meltytech, LLC
<https://www.mltframework.org/>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[evert@Vorster kdenlive-testing-git]$ 

--------------------snip-------------------------
Comment 1 Evert Vorster 2019-04-10 07:12:22 UTC
This also seems to be true for the 19.04 branch. 

How does the Cmake determine the version of mlt?
Comment 2 Evert Vorster 2019-04-12 06:13:12 UTC
Hmm, looks like I needed to call my builder with a --cleanbuild switch, there was still some old caches lying around.