cmakeSince version 0.7.10 Kwave uses cmake, a make system that is also used by KDE itself. So if you know how to build other KDE applications, you should not have any difficulties in building Kwave.
In order to compile and install Kwave on your system, it is best practice to do a out-of-tree build. This means that you hold the sources of Kwave in one directory and build the package in another (temporary) directory.
For example, assuming that your sources are already
unpacked in , you
can do the following:
$HOME/src/kwave
%mkdir /tmp/kwave-build%cd /tmp/kwave-build%cmake$HOME/src/kwave[build options]
Specifying build options is a way to enable or disable specific features. Please see the following section for a list of options!
By specifying build options, you can enable or disable some features of Kwave, like excluding some components or plugins from the generated package. Here is a list of the available options:
CMAKE_INSTALL_PREFIXinstallation prefix of your KF5 installation [on/off, default=/usr/local]You can find out the correct value with the following command:
%kf5-config --prefixWITH_ALSAenable playback/recording via ALSA [on/off, default=on]WITH_DOCbuild online documentation [on/off, default=on]WITH_FLACenable support for FLAC files [on/off, default=on]WITH_MP3enable support for mp3 files [on/off, default=on]WITH_OGG_OPUSenable support for Ogg/Opus files [on/off, default=on]WITH_OGG_VORBISenable support for Ogg/Vorbis files [on/off, default=on]WITH_OPTIMIZED_MEMCPYuse an optimized version of memcpy, available for X86, X86_64 and PPC platforms [on/off, default=on]WITH_OSSenable playback/recording via OSS [on/off, default=on]WITH_PULSEAUDIOenable playback/recording via PulseAudio [on/off, default=on]WITH_QT_AUDIOenable playback via Qt Multimedia [on/off, default=on]
These options can be passed to cmake
with -Doption=value.
For example, if you want to disable MP3 support,
you can pass the corresponding option as follows:
% cmake [source directory] -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DWITH_MP3=OFF [other options...]