This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to compile and run KWin from master branch?

Tags: None
(comma "," separated)
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
I can't find a way to compile and try KWin from the MASTER branch.
I'm currently on the latest KDE Neon Stable (Plasma 5.24) but I wouldn't mind switching to any other version (it's a VM for the sole purpose of trying the newest KWin).
I was able to successfully compile KWin on the "Plasma/5.24" branch, but I don't seem to be able to compile the version form the master branch.
How would I go about trying out the newest KWin from the master branch?

I tried just using cmake without any arguments like I would if I wanted to compile the 5.24 version, (on KDE Neon, Plasma 5.24) but it spits out the following error:

Code: Select all
CMake Error at CMakeList.txt:143 (find_package):
  Could not find a configuration file for package "KDecoration2" that is
  compatible with requested version "5.24.80".
 
  The following configuration files were considered but not accepted:

    /usr/lib/....../Kdecoration2Config.cmake, version 5.24.4
    /lib/x86_64-linux-gnu/....../KDecoration2Config.cmake, version 5.24.4
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Hi!

I suggest using kdesrc-build as it makes things a lot easier, including running your custom versions.
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:Hi!

I suggest using kdesrc-build as it makes things a lot easier, including running your custom versions.


Well I have kdesrc-build installed and I used it to install the dependencies, but obviously one version. One KWin version might require other dependency versions than another.
So how would I use kdesrc then? Could you elaborate?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
I don't know what you are looking for. Take the documentation at docs.kde.org and ask precisely where you got stuck.

If you want to maintain different KWin experiments in parallel, I suggest to use different git branches and change them with git checkout
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
I followed the instructions at https://community.kde.org/KWin/Building. When running the CMAKE command, it gives me the posted error. I tried it on two different distributions (Arch Linux and KDE Neon) and I always get some kind of dependency errors. So there mist be a better way I, I thought.

My question is:

How can i install all dependencied needed for building kwin/master? Kdesrc-build only gives me the dependencies for Kwin 5.24, as thats the KDE Plasma Version I currently have.
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
The instructions are for kde4, so outdated.

If you insist of using cmake yourself instead of kdesrc-build, follow the logfile in $BUILDDIR/CMakeFiles/CMakeOutput.log and check. Your two lines mention an incompatibility of Kdecoration2Config.cmake as the installed one is used instead of your cloned one. To build KWin in a newer versio you also have to build the dependencies in a newer version, thats why I mentioned kdesrc-build as it fetches all sources you need itself.
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
I would like to use kdesrc-build instead of cmake, but haven't found any instructions on how to build kwin/master. I have kdesrc-build installed. What do I do to build kwin/master?
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Did you read the linked documentation above? Then please ask exactly where you got stuck and what you tried.
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:Did you read the linked documentation above? Then please ask exactly where you got stuck and what you tried.


I got stuck at the section called "Running cmake". The error message I get is in this post above (the original post).
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
The only part of the documentation using the term "Running cmake" is at "Building extra - cmake - modules from frameworks - set" in the example output. So I still do not know what you are trying to do.
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
koffeinfriedhof wrote:The only part of the documentation using the term "Running cmake" is at "Building extra - cmake - modules from frameworks - set" in the example output. So I still do not know what you are trying to do.


"Running CMake" is the title of the section where I got stuck. Here it is: https://community.kde.org/KWin/Building#Running_cmake
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
Are you really working with Qt4?
Niklas Stephanblome
Registered Member
Posts
8
Karma
0
I resolved this now. I didn't realize that kdesrc-build did not only install the dependencies, but actually BUILT eveything for me.
I thought you had to run kdesrc-buid to build the dependencies and then run cmake. (Some VERY bad advice I got from some old developer). Those QT4 instructions were the only one I found.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]