Problem Compile svn revision 1678 [Fixed]

Downloaded rev. 1678 today and I get an error when try to make.
Did as follow.
bootstrap
./configure
make (FAILS)
--This is the output I get.

In file included from kdenlive.cpp:113:
trackpanelclipmovefunction.h:166:2: warning: #warning - The following method is a bad example for programming design.
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::parseProfiles()’:
kdenlive.cpp:271: error: ‘MLT_PREFIX’ was not declared in this scope
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::setProjectFormat(QString)’:
kdenlive.cpp:2126: warning: passing ‘double’ for argument 1 to ‘static void KdenliveSettings::setDisplaywidth(int)’
kdenlive.cpp:2127: warning: passing ‘double’ for argument 1 to ‘static void KdenliveSettings::setDisplaywidth(int)’
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::slotSetClipDuration()’:
kdenlive.cpp:3262: warning: unused variable ‘ok’
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::slotProjectDeleteClips(QStringList)’:
kdenlive.cpp:3436: warning: unused variable ‘refClip’
make[2]: *** [kdenlive.o] Error 1
make[2]: Leaving directory `/home/rohnny/kdenlive/kdenlive/kdenlive'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rohnny/kdenlive/kdenlive'

Regards Rohnny

Do you have MLT installed ? What is the output of the following command:
mlt-config --prefix

regards

Yes I should have mlt.
The command outputed this.
-snip
$ mlt-config --prefix
/usr/local
--snap

Regards Rohnny

Picted up 1679 and it went out with the same error

kdenlive.cpp: In member function ‘void Gui::KdenliveApp::slotSetClipDuration()’:
kdenlive.cpp:3265: warning: unused variable ‘ok’
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::slotProjectDeleteClips(QStringList)’:
kdenlive.cpp:3439: warning: unused variable ‘refClip’
make[2]: *** [kdenlive.o] Error 1

So I did remarked it out.
--snip
//DocClipRef *refClip;
--snap
Then I got this error

denlive.cpp:2127: warning: passing ‘double’ for argument 1 to ‘static void KdenliveSettings::setDisplaywidth(int)’
kdenlive.cpp: In member function ‘void Gui::KdenliveApp::slotSetClipDuration()’:
kdenlive.cpp:3265: warning: unused variable ‘ok’
make[2]: *** [kdenlive.o] Error 1
make[2]: Leaving directory `/home/rohnny/kdenlive/kdenlive/kdenlive'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rohnny/kdenlive/kdenlive'
make: *** [all] Error 2

Remarked out this.

--snip
//bool ok;
--snap

Then I get this error.

kdenlive.cpp: In member function ‘void Gui::KdenliveApp::setProjectFormat(QString)’:
kdenlive.cpp:2126: warning: passing ‘double’ for argument 1 to ‘static void KdenliveSettings::setDisplaywidth(int)’
kdenlive.cpp:2127: warning: passing ‘double’ for argument 1 to ‘static void KdenliveSettings::setDisplaywidth(int)’
make[2]: *** [kdenlive.o] Error 1
make[2]: Leaving directory `/home/rohnny/kdenlive/kdenlive/kdenlive'
make[1]: *** [all-recursive] Error 1

Hope this help clearing something out.

Regards Rohnny

Your problem is that Kdenlive doesn't seem to correctl detect MLT:
kdenlive.cpp:271: error: ‘MLT_PREFIX’ was not declared in this scope

When you update with svn, are you sure you do it from the root directory and not from the kdenlive subfolder ? there was a recent change to the file configure.in.in that should define the MLT_PREFIX variable.

Can you check that your configure.in.in file contains the following lines around line 30:

MLT_PATH=`mlt-config --prefix`
CXXFLAGS="$CXXFLAGS -DMLT_PREFIX=\\\"\"$MLT_PATH\"\\\""

Then try doing:
make -f Makefile.cvs;./configure;make

Let me know...

That line is on line #96.

if test -n "$MLT_CONFIG"; 
then
	vers=`$MLT_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
	if test -n "$vers" && test "$vers" -ge 0002004 
	then
		LIBMLT_LIBS="`$MLT_CONFIG --libs`"

		LIBMLT_RPATH=
		for args in $LIBMLT_LIBS; do
			case $args in
				-L*)
					LIBMLT_RPATH="$LIBMLT_RPATH $args"
					;;
			esac
		done

		LIBMLT_RPATH=`echo $LIBMLT_RPATH | sed -e "s/-L/-R/g"`
		LIBMLT_CFLAGS="`$MLT_CONFIG --cflags`"
-------------  HERE -----------------------
		MLT_PATH=`mlt-config --prefix`
		CXXFLAGS="$CXXFLAGS -DMLT_PREFIX=\\\"\"$MLT_PATH\"\\\""
	else
		AC_MSG_WARN([You need at least mlt 0.2.4])	
		HELP_SUBDIR=
	fi
fi	

Did the make -f Makefile.cvs;./configure;make
and the error turned out the same as before.

Configure goes ok all the way and says I should do the make. But here it stops.

Regards Rohnny

Which version of MLT is installed on your system ? Kdenlive needs MLT >= 0.2.4
That's probably the reason for your problem. I am just now adding a bigger warning if MLT version is lower...

regards

I got it no. Looks like I did not have the dev files (my mistake) :oops: . So I installed mlt and mlt++ along with the dev files. Did a make again and now it work. I started it with the following
kdenlive
kdenlive: + + YOUR MLT INSTALL WAS FOUND IN: /usr/local
kdenlive: Mlt inited
kdenlive: Creating new document
kdenlive: deleting contents...
kdenlive: Creating new document DONE
kdenlive: **************** INIT DOCUMENT VIEW ***************
kdenlive: + + CREATING CONSUMER WITH PROFILE: square_pal
kdenlive: + + CREATING CONSUMER WITH PROFILE: square_pal
kdenlive: / / /TITLE SIZE: 768x576
kdenlive: *** DOCUMENT adding clip: Text Clip

But it will not save my project. Same with the last version. The version before that did save but can't remember the version.

Thanks for the help and keep up the good work, this is the beste video editing software I have found.
I do miss roling text (like the movies) You know starring ...... scrolling from bottom to top.

Regards Rohnny

What do you mean: "it will not save my project" ???
Also, you can get a kind of title rolling with the Push transition.

regards

It will not save my project when I hit save button. I have a couple of projectname.kdenlive in the folder and it do not list these. So they will not open.
When I make a newone and want to save everything looks ok. When I try to quit kdenlive it will save again. The name are taken care of when I inserted on the first time I tried to save. So I hit the ok button. Everything looks ok again. But when I go into the folder where it should be nothing are saved.
When I try to open again nothing in is recent files.

Ill try the push transaction :D

Regards Rohnny

Picked up the latest version today on svn and deleted my .kde folder. Then I could save and load my projects again.

What the problem was I did not know but know it workes again. Thanks.

And the push transaction is very nice. :D

Thanks again for a very very good software.

Regards Rohnny