2015-06-11 12:27:00 +01:00
|
|
|
Building and installing KDE Partition Manager Core Library from source
|
2015-06-04 01:29:22 +01:00
|
|
|
=========================================================
|
|
|
|
|
|
|
|
|
|
|
|
1. Dependencies
|
|
|
|
|
2018-01-16 14:31:38 +00:00
|
|
|
util-linux 2.32: available at https://github.com/karelzak/util-linux
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2015-06-11 12:27:00 +01:00
|
|
|
KDE Frameworks: The minimum required version is 5.0.
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
2. Configure
|
|
|
|
|
2017-12-18 20:45:17 +00:00
|
|
|
KPMcore is built with cmake. It is recommended to build out of tree:
|
2015-06-11 12:27:00 +01:00
|
|
|
After unpacking the source, create a separate build directory and run cmake there:
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2018-01-16 14:31:38 +00:00
|
|
|
$ tar xf kpmcore-x.y.z.tar.xz
|
2017-12-18 20:45:17 +00:00
|
|
|
$ cd kpmcore-x.y.z
|
2015-06-04 01:29:22 +01:00
|
|
|
$ mkdir build
|
|
|
|
$ cd build
|
|
|
|
$ cmake ..
|
|
|
|
|
|
|
|
If all dependencies are met, cmake configures the build directory.
|
|
|
|
|
|
|
|
|
|
|
|
3. Build and install
|
|
|
|
|
|
|
|
Just run make and make install in the build directory. The default install path
|
|
|
|
is /usr/local, so installing will need write privileges there. You can
|
|
|
|
configure a different install path by passing
|
|
|
|
-DCMAKE_INSTALL_PREFIX=<your_path> to cmake when configuring. To change the
|
|
|
|
install path after configuring and building, run
|
|
|
|
|
|
|
|
$ ccmake .
|
|
|
|
|
|
|
|
in the build directory and modify CMAKE_INSTALL_PREFIX there.
|