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

Kdenlive for KDE4 compilation problem

Tags: None
(comma "," separated)
jmpoure_drupal
Registered Member
Posts
735
Karma
0

Kdenlive for KDE4 compilation problem

Sat Jul 05, 2008 10:05 am

Dear friends,



I checked out Kdenlive for KDE4 from SVN.

cmake:



Quote:
jmpoure@delld830:~/logiciels/kdenlive4/KDE4$ make

[ 0%] Building CXX object src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o

In file included from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/moc_transition.cpp:10,

from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/kdenlive_automoc.cpp:3:

/home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/../transition.h:73: error: ‘QLinearGradient’ does not name a type

make[2]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o] Erreur 1

make[1]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/all] Erreur 2

make: *** [all] Erreur 2



JMP
g.marco
Registered Member
Posts
87
Karma
0

seems your qt4 version has not QLinearGradient, which is part of the QtGui Module.



can you check if you have "/usr/include/qt4/QtGui/QLinearGradient" installed ?



jmpoure_drupal
Registered Member
Posts
735
Karma
0

g.marco wrote:
can you check if you have "/usr/include/qt4/QtGui/QLinearGradient" installed ?


Yes, it is installed.
g.marco
Registered Member
Posts
87
Karma
0

did you update to the latest kdenlive-svn version ?



lucio dix fixed that yesterday, and the error should not be in anymore.



if still, please report



jmpoure_drupal
Registered Member
Posts
735
Karma
0

g.marco wrote:
did you update to the latest kdenlive-svn version ?

lucio dix fixed that yesterday, and the error should not be in anymore.



if still, please report



Yes I update daily and tested tonight.

MLT is compiled from 20080706 SVN.

Latest version of Qt too.



The error message is:

cmake CMakeLists.txt 
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.0 (using /usr/bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.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
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_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 Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Found KDE 4.1 include dir: /usr/include
-- Found KDE 4.1 library dir: /usr/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found KDE4 automoc: /usr/bin/automoc4
-- Found MLT INSTALL PATH: /usr/bin/mlt-config , /usr
-- Found MLT INCLUDES: /usr/include/mlt
-- Found MLT LIBR: /usr/lib/libmlt.so
-- Found MLT library: /usr/lib/libmlt.so
-- Found MLT++ INCLUDES: /usr/include
-- Found MLT++ LIBR: /usr/lib/libmlt++.so
-- Found MLT++ library: /usr/lib/libmlt++.so
-- Found FFmpeg Libavformat includes: /usr/include/ffmpeg/libavformat
-- Found FFmpeg Libavformat library: /usr/lib/libavformat.so
-- Found msgfmt: /usr/bin/msgfmt
-- Found Soprano: /usr/lib/libsoprano.so
-- Found Soprano includes: /usr/include
-- Found Soprano Index: /usr/lib/libsopranoindex.so
-- Found Soprano Client: /usr/lib/libsopranoclient.so
-- Found NEPOMUK: /usr/lib/libnepomuk.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jmpoure/logiciels/kdenlive4/KDE4


make
[ 1%] Generating ui_clipdurationdialog_ui.h
Generating addclipcommand.moc
Generating complexparameter.moc
Generating mainwindow.moc
Generating effectslistview.moc
Generating kthumb.moc
Generating clipitem.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/addclipcommand.h:0: Warning: No relevant classes found. No output generated.
Generating kdenlivedoc.moc
Generating renderer.moc
Generating moveclipcommand.moc
Generating editeffectcommand.moc
Generating monitormanager.moc
Generating projectitem.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/editeffectcommand.h:0: Warning: No relevant classes found. No output generated.
/home/jmpoure/logiciels/kdenlive4/KDE4/src/moveclipcommand.h:0: Warning: No relevant classes found. No output generated.
/home/jmpoure/logiciels/kdenlive4/KDE4/src/projectitem.h:0: Warning: No relevant classes found. No output generated.
Generating projectlistview.moc
Generating monitor.moc
Generating effectstackview.moc
Generating resizeclipcommand.moc
Generating editguidecommand.moc
Generating trackview.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/resizeclipcommand.h:0: Warning: No relevant classes found. No output generated.
/home/jmpoure/logiciels/kdenlive4/KDE4/src/editguidecommand.h:0: Warning: No relevant classes found. No output generated.
Generating addmarkercommand.moc
Generating smallruler.moc
Generating statusbarmessagelabel.moc
Generating regiongrabber.moc
Generating recmonitor.moc
Generating renderwidget.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/addmarkercommand.h:0: Warning: No relevant classes found. No output generated.
Generating headertrack.moc
Generating kdenlivesettingsdialog.moc
Generating slideshowclip.moc
Generating addtimelineclipcommand.moc
Generating projectsettings.moc
Generating customruler.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/addtimelineclipcommand.h:0: Warning: No relevant classes found. No output generated.
Generating editkeyframecommand.moc
Generating profilesdialog.moc
Generating renderjob.moc
Generating clipdurationdialog.moc
Generating moveeffectcommand.moc
Generating clipproperties.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/moveeffectcommand.h:0: Warning: No relevant classes found. No output generated.
/home/jmpoure/logiciels/kdenlive4/KDE4/src/editkeyframecommand.h:0: Warning: No relevant classes found. No output generated.
Generating editfoldercommand.moc
Generating projectlist.moc
Generating moc_titlewidget.cpp
Generating effectslistwidget.moc
Generating labelitem.moc
Generating addfoldercommand.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/editfoldercommand.h:0: Warning: No relevant classes found. No output generated.
/home/jmpoure/logiciels/kdenlive4/KDE4/src/labelitem.h:0: Warning: No relevant classes found. No output generated.
Generating customtrackview.moc
Generating addeffectcommand.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/addfoldercommand.h:0: Warning: No relevant classes found. No output generated.
Generating markerdialog.moc
Generating moc_initeffects.cpp
Generating moc_transition.cpp
Generating moc_jogshuttle.cpp
/home/jmpoure/logiciels/kdenlive4/KDE4/src/addeffectcommand.h:0: Warning: No relevant classes found. No output generated.
Generating moc_transitionsettings.cpp
Generating moc_abstractclipitem.cpp
Generating moc_effectstackedit.cpp
Generating moc_graphicsscenerectmove.cpp
Generating moc_docclipbase.cpp
Generating moc_parameterplotter.cpp
Generating moc_clipmanager.cpp
[ 1%] Generating kdenlivesettings.h, kdenlivesettings.cpp
[ 2%] Generating kdenlivesettings.moc
/home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/kdenlivesettings.h:0: Warning: No relevant classes found. No output generated.
[ 3%] Generating ui_timeline_ui.h
[ 4%] Generating ui_monitor_ui.h
[ 5%] Generating ui_recmonitor_ui.h
[ 6%] Generating ui_colorclip_ui.h
[ 7%] Generating ui_slideshowclip_ui.h
[ 8%] Generating ui_configmisc_ui.h
[ 9%] Generating ui_configenv_ui.h
[ 10%] Generating ui_configdisplay_ui.h
[ 11%] Generating ui_configcapture_ui.h
[ 12%] Generating ui_effectlist_ui.h
[ 13%] Generating ui_effectstack_ui.h
[ 14%] Generating ui_profiledialog_ui.h
[ 15%] Generating ui_projectsettings_ui.h
[ 16%] Generating ui_keyframewidget_ui.h
[ 17%] Generating ui_constval_ui.h
[ 18%] Generating ui_listval_ui.h
[ 19%] Generating ui_wipeval_ui.h
[ 20%] Generating ui_boolval_ui.h
[ 21%] Generating ui_colorval_ui.h
[ 22%] Generating ui_titlewidget_ui.h
[ 23%] Generating ui_timelinebuttons_ui.h
[ 24%] Generating ui_renderwidget_ui.h
[ 25%] Generating ui_saveprofile_ui.h
[ 26%] Generating ui_transitionsettings_ui.h
[ 27%] Generating ui_configjogshuttle_ui.h
[ 28%] Generating ui_trackheader_ui.h
[ 29%] Generating ui_clipproperties_ui.h
[ 30%] Generating ui_markerdialog_ui.h
[ 31%] Generating ui_keyframedialog_ui.h
[ 31%] Building CXX object src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o
In file included from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/moc_transition.cpp:10,
from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/kdenlive_automoc.cpp:3:
/home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/../transition.h:75: error: field ‘m_gradient’ has incomplete type
make[2]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o] Erreur 1
make[1]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/all] Erreur 2
make: *** [all] Erreur 2
g.marco
Registered Member
Posts
87
Karma
0

ok this second output show different from the last, so this is the new version.



lucio made a little mistake when fixing that.

can you post the output of the corensponding line when using




make VERBOSE=1


g.marco
Registered Member
Posts
87
Karma
0

@lucio

the problem with the forward declarartion is, that it will not work as you rewrote it. you can do this only for pointers (it works for you , since another header includes QLinearGradient and so you have no error with that)



please convert your fix to use *m_gradient or put the QLinearGradient back into the header.



the problem to find not the header must be another, but first lets see the make output



jmpoure_drupal
Registered Member
Posts
735
Karma
0

Thanks Lucio and Marco,



I am using gcc 4.3 latest version from Debian SID.

Environment: Debian AMD 64 bits, Nvidia glx.



luciocorrea wrote:
Can you update and test now?


svn 2309:

[ 31%] Building CXX object src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o

In file included from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/moc_transition.cpp:10,

from /home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/kdenlive_automoc.cpp:3:

/home/jmpoure/logiciels/kdenlive4/KDE4/src/cmake_bindir/../transition.h:75: error: field ‘m_gradient’ has incomplete type

make[2]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/kdenlive_automoc.o] Erreur 1

make[1]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/all] Erreur 2

make: *** [all] Erreur 2
g.marco
Registered Member
Posts
87
Karma
0

because we have the include from another header file.



i dont know why it is missing on some systems, but when the m_gradient is no pointer, the include must be in the header file (you can see that the include comes fomr another file, because it did compile for also with the missing include)



jmpoure_drupal
Registered Member
Posts
735
Karma
0

Thanks to the latest fix, kdenlive compiles fine.



Now there is a problem with MLT:

Cannot find your MLT profile:
/usr/share/mlt/profiles


If I click cancel, Kdenlive will enter an infinite loop:

kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH:  ""
kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH: ""
kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH: ""
kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH: ""
kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH: ""
kdenlive(32125) MainWindow::parseProfiles: RESULTING MLT PATH: ""


When entering mlt profiles path:

/usr/lib/mlt/profiles



kdenlive
kdenlive(32323) DirectoryListThread::run: Failed to open dir: "/usr/l/mlt/profiles/"
kdenlive(32323) DirectoryListThread::run: Failed to open dir: "/usr/li/mlt/profiles/"
kdenlive(32323) MainWindow::parseProfiles: RESULTING MLT PATH: "/usr/lib/mlt/profiles/"
kdenlive(32323) MainWindow::parseProfiles: RESULTING MLT PATH: "/usr/lib/mlt/profiles/"
KCrash: Application 'kdenlive' crashing...
sock_file=/home/jmpoure/.kde4/socket-delld830/kdeinit4__0


kdenlive breaks.



MLT is from SVN 20080706.



Kind regards and thanks for you help.

Jean-Michel

jmpoure_drupal
Registered Member
Posts
735
Karma
0

Fixed thanks.

I will write a page on the wiki to explain howto compile.



Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], rockscient