LinuxCommandLibrary

kdesrc-build

tool for building KDE software from source repositories

TLDR

Initialize kdesrc-build

$ kdesrc-build --initial-setup
copy
Build a KDE component and its dependencies
$ kdesrc-build [component_name]
copy
Build without updating or dependencies
$ kdesrc-build --no-src --no-include-dependencies [component_name]
copy
Refresh build directories before compiling
$ kdesrc-build --refresh-build [component_name]
copy
Resume from a specific dependency
$ kdesrc-build --resume-from [dependency_component] [component_name]
copy
Run a built component
$ kdesrc-build --run --exec [executable_name] [component_name]
copy
Build all configured components
$ kdesrc-build
copy

SYNOPSIS

kdesrc-build [options] [components]

DESCRIPTION

kdesrc-build is a tool for building KDE software from source repositories. It automates downloading, configuring, and compiling KDE components with proper dependency handling.
The tool manages a local checkout of KDE source code and can build individual components or entire desktop environments. Configuration is stored in ~/.config/kdesrc-buildrc.

PARAMETERS

--initial-setup

Initialize configuration
--no-src
Don't update source code
--no-include-dependencies
Don't build dependencies
--refresh-build
Clean build directories before building
--resume-from COMPONENT
Resume from specified component
--run --exec NAME
Run built executable
--no-stop-on-failure
Continue building if component fails

CAVEATS

Requires significant disk space and time. Build dependencies must be installed. Consider using kde-builder as a modern replacement with improved performance.

HISTORY

kdesrc-build has been the standard tool for KDE developers to build KDE software from source for many years. It's being gradually replaced by kde-builder.

SEE ALSO

kde-builder(1), cmake(1), make(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community