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

mlt++ compile error MltConsumer

Tags: None
(comma "," separated)
diffid
Registered Member
Posts
40
Karma
0

mlt++ compile error MltConsumer

Thu Dec 11, 2008 8:34 pm

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

 




 



j-b-m
Registered Member
Posts
804
Karma
1

Re: mlt++ compile error MltConsumer

Fri Dec 12, 2008 12:48 pm
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_drupal
Registered Member
Posts
735
Karma
0

Re: mlt++ compile error MltConsumer

Fri Dec 12, 2008 2:27 pm

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
Registered Member
Posts
40
Karma
0

Re: mlt++ compile error MltConsumer

Sat Dec 13, 2008 9:28 pm

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_drupal
Registered Member
Posts
735
Karma
0

Re: mlt++ compile error MltConsumer

Sat Dec 13, 2008 10:54 pm

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/installing-source


Sorry for the inconvenience.

Jean-Michel

diffid
Registered Member
Posts
40
Karma
0

Re: mlt++ compile error MltConsumer

Sat Dec 13, 2008 11:44 pm

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
Registered Member
Posts
1315
Karma
1

Re: mlt++ compile error MltConsumer

Sun Dec 14, 2008 7:49 am

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
Registered Member
Posts
40
Karma
0

Re: mlt++ compile error MltConsumer

Mon Dec 15, 2008 10:09 pm

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
Moderator
Posts
247
Karma
0

Re: mlt++ compile error MltConsumer

Wed Jan 21, 2009 11:24 am

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


Simon



Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]