2008-09-24 20:32:01 +01:00
|
|
|
Building and installing KDE Partition Manager from source
|
|
|
|
=========================================================
|
|
|
|
|
|
|
|
|
|
|
|
1. Dependencies
|
|
|
|
|
2017-12-16 20:18:14 +00:00
|
|
|
KDE Frameworks: The minimum required version is 5.31.
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2017-12-18 21:02:53 +00:00
|
|
|
KPMcore: https://cgit.kde.org/kpmcore.git/
|
|
|
|
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
2. Configure
|
|
|
|
|
2017-12-18 21:02:53 +00:00
|
|
|
KDE Partition Manager is built with cmake. It is
|
2008-09-24 20:32:01 +01:00
|
|
|
recommended to build out of tree: After unpacking the source, create a separate
|
|
|
|
build directory and run cmake there:
|
|
|
|
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2018-01-16 14:30:31 +00:00
|
|
|
$ tar xf partitionmanager-x.y.z.tar.xz
|
2017-12-18 21:02:53 +00:00
|
|
|
$ cd partitionmanager-x.y.z
|
2008-09-24 20:32:01 +01:00
|
|
|
$ mkdir build
|
|
|
|
$ cd build
|
|
|
|
$ cmake ..
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
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
|
2019-01-06 17:33:35 +00:00
|
|
|
is `/usr/local`, so installing will need write privileges there. You can
|
2008-09-24 20:32:01 +01:00
|
|
|
configure a different install path by passing
|
2019-01-06 17:33:35 +00:00
|
|
|
`-DCMAKE_INSTALL_PREFIX=<your_path>` to cmake when configuring. To change the
|
2009-01-09 10:55:50 +00:00
|
|
|
install path after configuring and building, run
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2008-09-24 20:32:01 +01:00
|
|
|
$ ccmake .
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2019-01-06 17:33:35 +00:00
|
|
|
in the build directory and modify `CMAKE_INSTALL_PREFIX` there.
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
|
|
|
|
4. Running
|
|
|
|
|
|
|
|
KDE Partition Manager should be run as root. Running it as an unprivileged user
|
2010-05-04 10:32:05 +01:00
|
|
|
does no harm, but the default settings will not allow you to apply any
|
|
|
|
operations (i.e., you can click through the UI, but cannot modify your disks).
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
|
2009-01-09 12:59:45 +00:00
|
|
|
5. Troubleshooting
|
|
|
|
|
|
|
|
If you are getting an error like this during the build:
|
|
|
|
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2009-01-09 12:59:45 +00:00
|
|
|
index.docbook:71: parser error : Entity 'partman' not defined
|
2019-01-06 17:33:35 +00:00
|
|
|
```
|
2009-01-09 12:59:45 +00:00
|
|
|
|
|
|
|
there is a problem with a documentation file. This is easily fixed by
|
2019-01-06 17:33:35 +00:00
|
|
|
commenting out the offending language in `doc/CMakeLists.txt` -- the error
|
2009-01-09 12:59:45 +00:00
|
|
|
message should indicate which language causes the error. As an alternative, you
|
|
|
|
can disable building all documentation by commenting out the
|
2019-01-06 17:33:35 +00:00
|
|
|
`macro_optional_add_subdirectory(doc)` line in the toplevel `CMakeLists.txt` file.
|
2009-01-09 12:59:45 +00:00
|
|
|
|