LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-07-2024, 03:11 AM   #16
Julius-Caesar
LQ Newbie
 
Registered: Nov 2014
Posts: 16

Rep: Reputation: Disabled

Make your own slackbuild script using some template as I do for all my builds.

Also, take a look at how Arch Linux build the package you want:

https://archlinux.org/packages/

Search there for kdenlive, click in package name, then click in the right part where it says "Source Files"
and finally click in PKGBUILD (this is the Arch package build script).


Kdenlive sources:

Master version:
https://invent.kde.org/multimedia/kd.../-/tree/master

23.08.5 version:
https://invent.kde.org/multimedia/kd...23.08.5.tar.gz


PD:

Something "generic" to add to your build script to build with cmake:

cmake -S . -B build \
-D CMAKE_C_FLAGS="-O2 -fPIC" \
-D CMAKE_CXX_FLAGS="-O2 -fPIC" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib64 \
-D LIB_SUFFIX="64" \
-D SYSCONFDIR=/etc \
-D MANDIR=/usr/man \
-D DOCDIR=/usr/doc/$NAME-$VERSION \
-D CMAKE_BUILD_TYPE=Release \

cmake --build build
DESTDIR=$PKG cmake --install build


Replace $NAME, $VERSION, $PKG, etc. with appropriate var names used in your script.
 
2 members found this post helpful.
Old 04-07-2024, 03:20 AM   #17
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,796

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Quote:
Originally Posted by rinza View Post
Maybe I should check the configure flags for kdenlive? But where is it stored?
In directory source/kde/kde/cmake, copy the default file 'cmake' to 'kdenlive' and edit it.
 
1 members found this post helpful.
Old 04-07-2024, 03:20 AM   #18
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 32

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Julius-Caesar View Post
Make your own slackbuild script using some template as I do for all my builds.

Also, take a look at how Arch Linux build the package you want:
Thanks, good idea. I usually fix available slackbuild script for newer versions with the guidance of arch's pkgbuild. I guess this building process for kdenlive in Slackware is so confusing that it will be easier to create a slackbuild script from scratch altogether.
 
Old 04-07-2024, 03:21 AM   #19
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 32

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Petri Kaukasoina View Post
In directory source/kde/kde/cmake, copy the default file 'cmake' to 'kdenlive' and edit it.
Ah! Nice, thanks!
I guess kdenlive is using some generic configure options, there are no specific file with instructions for it. I even tried find kde -iname "*kdenlive*" -type f but the files found are just mirrorlists, the slack-desc, a build checking flag for the script and the source files.

Last edited by rinza; 04-07-2024 at 03:27 AM.
 
Old 04-07-2024, 03:22 AM   #20
Julius-Caesar
LQ Newbie
 
Registered: Nov 2014
Posts: 16

Rep: Reputation: Disabled
btw, cmake -L in sources tree lists build options
 
1 members found this post helpful.
Old 04-07-2024, 03:31 AM   #21
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,796

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Quote:
Originally Posted by rinza View Post
Ah! Nice, thanks!
I guess kdenlive is using some generic configure options, there are no specific file with instructions for it. I even tried find kde -iname "*kdenlive*" -type f but the files found are just mirrorlists, the slack-desc, a build checking flag for the script and the source files.
Yes, the file source/kde/kde/cmake/cmake is exactly the generic one which is used if there is not yet file source/kde/kde/cmake/kdenlive. That's why you need to copy source/kde/kde/cmake/cmake to source/kde/kde/cmake/kdenlive and edit it.
 
1 members found this post helpful.
Old 04-07-2024, 03:33 AM   #22
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 32

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by Petri Kaukasoina View Post
Yes, the file source/kde/kde/cmake/cmake is exactly the generic one which is used if there is not yet file source/kde/kde/cmake/kdenlive. That's why you need to copy source/kde/kde/cmake/cmake to source/kde/kde/cmake/kdenlive and edit it.
Sorry, I have misread the "to" with "and". I'll try that, thanks again.
 
Old 04-07-2024, 10:56 PM   #23
rinza
Member
 
Registered: Feb 2021
Distribution: Slackware64-current / Plasma
Posts: 32

Original Poster
Rep: Reputation: 2
I'm closing this since the main question was answered (how the rebuild, configure, etc kdenlive). Just a feedback: there is no special flag to set during compilation time for enabling features. Everything is detected at runtime, on startup. I've tried to recompile mlt, which is crucial for this detection apparently, but eventually I discovered that aac codec can be detected after clicking Menu Settings > Run Config Wizard. Tracking plugin won't work because it depends on OpenCV, but current ffmpeg is incompatible with current opencv, so you would have to downgrade it. Same thing for plugins which depends on lensfun, you'll have to recompile ffmpeg but against a newer lensfun than the current shipped.

So, I will have to stick to the official AppImage instead of the system version. Thanks everyone for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Kdenlive (Current) x264 and x265 rendering ReFracture Slackware 3 02-07-2022 02:24 AM
[SOLVED] How to rebuild the corrupted rebuild RPM database pantdk Linux - Server 3 02-19-2015 01:01 AM
Slackware64-current, subpixel patch to rebuild Freetype must be edited gordydawg Slackware 1 08-28-2014 11:50 AM
[BUG] slackware-current, xfce4-terminal needs rebuild with libxcb-util.so.1 bormant Slackware 17 09-14-2013 12:27 PM
tightvnc needs a rebuild in current gapan Slackware 7 06-16-2010 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration