... | ... | @@ -4,6 +4,30 @@ Rolling release distributions are preferred development environments because the |
|
|
|
|
|
It is highly recommended to use the `kdesrc-build` utility to build and test KDE projects. This is because it can handle building the **entire** Plasma stack, which may be necessary if the current master branch depends on unreleased changes from it (and so will not work with your system Plasma version).
|
|
|
|
|
|
### Quickly building projects without `kdesrc-build`
|
|
|
|
|
|
For the most part, if you want to build a single application without needing to build the entire Plasma stack, we can directly build it.
|
|
|
|
|
|
On the system, we need Plasma, ECM and base development packages installed (on Arch, this is `extra-cmake-modules` and `base-devel`).
|
|
|
|
|
|
For example, if we wanted to build [KWeather](https://invent.kde.org/plasma-mobile/kweather)
|
|
|
|
|
|
```bash
|
|
|
# Pull source code
|
|
|
git clone https://invent.kde.org/plasma-mobile/kweather
|
|
|
cd kweather
|
|
|
|
|
|
# Create build folder
|
|
|
mkdir build
|
|
|
cmake .. # Generate build files
|
|
|
make -j8 # Build the project, change 8 to the number of threads your system has
|
|
|
|
|
|
# Run the built binary
|
|
|
./bin/kweather
|
|
|
```
|
|
|
|
|
|
Check the README file for the application you want to build for more details.
|
|
|
|
|
|
### Setting up `kdesrc-build`
|
|
|
|
|
|
View [this page](https://community.kde.org/Get_Involved/development) for more detailed instructions on setting up the utility. Below is a condensed version.
|
... | ... | |