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
|
|
|
=========================================================
|
|
|
|
|
2019-01-06 19:24:23 +00:00
|
|
|
## Dependencies
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2019-02-16 11:49:51 +00:00
|
|
|
* [util-linux](https://github.com/karelzak/util-linux) 2.34
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2019-01-06 19:24:23 +00:00
|
|
|
* [Qt](https://www.qt.io/) 5.10
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2019-01-06 19:24:23 +00:00
|
|
|
* QCA
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2019-02-16 11:49:51 +00:00
|
|
|
* Tier 2 [KDE Frameworks](https://www.kde.org/products/frameworks/) 5.56
|
2019-01-06 19:24:23 +00:00
|
|
|
|
|
|
|
## Configure
|
|
|
|
|
|
|
|
KPMcore is built with [cmake](https://cmake.org/). 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
|
|
|
|
2019-02-16 11:49:51 +00:00
|
|
|
```bash
|
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 ..
|
2019-01-06 19:16:21 +00:00
|
|
|
```
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
If all dependencies are met, cmake configures the build directory.
|
|
|
|
|
|
|
|
|
2019-01-06 19:24:23 +00:00
|
|
|
## Build and install
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
Just run make and make install in the build directory. The default install path
|
2019-01-06 19:16:21 +00:00
|
|
|
is `/usr/local`, so installing will need write privileges there. You can
|
2015-06-04 01:29:22 +01:00
|
|
|
configure a different install path by passing
|
2019-01-06 19:16:21 +00:00
|
|
|
`-DCMAKE_INSTALL_PREFIX=<your_path>` to cmake when configuring. To change the
|
2015-06-04 01:29:22 +01:00
|
|
|
install path after configuring and building, run
|
|
|
|
|
2019-02-16 11:49:51 +00:00
|
|
|
```bash
|
2015-06-04 01:29:22 +01:00
|
|
|
$ ccmake .
|
2019-01-06 19:16:21 +00:00
|
|
|
```
|
2015-06-04 01:29:22 +01:00
|
|
|
|
2019-01-06 19:16:21 +00:00
|
|
|
in the build directory and modify `CMAKE_INSTALL_PREFIX` there.
|