Compile error, revision [1997], help

Cmake worked ok and made the make files, then make runs fine upto 41% and I get this output,

[ 40%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/clipdrag.o
[ 41%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/clipmanager.o
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:800:2: warning: #warning "This might blow up spectacularly - this implementation does not check"
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:801:2: warning: #warning "and clean up any references to said clips."
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:866:2: warning: #warning - to be written
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:885:2: warning: #warning - to be written
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:892:2: warning: #warning - to be written.
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:942:2: warning: no newline at end of file
/home/mridul/Projects/SVN/kdenlive/kdenlive/./initeffects.h:40: error: ISO C++ forbids declaration of ‘Repository’ with no type
/home/mridul/Projects/SVN/kdenlive/kdenlive/./initeffects.h:40: error: invalid use of ‘::’
/home/mridul/Projects/SVN/kdenlive/kdenlive/./initeffects.h:40: error: expected ‘;’ before ‘*’ token
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:42: warning: unused parameter ‘parent’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:42: warning: unused parameter ‘name’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:319: warning: unused parameter ‘pix’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:411: warning: unused parameter ‘thumbnailFrame’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:535: warning: unused parameter ‘extension’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: In member function ‘QValueList ClipManager::virtualZones()’:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:741: warning: passing ‘double’ for argument 1 to ‘QPoint::QPoint(int, int)’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:741: warning: passing ‘double’ for argument 2 to ‘QPoint::QPoint(int, int)’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: In member function ‘DocClipBase* ClipManager::findClip(const KURL&)’:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:752: warning: unused variable ‘avClip’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: At global scope:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:864: warning: unused parameter ‘file’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:883: warning: unused parameter ‘clip’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: In member function ‘DocClipBase* ClipManager::addTemporaryClip(const KURL&)’:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:909: warning: passing ‘double’ for argument 1 to ‘void Timecode::setFormat(int, bool, Timecode::Formats)’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: At global scope:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:925: warning: unused parameter ‘frame’
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp: In member function ‘void ClipManager::refreshThumbNails()’:
/home/mridul/Projects/SVN/kdenlive/kdenlive/clipmanager.cpp:935: warning: unused variable ‘result’
make[2]: *** [kdenlive/CMakeFiles/kdenlive.dir/clipmanager.o] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2

What Could be wrong?

Thanks

do you have mlt++ (latest) installed ?

which version of gcc/g++ you have ?

How do I check for installation of mlt?

GCC version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Ok, from Synaptic package manager I found the mlt installation.

Mlt++ is installed with version libmlt++ 0.2.4~svn1024-0ubuntu2

ok that's why you get this error

in svn verson 1024 was no Mlt::Repository and so you get this error

please update to a newer version of mlt/mlt++. kdenlive need in kde3 and kde4 version newer version to compile

thanks, it worked.

But now, mlt++ is giving me problems,

it builds and installs correctly, but when I compile kdenlive, it shows;

[ 40%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/avfilelist.o
[ 40%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/aviconviewitem.o
/usr/local/include/mlt++/MltRepository.h:39: error: ‘mlt_repository’ does not name a type
/usr/local/include/mlt++/MltRepository.h:43: error: expected `)' before ‘repository’
/usr/local/include/mlt++/MltRepository.h:46: error: ‘mlt_register_callback’ has not been declared
/usr/local/include/mlt++/MltRepository.h:52: error: ‘mlt_metadata_callback’ has not been declared
make[2]: *** [kdenlive/CMakeFiles/kdenlive.dir/aviconviewitem.o] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2

Please help me on this

this is not the latest mlt/mlt++

please compile again (mlt uses sometimes includes from /usr/include instead of local, but i dont think that it would compile then for you )

you can look in usr/include/mlt++/MltRepository.h (i present) if there is something in

also in /usr/include/mlt/ml_repository.h

Thank you for helping me.

Compiling finally worked, I used the builder script with correct options and it worked.
I was just using ./configure without any options, seems like that was the problem.

I'm having the same problem. As far as i can figure the corect confige for line is

cd mlt++
./configure --prefix=/usr

Is this correct or what did you uses to configure MLT++?
thanks

-prefix=/usr is only needed if you want to install this (the app kdenlive should find the libs libmlt++.so, so it is better to put it in a place that your system will look for it)

you can put it wherever you want, but if not in /usr make sure LD_LIBRARY_PATH contains this path.

if you try to use the latest svn versions, you can also use the build_scriptfor this, that is available in this forum i think

OK, I am officially confused. MLT++ on sourceforge is up to version 0.2.2 and mlt is up to 0.2.4. I have downloaded, compiled and installed both and make is still failing with the following;

make[2]: *** [kdenlive/CMakeFiles/kdenlive.dir/clipmanager.o] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2

Something is decidedly not happy about the environment and is giving scant clues as to what it doesn't like. Can anyone get me pointed in the right direction?

I am running kubuntu 7.04.