{"id":47854,"date":"2024-12-30T13:53:31","date_gmt":"2024-12-30T13:53:31","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47854"},"modified":"2025-08-19T16:23:01","modified_gmt":"2025-08-19T16:23:01","slug":"compile-kdenlive-source-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/12\/compile-kdenlive-source-ubuntu\/","title":{"rendered":"Compile Kdenlive (25.08 Updated) from Source in Ubuntu 25.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-36220\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/12\/kdenlive-icon1200.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This is a step by step guide shows how to compile the Kdenlive video editor 25.08.0 from source tarball in Ubuntu 25.04.<\/p>\n<p>The popular Kdenlive video editor dropped native <code>.deb<\/code> package support for Ubuntu since version 24.02. It now provides official <a href=\"https:\/\/flathub.org\/apps\/org.kde.kdenlive\" target=\"_blank\" rel=\"noopener\">Flatpak package<\/a> and <a href=\"https:\/\/kdenlive.org\/en\/download\/\" target=\"_blank\" rel=\"noopener\">AppImage<\/a> for universal Linux support.<\/p>\n<p>If you don&#8217;t like running it in sandbox environment, then you may choose to build it from source by yourself! And, here&#8217;s how to do the job for the most recent 25.04.0 release.<\/p>\n<div id=\"attachment_47769\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-47769\" class=\"size-large wp-image-47769\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-700x401.webp\" alt=\"\" width=\"610\" height=\"349\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-700x401.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-300x172.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-768x440.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-1536x880.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor-1320x756.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/kdenlive-video-editor.webp 1706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-47769\" class=\"wp-caption-text\">Kdenlive Video Editor<\/p><\/div>\n<p><!--more--><\/p>\n<p><b>NOTE: This tutorial does NOT work for Ubuntu 24.04 and earlier, because Kdenlive now requires Qt6 &gt;= 6.5.0.<\/b><\/p>\n<h3>Step 1: Install Build tool and dependency libraries:<\/h3>\n<p>Compile an app from source is NOT hard if you got all the required libraries properly installed, unless there&#8217;s a compiler bug in the app itself.<\/p>\n<p><b>1.<\/b> First, press <code>Ctrl+Alt+T<\/code> on keyboard to open up a terminal window. When it opens, run command to install the build tool, dependency libraries for build and run-time:<\/p>\n<pre>sudo apt install git debhelper pkg-kde-tools cmake extra-cmake-modules ffmpeg libavformat-dev libavcodec-dev libswresample-dev libavutil-dev pkgconf qt6-declarative-dev qt6-multimedia-dev qt6-networkauth-dev qt6-svg-dev libv4l-dev libkf6archive-dev libkf6bookmarks-dev libkf6codecs-dev libkf6crash-dev libkf6dbusaddons-dev libkf6filemetadata-dev libkf6iconthemes-dev libkf6newstuff-dev libkf6notifications-dev libkf6notifyconfig-dev libkf6purpose-dev libkf6solid-dev libkf6textwidgets-dev libkf6widgetsaddons-dev libkf6xmlgui-dev qml6-module-org-kde-desktop qml-module-org-kde-sonnet qml6-module-qtqml-models qml6-module-qtquick-window mediainfo<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47856\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps-700x256.webp\" alt=\"\" width=\"610\" height=\"223\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps-700x256.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps-300x110.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps-768x281.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-kdenlive-deps.webp 926w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2.<\/b> For Ubuntu 25.04, also run command below to install the MLT dependency libraries:<\/p>\n<pre>sudo apt install libmlt++-dev libmlt-dev<\/pre>\n<h3>Step 2: Download &amp; Build MLT 7.32.0 (Optional)<\/h3>\n<p><b>NOTE: This step is OPTIONAL if you use the system MLT library.<\/b><\/p>\n<p><b>1.<\/b> install dependency library for MLT, run command:<\/p>\n<pre>sudo apt install chrpath dh-python frei0r-plugins-dev imagemagick ladspa-sdk libarchive-dev libavdevice-dev libavformat-dev libdv4-dev libebur128-dev libexif-dev libfftw3-dev libgdk-pixbuf-2.0-dev libjack-jackd2-dev libmovit-dev libopencv-dev libpango1.0-dev qt6-5compat-dev librubberband-dev libsamplerate0-dev libsdl1.2-compat-dev libsdl2-dev libsox-dev libswscale-dev libvidstab-dev libvorbis-dev libxine2-dev libxml2-dev python3-dev swig<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47858\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps-700x247.webp\" alt=\"\" width=\"610\" height=\"215\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps-700x247.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps-300x106.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps-768x271.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/apt-mlt-deps.webp 926w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2.<\/b> Then, go to the Github releases page and download the source tarball:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/mltframework\/mlt\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">Download MLT (under Assets)<\/a><\/div>\n<\/div>\n<p><b>3.<\/b> Next, open your Downloads folder and click extract the source tarball. Then, right-click on source folder and click &#8220;<b>Open in Terminal<\/b>&#8221; to open a terminal window with the source as working directory.<\/p>\n<div id=\"attachment_49513\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-49513\" class=\"size-large wp-image-49513\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-mlt732-terminal-700x446.webp\" alt=\"\" width=\"610\" height=\"389\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-mlt732-terminal-700x446.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-mlt732-terminal-300x191.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-mlt732-terminal-768x489.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-mlt732-terminal.webp 1008w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-49513\" class=\"wp-caption-text\">open MLT source folder in terminal<\/p><\/div>\n<p><b>4.<\/b> Finally, run the commands below one by one to configure source, build, and install it into your system.<\/p>\n<ul>\n<li>First, create a <code>build<\/code> sub-folder and navigate into it:\n<pre>mkdir build &amp;&amp; cd build<\/pre>\n<\/li>\n<li>Then, configure the source via cmake command (see <code>CMakeLists.txt<\/code> file in source folder for description about the configure options):\n<pre>cmake .. -DMOD_GLAXNIMATE_QT6=ON -DMOD_QT6=ON -DMOD_KDENLIVE=ON -DSWIG_PYTHON=ON -DMOD_OPENCV=ON<\/pre>\n<p>The last command configured to install the MLT library into <code>\/usr\/local<\/code> directory. If you want to install it to <code>\/usr<\/code> directory, then add <code>-DCMAKE_INSTALL_PREFIX=\/usr<\/code> in the command.<\/li>\n<li>Finally, build and install mlt by running command:\n<pre>sudo make install<\/pre>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47857\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt-700x438.webp\" alt=\"\" width=\"610\" height=\"382\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt-700x438.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt-300x188.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt-768x480.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt-1320x825.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-mlt.webp 1507w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Step 3: Download &amp; Build Kdenlive<\/h3>\n<p>It seems that Kdenlive website does not provide download for source code. You need to go to the KDE project page for the source tarball.<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/invent.kde.org\/multimedia\/kdenlive\/-\/tags\" target=\"_blank\" rel=\"noreferrer noopener\">Download Kdenlive (Source)<\/a><\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49514\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/download-kdenlive2508-source-700x435.webp\" alt=\"\" width=\"610\" height=\"379\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/download-kdenlive2508-source-700x435.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/download-kdenlive2508-source-300x186.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/download-kdenlive2508-source-768x477.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/download-kdenlive2508-source.webp 1136w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>After downloaded it, also open your Downloads folder, extract and then right-click on source folder and click &#8220;<b>Open in Terminal<\/b>&#8221; to open source in terminal window.<\/p>\n<div id=\"attachment_49515\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-49515\" class=\"size-large wp-image-49515\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-kdenlive2508-terminal-700x484.webp\" alt=\"\" width=\"610\" height=\"422\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-kdenlive2508-terminal-700x484.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-kdenlive2508-terminal-300x207.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-kdenlive2508-terminal-768x531.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/open-kdenlive2508-terminal.webp 920w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-49515\" class=\"wp-caption-text\">open Kdenlive source folder in terminal<\/p><\/div>\n<p>Finally, run the commands below one by one to configure source, build and install the video editor:<\/p>\n<ul>\n<li>First, also create and navigate to <code>build<\/code> sub-folder:\n<pre>mkdir build &amp;&amp; cd build<\/pre>\n<\/li>\n<li>Then, configure the source via command:\n<pre>cmake .. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON<\/pre>\n<p>By default it should install the video editor into <code>\/usr\/local<\/code>, but don&#8217;t know why it&#8217;s <code>\/usr<\/code> in my case. If you don&#8217;t want to override the system default Kdenlive package, then try adding <code>-DCMAKE_INSTALL_PREFIX=\/usr\/local<\/code> command option.<\/li>\n<li>Next, build the source via command:\n<pre>make -j4<\/pre>\n<p>This command tells to start 4 threads in parallel. Depends on how many CPU cores you have (run <code>lscpu |grep CPU<\/code> to tell), you may start more threads with e.g., <code>-j8<\/code> or even -j12.<\/li>\n<li>When done, install the files via command:\n<pre>sudo make install<\/pre>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47862\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive-700x490.webp\" alt=\"\" width=\"610\" height=\"427\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive-700x490.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive-300x210.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive-768x537.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive-1320x923.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/build-kdenlive.webp 1421w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>When everything&#8217;s done, you can now try starting Kdenlive either from start menu or by running <code>kdenlive<\/code> command in terminal. If you have multiple Kdenlive package installed, then try <code>\/usr\/bin\/kdenlive<\/code> (or <code>\/usr\/local\/bin\/kdenlive<\/code>) instead.<\/p>\n<h3>Step 4: Clean up<\/h3>\n<p>After all, you may remove the source tarballs and source folders from <code>Downloads<\/code> folder.<\/p>\n<p>You may optionally remove all the <code>-dev<\/code> packages (the command below does NOT remove all of them) to free-up disk space:<\/p>\n<pre>sudo apt remove frei0r-plugins-dev libarchive-dev libavdevice-dev libavformat-dev libdv4-dev libebur128-dev libexif-dev libfftw3-dev libgdk-pixbuf-2.0-dev libjack-dev libmovit-dev libopencv-dev libpango1.0-dev qt6-5compat-dev librtaudio-dev librubberband-dev libsamplerate0-dev libsdl1.2-compat-dev libsdl2-dev libsox-dev libswscale-dev libvidstab-dev libvorbis-dev libxine2-dev libxml2-dev<\/pre>\n<p><b>IMPORTANT: It&#8217;s OK to remove the <code>-dev<\/code> packages. But after that, many run-time libraries for Kdenlive will be marked as no-longer required. Meaning run <code>apt remove --autoremove<\/code> to remove any package will ALSO remove the run-times that break Kdenlive.<\/b><\/p>\n<h3>Uninstall:<\/h3>\n<p>Until you remove the Kdenlive source folder, you may run the command below to uninstall Kdenlive:<\/p>\n<pre>sudo make uninstall<\/pre>\n<p>If you&#8217;ve already removed the source, then try deleting all the files to get rid of Kdenlive and MLT.<\/p>\n<ul>\n<li>To remove MLT files\/folders, use commands (only run the commands below if you built MLT from source):\n<pre>sudo rm -R \/usr\/local\/include\/mlt-7<\/pre>\n<pre>sudo rm -R \/usr\/local\/lib\/*\/mlt-7<\/pre>\n<pre>sudo rm -R \/usr\/local\/share\/mlt-7<\/pre>\n<pre>sudo rm \/usr\/local\/lib\/*\/libmlt*<\/pre>\n<p>You may replace <code>\/usr\/local<\/code> with <code>\/usr<\/code> in the commands depend on where you configured to install them.<\/li>\n<li>To remove Kdenlive files\/folders, use commands:\n<pre>sudo rm -R \/usr\/share\/kdenlive\/<\/pre>\n<pre>sudo rm -R \/usr\/share\/doc\/HTML\/*\/kdenlive<\/pre>\n<pre>sudo rm \/usr\/share\/applications\/org.kde.kdenlive.desktop<\/pre>\n<pre>sudo rm \/usr\/bin\/kdenlive*<\/pre>\n<\/li>\n<\/ul>\n<p>There are still many other left-overs. To locate them, first run command to install plocate:<\/p>\n<pre>sudo apt install plocate<\/pre>\n<p>Then, run <code>locate mlt<\/code> or <code>locate kdenlive<\/code> to find them. And, run <code>sudo updatedb<\/code> to update plocate database after removed files.<\/p>","protected":false},"excerpt":{"rendered":"<p>This is a step by step guide shows how to compile the Kdenlive video editor 25.08.0 from source tarball in Ubuntu 25.04. The popular Kdenlive video editor dropped native .deb package support for Ubuntu since version 24.02. It now provides official Flatpak package and AppImage for universal Linux support. If you don&#8217;t like running it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":36220,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1615,32],"class_list":["post-47854","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-kdenlive","tag-video-editor"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=47854"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47854\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/36220"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}