This forum has been archived. All content is frozen. Please use KDE Discuss instead.

mlt++ found, but somewhat not found?!

Tags: None
(comma "," separated)
Chamo
Registered Member
Posts
27
Karma
0
Hi,

I just downloaded, configured, compiled and installed mlt 0.5.10. Now I wanted to compile kdenlive, but what I get from cmake is:

(...)
-- Found automoc4: /usr/bin/automoc4
-- checking for module 'mlt++'
-- package 'mlt++' not found
CMake Error at /usr/share/apps/cmake/modules/FindPkgConfig.cmake:286 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/apps/cmake/modules/FindPkgConfig.cmake:338 (_pkg_check_modules_internal)
cmake/modules/FindLIBMLT.cmake:6 (pkg_check_modules)
CMakeLists.txt:19 (find_package)


-- MLT install path:
-- MLT includes: /usr/local/include/mlt
-- MLT library: /usr/local/lib64/libmlt.so
-- MLT++ includes: /usr/local/include
-- MLT++ library: /usr/local/lib64/libmlt++.so
CMake Error at CMakeLists.txt:21 (message):
MLT must be at least version 0.5.10, you have

Please install recent MLT http://www.mltframework.org


-- Configuring incomplete, errors occurred!

So on one hand it finds the files in /usr/local/include and /usr/local/lib64, but on the other hand it tells me the package was not found. How's that? And yes, the files are in place:

lrwxrwxrwx 1 root root 18 27. Sep 23:32 /usr/local/lib64/libmlt++.so -> libmlt++.so.0.5.10
-rwxr-xr-x 1 root root 184917 27. Sep 23:32 /usr/local/lib64/libmlt++.so.0.5.10
lrwxrwxrwx 1 root root 18 27. Sep 23:32 /usr/local/lib64/libmlt++.so.3 -> libmlt++.so.0.5.10

and

-rw-r--r-- 1 root root 1164 27. Sep 23:32 config.h
-rw-r--r-- 1 root root 1626 27. Sep 23:32 MltConsumer.h
-rw-r--r-- 1 root root 1268 27. Sep 23:32 MltDeque.h
-rw-r--r-- 1 root root 1219 27. Sep 23:32 MltEvent.h
-rw-r--r-- 1 root root 1812 27. Sep 23:32 MltFactory.h
-rw-r--r-- 1 root root 1490 27. Sep 23:32 MltField.h
-rw-r--r-- 1 root root 1521 27. Sep 23:32 MltFilteredConsumer.h
-rw-r--r-- 1 root root 1410 27. Sep 23:32 MltFilteredProducer.h
-rw-r--r-- 1 root root 1561 27. Sep 23:32 MltFilter.h
-rw-r--r-- 1 root root 1661 27. Sep 23:32 MltFrame.h
-rw-r--r-- 1 root root 2771 27. Sep 23:32 MltGeometry.h
-rw-r--r-- 1 root root 1469 27. Sep 23:32 Mlt.h
-rw-r--r-- 1 root root 1567 27. Sep 23:32 MltMultitrack.h
-rw-r--r-- 1 root root 2168 27. Sep 23:32 MltParser.h
-rw-r--r-- 1 root root 3385 27. Sep 23:32 MltPlaylist.h
-rw-r--r-- 1 root root 2069 27. Sep 23:32 MltProducer.h
-rw-r--r-- 1 root root 1650 27. Sep 23:32 MltProfile.h
-rw-r--r-- 1 root root 3270 27. Sep 23:32 MltProperties.h
-rw-r--r-- 1 root root 1497 27. Sep 23:32 MltPushConsumer.h
-rw-r--r-- 1 root root 1830 27. Sep 23:32 MltRepository.h
-rw-r--r-- 1 root root 1743 27. Sep 23:32 MltService.h
-rw-r--r-- 1 root root 1279 27. Sep 23:32 MltTokeniser.h
-rw-r--r-- 1 root root 2057 27. Sep 23:32 MltTractor.h
-rw-r--r-- 1 root root 1662 27. Sep 23:32 MltTransition.h

What do I do wrong?

Thanks for your help!

Chamo
j-b-m
Registered Member
Posts
804
Karma
1
The MLT version is cached by CMake. try deleting the file CMakeCache.txt in Kdenlive build dir and run cmake again should solve your problem
Chamo
Registered Member
Posts
27
Karma
0
Hi j-b-m,

thank you for the advice. But this doesn't work either. I also removed the complete directory with the kdenlive sources and restarted by untarring it again, to get a perfectly clean start. Same result.

Some more background info on my mlt installation: I used to work with mlt 0.5.4 and kdenlive 0.7.7, both installed via the gentoo software management (emerge from portage tree). Unfortunately, mlt 0.5.10 and kdenlive 0.7.8 are not in the portage tree yet, not even in the unstable branch. Looks like nobody has prepared an ebuild yet. (BTW: Does anyone know how to push this process?)

So I thought I could keep mlt 0.5.4 and kdenlive 0.7.7 in /usr (don't want to break my working system) and install mlt 0.5.10 and kdenlive 0.7.8 in /usr/local. Linux and especially Gentoo is meant to be able to deal with different versions. Installing mlt in /usr/local was easy, but kdenlive cmake found the 0.5.4 version in /usr first. I am not familiar with cmake, I prefer the good old configure scripts with options like --mlt-path=/usr/local. How is that done with cmake, how can I tell it that the mlt install path is /usr/local? Anyway, I uninstalled mlt 0.5.4 via the Gentoo software management, I can re-install it later if I need to. Shouldn't the output of cmake show something behind "-- MLT install path:"? I'd guess I only have to pass the right path somehow instead of relying on cmake's search capabilities. Or is my mlt install incomplete somehow?

So this situation makes it plausible that cmake cached some information about the old mlt. But as mentioned above I retried with clean, freshly-untarred kdenlive sources, same result.

I don't know if this is related, but the file CMakeError.log ends with these lines:
/usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.c.o -o
cmTryCompileExec -rdynamic -lpthreads
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpthreads
collect2: ld gab 1 als Ende-Status zurück
gmake[1]: Leaving directory `/scratch/kdenlive-0.7.8/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec] Fehler 1
gmake: *** [cmTryCompileExec/fast] Fehler 2

BTW, my kdenlive 0.7.7 installation works "almost" now (after setting the mlt-path to /usr/local), but this might be because it was compiled with mlt 0.5.4 and uses mlt 0.5.10 now.

Cheers

Chamo
Chamo
Registered Member
Posts
27
Karma
0
Sorry, sorry! My bad!
I somehow missed the option --with-gpl for the mlt configure script. And I admit I should have found this out earlier.
All the installation was fine now.
Sorry again for bothering you with that.
boggiano
Registered Member
Posts
5
Karma
0
OS
I'm on Fedora 13, and I'd like to try kdenlive 0.7.8 myself.
I have the same your problem but I'd like to compile and install mlt/kdenlive as user ( it means that I'd like to install the libs and package in my home).
I compiled mlt and I have installed it in /home/user/mlt-5.10 but kdenlive (same as you) finds only the 0.5.4.
What did you exactly ?
Thanks!
ttill
Registered Member
Posts
372
Karma
0
Have a look at this two threads:
http://kdenlive.org/forum/kdenlive-0771-and-078-simultaneously
http://kdenlive.org/forum/parallel-installation-sources-and-packet-manager-same-system


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]