Skip to main content

mlt++ compile error MltConsumer

9 posts / 0 new
Last post
diffid
Offline
Joined: 06/29/2007
Posts:
mlt++ compile error MltConsumer

g++ -pthread -Wall -fPIC -D_REENTRANT -I/usr/local/include -I/usr/local/include/mlt     -c -o MltConsumer.o MltConsumer.cpp
/usr/local/include/mlt/framework/mlt_factory.h: In constructor ‘Mlt::Consumer::Consumer()’:
/usr/local/include/mlt/framework/mlt_factory.h:34: error: too many arguments to function ‘mlt_consumer_s* mlt_factory_consumer(const char*, void*)’
MltConsumer.cpp:31: error: at this point in file
MltConsumer.cpp: In constructor ‘Mlt::Consumer::Consumer(Mlt::Profile&)’:
MltConsumer.cpp:37: error: cannot convert ‘mlt_profile_s*’ to ‘const char*’ for argument ‘1’ to ‘mlt_consumer_s* mlt_factory_consumer(const char*, void*)’
MltConsumer.cpp: In constructor ‘Mlt::Consumer::Consumer(Mlt::Profile&, char*, char*)’:
MltConsumer.cpp:45: error: cannot convert ‘mlt_profile_s*’ to ‘const char*’ for argument ‘1’ to ‘mlt_consumer_s* mlt_factory_consumer(const char*, void*)’
MltConsumer.cpp:54: error: cannot convert ‘mlt_profile_s*’ to ‘const char*’ for argument ‘1’ to ‘mlt_consumer_s* mlt_factory_consumer(const char*, void*)’
MltConsumer.cpp:59: error: cannot convert ‘mlt_profile_s*’ to ‘const char*’ for argument ‘1’ to ‘mlt_consumer_s* mlt_factory_consumer(const char*, void*)’
MltConsumer.cpp: In member function ‘int Mlt::Consumer::run()’:
MltConsumer.cpp:131: warning: deprecated conversion from string constant to ‘char*’
make[1]: *** [MltConsumer.o] Error 1
 

 

0
Your rating: None
j-b-m
Offline
Joined: 05/19/2009
Posts:
Re: mlt++ compile error MltConsumer

I think you are trying to install MLT++ but have an older MLT version installed on your system. MLT++ is looking for MLT in /usr/locale/include.

Please make sure to install MLT and MLT++ that have the same version number (currently 0.3.2 is latest stable release). You can try to remove the mlt folder in /usr/local/include and the libmlt* in /usr/locale/lib, then reinstall MLT and MLT++

regards

jmpoure
Offline
Joined: 10/20/2008
Posts:
Re: mlt++ compile error MltConsumer

Don't forget to remove /usr/local/lib/pkgconfig/mlt... and /usr/lib/pkgconfig/mlt... I know this sounds a little bit confusing, but this is the source of many installation problems.

diffid
Offline
Joined: 06/29/2007
Posts:
Re: mlt++ compile error MltConsumer

Thanks guys, deleting the /usr/lib/pkgconfig/mlt.... files, now mlt & mlt++ both make now.
Next problem, just kdenlive to go HOWEVER the 'compiling from source' sticky link is now dead so I can't follow the instructions to download kdenlive from svn or how to build it.
The compiling instructions were there a day or so ago.
Can you please direct me to where the build instructions are now. :-)
Thanks

jmpoure
Offline
Joined: 10/20/2008
Posts:
Re: mlt++ compile error MltConsumer

Sorry, I was working on the doc.

Have a look in the top menu :
Click download, then click install from sources:
http://www.kdenlive.org/user-manual/downloading-and-installing-packages/...
Sorry for the inconvenience.
Jean-Michel

diffid
Offline
Joined: 06/29/2007
Posts:
Re: mlt++ compile error MltConsumer

Jean-Michel
 
Thanks, no inconvenience at all, we're all very pleased to have a promising NLE for Linux. :-)
 
I've rebuilt everything now, successfully, but on start up after choosing a format / new file kdenlive crashes with:
 
kbuildsycoca running...
mlt_repository.c, mlt_repository_init: failed to dlopen /usr/lib/mlt/libmltavformat.so
KCrash: Application 'kdenlive' crashing...
Could not find 'drkonqi' executable.
KCrash cannot reach kdeinit, launching directly.
 
:-(
 

ddennedy
ddennedy's picture
Offline
Joined: 06/26/2007
Posts:
Re: mlt++ compile error MltConsumer

Have you tried to use the kdenlive_builder_wizard yet and just target a place in your home dir (as opposed to /usr/local)? It will create a more isolated environment and avoid linking or loading from wrong versions.

diffid
Offline
Joined: 06/29/2007
Posts:
Re: mlt++ compile error MltConsumer

Dan
 
Thanks for the suggestion, I was going to pass kdenlive by again as I've just had so much trouble trying to compile from svn since 0.5 but I gave the script a try and success of coarse. :-) Really great script congrats to those creating it. :-)
 
I was able to render out a DV Wide progressive video from the HDV source material which was my initial goal, so I'm really pleased. :-)
 
Thanks again

Granjow
Granjow's picture
Offline
Joined: 12/24/2008
Posts:
Re: mlt++ compile error MltConsumer

Just had the same problem too after compiling the source; worked after removing the libraries! Thanks!

Simon