[Kdenlive-devel] SVN version build problems

Aleksander Adamowski aleksander.adamowski at olo.org.pl
Mon May 21 23:40:16 UTC 2007


Hi!

When trying to build kdenlive from sources (SVN revision 1525), I've
noticed that the includes in  trackviewvideobackgrounddecorator.cpp
and krender.cpp are incorrect for my system.

I've followed the building instructions from
http://en.wikibooks.org/wiki/Kdenlive/Getting_and_installing#Installing_from_SVN
(with the addition of mlt++ installation as it's omitted there).
The prefix for all the libs is /usr.
I'm using unsermake.

After mlt and mlt++ installation MLT headers landed in
/usr/include/mlt/framework.

When building kdenlive, preprocessor bombs out because it cannot
locate Mlt.h (notice the capital M):

error: mlt++/Mlt.h: No such file or directory

I've changed the includes to match my system:

Index: kdenlive/trackviewvideobackgrounddecorator.cpp
===================================================================
--- kdenlive/trackviewvideobackgrounddecorator.cpp      (revision 1525)
+++ kdenlive/trackviewvideobackgrounddecorator.cpp      (working copy)
@@ -26,7 +26,7 @@
 #include <qimage.h>
 #include <iostream>

-#include <mlt++/Mlt.h>
+#include <mlt/framework/mlt.h>


 namespace Gui {
Index: kdenlive/krender.cpp
===================================================================
--- kdenlive/krender.cpp        (revision 1525)
+++ kdenlive/krender.cpp        (working copy)
@@ -30,7 +30,7 @@

 // ffmpeg Header files

-#include <mlt++/Mlt.h>
+#include <mlt/framework/mlt.h>

 #include <qcolor.h>
 #include <qpixmap.h>


Now the build proceeds further, but it bombs out with another,
source-level error:

compiling /home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp
g++ -DHAVE_CONFIG_H -I./kdenlive
-I/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive
-I. -I/usr/include/kde -I/usr/share/qt3/include -I. -I/usr/include
-I/usr/include/mlt -D_REENTRANT -D__STDC_CONSTANT_MACROS
-DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall
-W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -c
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp
-o ./kdenlive/trackviewvideobackgrounddecorator.o
-Wp,-MD,./kdenlive/.deps/trackviewvideobackgrounddecorator.TUo
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:
In member function 'virtual void
Gui::TrackViewVideoBackgroundDecorator::paintClip(double, double,
QPainter&, DocClipRef*, QRect&, bool)':
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:93:
warning: converting to 'int' from 'double'
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:96:
warning: converting to 'int' from 'double'
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:101:
error: variable 'Mlt::Producer m_producer' has initializer but
incomplete type
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:108:
error: variable 'Mlt::Filter m_convert' has initializer but incomplete
type
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:118:
error: invalid use of undefined type 'struct Mlt::Frame'
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/kthumb.h:42:
error: forward declaration of 'struct Mlt::Frame'
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:122:
warning: possible problem detected in invocation of delete operator:
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:116:
warning: 'frame' has incomplete type
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/kthumb.h:42:
warning: forward declaration of 'struct Mlt::Frame'
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:122:
note: neither the destructor nor the class-specific operator delete
will be called, even if they are declared when the class is defined.
/home/opt/soft/Graphics/KDEnlive/SVN/build/2007-05-21/kdenlive/kdenlive/trackviewvideobackgrounddecorator.cpp:98:
warning: unused variable 'drawWidth'
Error creating ./kdenlive/trackviewvideobackgrounddecorator.o. Exit status 1.
make: *** [all] Error 1


Any ideas?

--
Best Regards,
  Olo




More information about the Kdenlive mailing list