i want compile kdenlive with few steps!
PLEASE NOTE THIS IS NOT FOR NOOB!
Get the dependencies of kdenlive and freior
dpkg -s kdenlive | awk '/Depends: /{print}'
actually should be (this is kubuntu 11.04 but.. ) NOTE REMOVE KDENLIVE-DATA FROM THE LIST
kdebase-runtime, libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libkdecore5 (>= 4:4.4.95), libkdeui5 (>= 4:4.5.80), libkio5 (>= 4:4.3.4), libknewstuff3-4 (>= 4:4.4.0), libknotifyconfig4 (>= 4:4.3.4), libkrossui4 (>= 4:4.3.4), libmlt++3, libmlt4, libnepomuk4 (>= 4:4.3.4), libqimageblitz4 (>= 1:0.0.4), libqjson0, libqt4-dbus (>= 4:4.6), libqt4-network (>= 4:4.6), libqt4-opengl (>= 4:4.6), libqt4-svg (>= 4:4.6), libqt4-xml (>= 4:4.6), libqtcore4 (>= 4:4.7.0~beta1), libqtgui4 (>= 4:4.6.2), libstdc++6 (>= 4.2.1), libx11-6, libxau6, libxdmcp6, libxext6, melt, libmlt-data, ffmpeg, swh-plugins, dvgrab, recordmydesktop, dvdauthor, genisoimage, xine-ui
for the frior pluing
dpkg -s frei0r-plugins | awk '/Depends: /{print}'
you should get :
Depends: libc6 (>= 2.4), libcv2.1, libcvaux2.1, libgavl1 (>= 1.1.0), libgcc1 (>= 1:4.1.1), libhighgui2.1, libstdc++6 (>= 4.5)
these informations will be used to modify Cmakelist
Install what you need to compile it in few steps
sudo apt-get build-dep frei0r-plugins kdenlive melt libmlt3 libmlt++3 libmlt4 libmlt-data
Get the source
mkdir ~/kdenlivefolder; cd ~/kdenlivefolder ; svn co https://kdenlive.svn.sourceforge.net/svnroot/kdenlive/trunk/kdenlive ; git clone git://git.dyne.org/frei0r.git
Edit CMakeLists.txt for Freior
kate CMakeLists.txt
add this…
SET(MAJOR_VERSION 1)
SET(MINOR_VERSION 3)
SET(PATCH_VERSION "0+git10jun2011")
IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_SET_DESTDIR "on")
SET(CPACK_PACKAGING_INSTALL_PREFIX "/tmp")
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_DESCRIPTION "miinimalistic plugin API for video effects,")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "minimalistic plugin API for video effects, plugins collection frei0r is a minimalistic plugin API for video sources and filters. The behavior of the effects can be controlled from the host by simple parameters. The intent is to solve the recurring reimplementation or adaptation issue of standard effects. It is not meant as a generic API for all kinds of video applications.frei0r plugins are used by several projects (e.g.: LiVES, Veejay, Open Movie Editor, FreeJ, Pure Data Visual Junk Tools, MLT framework).This package contains a collection of plugins. Homepage: http://www.piksel.org/frei0r")
SET(CPACK_PACKAGE_VENDOR "Vendor")
SET(CPACK_PACKAGE_CONTACT "developer ")
SET(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.4), libcv2.1, libcvaux2.1, libgavl1 (>= 1.1.0), libgcc1 (>= 1:4.1.1), libhighgui2.1, libstdc++6 (>= 4.5)")
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
SET(CPACK_DEBIAN_PACKAGE_SECTION "kde")
SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
SET(CPACK_COMPONENTS_ALL Libraries ApplicationData)
INCLUDE(CPack)
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
Create the debian package
cd frei0r ; mkdir build ; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ;cpack ..
before installing if you get some errors about :”/usr/include/frei0r.h”
please remove
sudo apt-get remove frei0r-plugins-dev
and now the same for kdenlive
Edit CMakeLists.txt for kdenlive
kate CMakeLists.txt
ADD THIS TO THE END
SET(MAJOR_VERSION 0)
SET(MINOR_VERSION 8)
SET(PATCH_VERSION "1~peace2")
IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_SET_DESTDIR "on")
SET(CPACK_PACKAGING_INSTALL_PREFIX "/tmp")
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_DESCRIPTION "Video Editor made in qt")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "video editor packaged from peace ")
SET(CPACK_PACKAGE_VENDOR "Vendor")
SET(CPACK_PACKAGE_CONTACT "kdenlive developers ")
SET(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
SET(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${MAJOR_VERSION}.${MINOR_VERSION}.${CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "kdebase-runtime, libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libglu1-mesa | libglu1, libkdecore5 (>= 4:4.4.95), libkdeui5 (>= 4:4.5.80), libkio5 (>= 4:4.3.4), libknewstuff3-4 (>= 4:4.4.0), libknotifyconfig4 (>= 4:4.3.4), libkrossui4 (>= 4:4.3.4), libmlt++3, libmlt4, libnepomuk4 (>= 4:4.3.4), libqimageblitz4 (>= 1:0.0.4), libqjson0, libqt4-dbus (>= 4:4.6), libqt4-network (>= 4:4.6), libqt4-opengl (>= 4:4.6), libqt4-svg (>= 4:4.6), libqt4-xml (>= 4:4.6), libqtcore4 (>= 4:4.7.0~beta1), libqtgui4 (>= 4:4.6.2), libstdc++6 (>= 4.2.1), libx11-6, libxau6, libxdmcp6, libxext6, melt, libmlt-data, ffmpeg, swh-plugins, dvgrab, frei0r-plugins, recordmydesktop, dvdauthor, genisoimage, xine-ui")
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
SET(CPACK_DEBIAN_PACKAGE_SECTION "kde")
SET(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
SET(CPACK_COMPONENTS_ALL Libraries ApplicationData)
INCLUDE(CPack)
ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
Now create the debian package with
cd kdenlive ; mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr; cpack ..
BEFORE INSTALLING THE PACKAGE DO
sudo apt-get purge kdenlive kdenlive-data
or you will get :
error about overwritting icons and stuff like that
now you have all the stuff