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

Error when compiling kdenlive

Tags: None
(comma "," separated)
ottos
Registered Member
Posts
4
Karma
0

Error when compiling kdenlive

Sun Feb 09, 2014 8:47 am
I compile kdenlive using the script http://www.mltframework.org/bin/view/MLT/BuildScripts
(./build-kdenlive.sh )

cmake 2.8.8


......
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - found
CMake Error at src/CMakeLists.txt:70 (set_package_properties):
Unknown CMake command "set_package_properties".


-- Configuring incomplete, errors occurred!
ERROR: Unable to configure kdenlive
LOG: Process has finished. Reason: FAILURE Some kind of error occured: Unable to configure kdenlive

Help please !
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Error when compiling kdenlive

Sun Feb 09, 2014 6:08 pm
ottos wrote:I compile kdenlive using the script http://www.mltframework.org/bin/view/MLT/BuildScripts
(./build-kdenlive.sh )

cmake 2.8.8


......
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - found
CMake Error at src/CMakeLists.txt:70 (set_package_properties):
Unknown CMake command "set_package_properties".


-- Configuring incomplete, errors occurred!
ERROR: Unable to configure kdenlive
LOG: Process has finished. Reason: FAILURE Some kind of error occured: Unable to configure kdenlive

Help please !


There's a problem w/ that script. If your Linux installation does not have Nepomuk, the build script for KdenLive fails. What OS are you using?

Edit the CMakeLists.txt file to surround the set_package_properties command w/ an 'if' statement. It'll look like:

Code: Select all
if (NepomukCore_FOUND)
set_package_properties(NepomukCore PROPERTIES DESCRIPTION "The Nepomuk Core libraries" URL "http://www.kde.org" TYPE RECOMMENDED PURPOSE "Support for the Nepomuk semantic desktop system")
endif (NepomukCore_FOUND)


You can also edit the 'build_kdenlive.sh' script so that it does not download the software components or clean the directories.

Old code...

Code: Select all
function perform_action {
  trace "Entering perform_action @ = $@"
  # Test that may fail goes here, before we do anything
  if test 1 = "$USE_KDE4" ; then
    test_kde4_available
  fi
  if test 1 = "$GET" -a 1 = "$SOURCES_CLEAN"; then
    clean_dirs
  fi
 if test 1 = "$GET"; then
   get_all_sources
 fi
  if test 1 = "$COMPILE_INSTALL" ; then
...
...


Modified code: (commented out the calls to clean_dirs and get_all_sources - you could do the same by setting the variables tested in the if statements but I'm not enough of a script-wiz and too lazy to say how that is done)

Code: Select all
function perform_action {
  trace "Entering perform_action @ = $@"
  # Test that may fail goes here, before we do anything
  if test 1 = "$USE_KDE4" ; then
    test_kde4_available
  fi
#  if test 1 = "$GET" -a 1 = "$SOURCES_CLEAN"; then
#    clean_dirs
#  fi
# if test 1 = "$GET"; then
#   get_all_sources
# fi
  if test 1 = "$COMPILE_INSTALL" ; then
...
...


Also, since you've gotten to the point of building KdenLive all of the other requisite components have been built successfully. Therefore, you can also edit the script so that it only builds KdenLive.

Old code:

Code: Select all
function configure_compile_install_all {
  trace "Entering configure_compile_install_all @ = $@"
  feedback_status Configuring, compiling and installing all sources

  # Set some more vars for this operation
  log "Using install dir $FINAL_INSTALL_DIR"
  log "Found $CPUS cpus. Will use make -j $MAKEJ for compilation"

  # set global settings for all jobs
  export PATH="$FINAL_INSTALL_DIR/bin:$PATH"
  export LD_RUN_PATH="$FINAL_INSTALL_DIR/lib"
  export PKG_CONFIG_PATH="$FINAL_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"

  log Changing to $SOURCE_DIR
  cd $SOURCE_DIR || die "Unable to change to directory $SOURCE_DIR"
  for DIR in $SUBDIRS ; do
    configure_compile_install_subproject $DIR
  done
  feedback_status Done configuring, compiling and installing all sources
}


New code: (modified the call to configure_compile_install_subproject...)
Code: Select all
function configure_compile_install_all {
  trace "Entering configure_compile_install_all @ = $@"
  feedback_status Configuring, compiling and installing all sources

  # Set some more vars for this operation
  log "Using install dir $FINAL_INSTALL_DIR"
  log "Found $CPUS cpus. Will use make -j $MAKEJ for compilation"

  # set global settings for all jobs
  export PATH="$FINAL_INSTALL_DIR/bin:$PATH"
  export LD_RUN_PATH="$FINAL_INSTALL_DIR/lib"
  export PKG_CONFIG_PATH="$FINAL_INSTALL_DIR/lib/pkgconfig:$PKG_CONFIG_PATH"

  log Changing to $SOURCE_DIR
  cd $SOURCE_DIR || die "Unable to change to directory $SOURCE_DIR"
  for DIR in $SUBDIRS ; do
    configure_compile_install_subproject kdenlive
  done
  feedback_status Done configuring, compiling and installing all sources
}


Make a copy of your build_kdenlive.sh script, modify that one and run it. You may come up against another problem though but at least you'll be further along...!!!
ottos
Registered Member
Posts
4
Karma
0

Re: Error when compiling kdenlive

Sun Feb 09, 2014 7:36 pm
I have in the system ubuntu 10.10

Image
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Error when compiling kdenlive

Sun Feb 09, 2014 9:30 pm
ottos wrote:I have in the system ubuntu 10.10

Maybe it doesn't like the version. Ubu 10.10 is kinda old. Nepomuk also requires Soprano to be loaded. Check that just in case.

KdenLive will compile w/out Nepomuk though. If you look further down in the CMakeLists.txt file you'll see how they're testing for NepomukCore_FOUND.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Error when compiling kdenlive

Sun Feb 09, 2014 9:57 pm
In order to compile software, development packages are needed. What you have installed there are the runtime packages - which can only be used to execute already compiled software.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
ottos
Registered Member
Posts
4
Karma
0

Re: Error when compiling kdenlive

Mon Feb 10, 2014 8:44 am
bcooksley
In order to compile software, development packages are needed.

Ubuntu 10.10 has no nepomuk* - dev packages.

Thank you, Steve Guilford, for the advice on the correction of the script. So much more convenient.
But
...
-- Found OpenGL: /usr/lib/libGL.so
-- Found Soprano: /usr/include
-- Found SharedDesktopOntologies: /usr/share/ontology
-- Found Nepomuk: /usr/lib/libnepomuk.so
-- checking for module 'QJson>=0.5'
-- found QJson, version 0.7.1
-- Found QJSON: qjson;QtCore
-- Found LibV4L2: /usr/include
-- Looking for include file linux/input.h
-- Looking for include file linux/input.h - found
CMake Error at src/CMakeLists.txt:70 (set_package_properties):
Unknown CMake command "set_package_properties".


-- Configuring incomplete, errors occurred!
ERROR: Unable to configure kdenlive
LOG: Process has finished. Reason: FAILURE Some kind of error occured: Unable to configure kdenlive
--------------------


Ubuntu 10.10 does not have this package NepomukCore I commented out the line
#find_package(NepomukCore QUIET)
#set_package_properties(NepomukCore PROPERTIES DESCRIPTION....

The process went on, but now I have a new errors:
....
-----------------------------------------------------------------------------
-- Congratulations! All external packages have been found.
-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /home/dell/kdenlive/src/kdenlive
LOG: Done configuring kdenlive
LOG: Number of steps completed : 19
LOG: Building kdenlive - this could take some time
LOG: About to run command: make -j3
[ 0%] Generating index.cache.bz2
Generating sampleplugin.moc
Generating renderjob.moc
index.docbook:5: warning: failed to load external entity "dtd/kdex.dtd"
]>
^
index.docbook:6: parser error : Entity 'language' not defined
<book id="kdenlive" lang="&language;">
^
index.docbook:6: validity error : Validation failed: no DTD found !
<book id="kdenlive" lang="&language;">
^
index.docbook:18: parser error : Entity 'FDLNotice' not defined
<legalnotice>&FDLNotice;</legalnotice>
^
index.docbook:49: parser error : Entity 'eg' not defined
ial-videos-2011-ogv.tar.bz2</ulink>.</para></footnote>, and extract them to &eg;
^
....
....
make[2]: *** [doc/index.cache.bz2] Error 1
make[1]: *** [doc/CMakeFiles/doc-handbook.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 0%] [ 0%] Built target kdenlive_sampleplugin_automoc
Built target kdenlive_render_automoc
make: *** [all] Error 2
ERROR: Unable to build kdenlive
LOG: Process has finished. Reason: FAILURE Some kind of error occured: Unable to build kdenlive
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Error when compiling kdenlive

Mon Feb 10, 2014 9:48 am
Ubuntu 10.10 is likely too old - you'll need a newer version of KDE in order to be able to compile Kdenlive.
The language entities mentioned there are only included in newer versions of KDE - much like NepomukCore.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0

Re: Error when compiling kdenlive

Mon Feb 10, 2014 4:26 pm
As I said, the process will move on but probably reveal another problem.

The build script will run under Ubu 12.04 LTS with out any modifications. That is your best way forward.
ottos
Registered Member
Posts
4
Karma
0

Re: Error when compiling kdenlive

Mon Feb 10, 2014 5:40 pm
Steve Guilford wrote:As I said, the process will move on but probably reveal another problem.
The build script will run under Ubu 12.04 LTS with out any modifications. That is your best way forward.

;) No.
Does somebody have old deb- packages kdenlive 0.8.2 and mlt-0.7.6 from ppa:sunab/kdenlive-release (for maverick) yet ?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], lockheed, Sogou [Bot]