Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000044KdenliveUser Interfacepublic2007-11-26 02:282008-10-23 00:22
ReporterEspinosa 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000044: Build failure - FFmpeg and Mlt++ are not checked ans set properly
DescriptionBuild failure - FFmpeg and Mlt++ are not checked and set properly in CMake script. This behaviour is blocking kdenlive build script. It is possible that this bug appears only in case of non-default directories as they are used in Kdenlive_build_script.

Interstin gpoint: MLT and KDE libs/includes are fine. MLT++ and FFmpeg are not.

See cmake output:

[espinosa@pavilon kdenlive]$ cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DCMAKE_BUILD_TYPE=debugfull .
-- Found MLT INSTALL PATH: /home/espinosa/build/kdenlive/bin/mlt-config , /home/espinosa/build/kdenlive
-- Found MLT INCLUDES: /home/espinosa/build/kdenlive/include/mlt
-- Found MLT LIBR: /home/espinosa/build/kdenlive/lib/libmlt.so
-- Found MLT library: /home/espinosa/build/kdenlive/lib/libmlt.so
MLT Library Found OK
-- Found KDE3 include dir: /usr/include
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Configuring done
-- Generating done
-- Build files have been written to: /home/espinosa/src/kdenlive

And here is error message (build error):

[ 13%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/krender.o
/home/espinosa/src/kdenlive/kdenlive/krender.cpp:28:29: error: ffmpeg/avformat.h: No such file or directory
/home/espinosa/src/kdenlive/kdenlive/krender.cpp:33:23: error: mlt++/Mlt.h: No such file or directory
...

Additional InformationKdenlive SVN revision 1736.
TagsNo tags attached.
Build/Install Method
Attached Files

- Relationships

-  Notes
(0000069)
administrator (administrator)
2007-11-26 21:52

I just commited a change (rev. 1737) to the build system, can you please check if it solved the bug ?
(0000070)
Espinosa (reporter)
2007-11-27 01:03

Sorry, the same result :(

FFmpeg seems not to be set or test or at least nothing is printed about it from cmake. See the output:

[espinosa@pavilon kdenlive]$ svn update
At revision 1738.
[espinosa@pavilon kdenlive]$ cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DCMAKE_BUILD_TYPE=debugfull .
-- Found MLT INSTALL PATH: /home/espinosa/build/kdenlive/bin/mlt-config , /home/espinosa/build/kdenlive
-- Found MLT INCLUDES: /home/espinosa/build/kdenlive/include/mlt
-- Found MLT LIBR: /home/espinosa/build/kdenlive/lib/libmlt.so
-- Found MLT library: /home/espinosa/build/kdenlive/lib/libmlt.so
MLT Library Found OK
-- Found KDE3 include dir: /usr/include
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Configuring done
-- Generating done
-- Build files have been written to: /home/espinosa/src/kdenlive

....

[ 53%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/krender.o
/home/espinosa/src/kdenlive/kdenlive/krender.cpp:28:29: error: ffmpeg/avformat.h: No such file or directory
/home/espinosa/src/kdenlive/kdenlive/krender.cpp:33:23: error: mlt++/Mlt.h: No such file or directory

..it stopped at 53%, this is only visible difference (well I don't know if it really means something)
(0000071)
Espinosa (reporter)
2007-11-27 01:04

just to add my cmake version

[espinosa@pavilon kdenlive]$ cmake --version
cmake version 2.4-patch 7
(0000072)
administrator (administrator)
2007-11-27 19:09

The value for the MLT include was cached from a previous run of cmake. Please remove the file CMakeCache.txt in the source directory and run cmake again, it should work better.

I will nonetheless try to improve it so that it prints a message for each library.
(0000073)
administrator (administrator)
2007-11-27 19:49
edited on: 2007-11-27 20:10

Should be fine now (but you still need to delete your CMakeCache.txt)

You can override the detected path for MLT, MLT++ and FFMPEG by using the following variables in the cmake command line:

-DLIBFFMPEG_INCLUDE_DIR=path to your ffmpeg includes
-DLIBFFMPEG_LIBRARY=path to your libavformat.so
-DLIBMLT_INCLUDE_DIR=path to your mlt includes
-DLIBMLT_LIBRARY=path to your libmlt.so
-DLIBMLTPLUS_INCLUDE_DIR=path to your mlt++ includes
-DLIBMLTPLUS_LIBRARY=path to your libmlt++.so

Hope it helps.

(0000075)
Espinosa (reporter)
2007-11-30 00:07

We are ALMOST there ;)

[espinosa@pavilon kdenlive]$ cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DCMAKE_BUILD_TYPE=debugfull .
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Found MLT INSTALL PATH: /home/espinosa/build/kdenlive/bin/mlt-config , /home/espinosa/build/kdenlive
-- Found MLT INCLUDES: /home/espinosa/build/kdenlive/include/mlt
-- Found MLT LIBR: /home/espinosa/build/kdenlive/lib/libmlt.so
-- Found MLT library: /home/espinosa/build/kdenlive/lib/libmlt.so
-- Found MLT++ INCLUDES: /home/espinosa/build/kdenlive/include
-- Found MLT++ LIBR: /home/espinosa/build/kdenlive/lib/libmlt++.so
-- Found MLT++ library: /home/espinosa/build/kdenlive/lib/libmlt++.so
-- Found FFMPEG INCLUDES: /home/espinosa/build/kdenlive/include
-- Found FFMPEG LIBR: /home/espinosa/build/kdenlive/lib/libavformat.so
-- Found FFMPEG library: /home/espinosa/build/kdenlive/lib/libavformat.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found KDE3 include dir: /usr/include
-- Found KDE3 library dir: /usr/lib
-- Found KDE3 dcopidl preprocessor: /usr/bin/dcopidl
-- Found KDE3 dcopidl2cpp preprocessor: /usr/bin/dcopidl2cpp
-- Found KDE3 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Configuring done
-- Generating done
-- Build files have been written to: /home/espinosa/src/kdenlive

Cool, impressive.

Compilation finished OK but linker throws error now :(

Linking CXX executable kdenlive
/usr/bin/ld: cannot find -lmlt++
collect2: ld returned 1 exit status
make[2]: *** [kdenlive/kdenlive] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2

I dind't try to set any of -D variables.

P.S.
Should I delete CMakeCache.txt every time after svn update was called?
It would need to update kdenlive build script accordingly.
(0000076)
administrator (administrator)
2007-12-02 09:26

OK, fixed now, at least works on my system.
Yes, I think it may be a good idea to delete the CMakeCache.txt before attempting to recompile.

regards
(0000082)
Espinosa (reporter)
2007-12-02 15:09

Unfortunatelly, still failing in 98%

[espinosa@pavilon kdenlive]$ pwd
/home/espinosa/src/kdenlive
[espinosa@pavilon kdenlive]$ export DEST_DIR=~/build/kdenlive
[espinosa@pavilon kdenlive]$ export PATH=$DEST_DIR/bin:$PATH
[espinosa@pavilon kdenlive]$ export LD_RUN_PATH=../lib
[espinosa@pavilon kdenlive]$ rm -f CMakeCache.txt
[espinosa@pavilon kdenlive]$ cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DCMAKE_BUILD_TYPE=debugfull .
.
.
-- Found MLT++ INCLUDES: /home/espinosa/build/kdenlive/include
-- Found MLT++ LIBR: /home/espinosa/build/kdenlive/lib/libmlt++.so
-- Found MLT++ library: /home/espinosa/build/kdenlive/lib/libmlt++.so
.
.
.
[espinosa@pavilon kdenlive]$ make
.
.
.
[ 98%] Building CXX object kdenlive/CMakeFiles/kdenlive.dir/kdenlivesettings.o
/usr/lib/qt3/include/qptrlist.h: In member function ‘void QPtrList<type>::deleteItem(void*) [with type = KConfigBackEnd]’:
/home/espinosa/src/kdenlive/kdenlive/kdenlivesettings.cpp:218: instantiated from here
/usr/lib/qt3/include/qptrlist.h:150: warning: possible problem detected in invocation of delete operator:
/usr/lib/qt3/include/qptrlist.h:150: warning: invalid use of undefined type ‘struct KConfigBackEnd’
/usr/include/kconfigbase.h:38: warning: forward declaration of ‘struct KConfigBackEnd’
/usr/lib/qt3/include/qptrlist.h:150: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
Linking CXX executable kdenlive
/usr/bin/ld: cannot find -lmlt++
collect2: ld returned 1 exit status
make[2]: *** [kdenlive/kdenlive] Error 1
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2

Hmm may be the LD_RUN_PATH settings may affect build. CMake clearly found the library, see cmake output, but not the linker. Strange..
(0000083)
Espinosa (reporter)
2007-12-02 15:39

cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DLIBMLTPLUS_LIBRARY=$DEST_DIR/lib/libmlt++.so .

didn't help neither :( The same error.
(0000084)
administrator (administrator)
2007-12-02 17:55

This time I think I got it right, at least I removed all mlt stuff, installed in a non standard place and got everything compiling fine... please confirm if I can close the bug
(0000087)
Espinosa (reporter)
2007-12-02 20:12

Eureka! This time it passed. Builded Kdenlive works as well.
You can close this bug. Good work. Thanks

- Issue History
Date Modified Username Field Change
2007-11-26 02:28 Espinosa New Issue
2007-11-26 21:52 administrator Note Added: 0000069
2007-11-27 01:03 Espinosa Note Added: 0000070
2007-11-27 01:04 Espinosa Note Added: 0000071
2007-11-27 19:09 administrator Note Added: 0000072
2007-11-27 19:49 administrator Note Added: 0000073
2007-11-27 20:10 administrator Note Edited: 0000073
2007-11-30 00:07 Espinosa Note Added: 0000075
2007-12-02 09:26 administrator Note Added: 0000076
2007-12-02 15:09 Espinosa Note Added: 0000082
2007-12-02 15:39 Espinosa Note Added: 0000083
2007-12-02 17:55 administrator Note Added: 0000084
2007-12-02 20:12 Espinosa Note Added: 0000087
2007-12-02 20:16 administrator Status new => resolved
2007-12-02 20:16 administrator Resolution open => fixed
2008-10-23 00:22 madsdyd Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker