Registered Member
|
Hello,
Please help me build KDE. I have done it successfully two months ago, but now I get errors I don't know to surpass. I have a fully upgraded KDE Neon developer edition, I have started from an empty setup, I've followed this guide here: https://community.kde.org/Get_Involved/development: 1. I have followed "Set up kdesrc-build" section 2. I have followed "Download non-KDE dependencies" section 3. I have enabled QT build in ~/.kdesrc-buildrc:
4. I have followed "Plasma" and "Plasma Desktop" sections and I have issued:
It failed. I have tried with " --refresh-build" too. It keeps failing with:
I have moved /home/msdobrescu/.config/kde-env-master.sh, but failed again, the newly created file is exactly the same as the initial one, so no new content there to help. The error logs look like:
What am I missing? |
Registered Member
|
Hello!
You need to provide the header files missing. The error log gives you hints. In your case it needs Qt5X11Extras. You can search the missing stuff on the ubuntu packages website: https://packages.ubuntu.com/search?keywords=X11+Qt5+Extra&searchon=names&suite=focal§ion=all which finds libqt5x11extras5-dev. Install this package and start kdesrc-build again. You can find a (not up to date?) list with required header files here: Install the KDE dependencies |
Registered Member
|
Hello, thanks for answering, but I have it installed. I've run the script for Neon from here: https://community.kde.org/Guidelines_an ... 2C_Kubuntu, the package managers show ibqt5x11extras5-dev as installed. There must be something else, like a path problem.
|
Registered Member
|
Out of curiosity, I have modified kdesrc-build to request QT 5.15.1. The errors are similar:
An error log sample:
I start to think it's related to the build scripts or parameters passed to QT build system. |
Registered Member
|
I've setup a virtual kde neon dev edition and tried it. After installing the headers everything compiled as expected (but installation failed because of missing root permission). Must be a problem with your custom Qt as I just used the one provided by neon. Did it compile without problems?
|
Registered Member
|
Thank you, I think that too.
i am building with 5.14 now, out of curiosity. Next thing is to disable the custom QT build (which is provided by kdesrc-build BTW...). |
Registered Member
|
I have currently changed the setup to:
The system was the current development iso (as I downloaded it today). Updated with `sudo apt update && sudo apt full-upgrade && sudo apt autoremove`. After rebooting I installed the current header files:
Three packages were replaced and I added those mentioned on the website we both used, so this is a nearly matching list. Setting up kdesrc:
Using /usr for Qt is no the best you can do, as everything will fail to install — but it compiled just fine |
Registered Member
|
The first run failed with some packages that could not be built. I grepped out the following parts that caused the fails:
Finding the headers/libs: At first the simple ones: xcb and randr:`apt search dev libxcb-` libxcb-glx0-dev libxcb-icccm4-dev libxcb-randr0-dev libxcb-sync-dev libxcb-xinput-dev (not mentioned, but I know that I do need it later) The libhardware-stuff: I do not know, so I'll take a closer look at kwin: `less ~/kde/src/kwin/CMakeLists.txt` Searching for hardware tells us to install`hwdata`, which already is the newest version… (`apt show hwdata`) as there is no library mentioned I searched for libhardware in the web → Android stuff, so I don't need it for now. The hybris egl platform is for mobiles too. Mer / Jolla / Sailfish OS users may know it already. I'll better skip this one as I have a bad feeling about… but do not remember why. So I'm only providing the missing X11-stuff:
After restarting `./kdesrc-build plasma-desktop` again, it just compiles all 98 modules. |
Registered Member
|
Hello, thank you for investigating, I keep having the same errors if I try building with QT's kdesrc-build.
It seems it misses something, I presume kdesrc-build is not up to date regarding this. I'll try with the distro's packages, but I think it's not that reliable, because daily updates might change things in an unpredictable way. From my experience I'll run into troubles again, in a random fashion. |
Registered Member
|
In my other vm (based on Kubuntu 20.10 daily) I have a self compiled Qt5.15.1, which works with kdesrc-build. Perhaps you'll do it the same way? I've used the source package from here: https://download.qt.io/archive/qt/5.15/5.15.1/single/qt-everywhere-src-5.15.1.tar.xz and compiled it myself in ~/qt5.15.1 as a second Qt independent from the OS ones. You just have to set qtdir ~/qt5.15.1 in your kdesrc-buildrc.
|
Registered Member
|
I don't know what to say. Why that should work, should be the same...
|
Registered Member
|
Did you try the KDE built? I can't logoff from the KDE menu because I have a double set of icons (Firefox, System Settings, Dolphin, Kate, Discover), but no log out, shutdown, restart buttons...
I can't make it build QT. |
Registered Member
|
Yep, I'm currently running it (the kde neon one described above, using the system qt5.15.0). I did follow the hints here: https://community.kde.org/Get_Involved/development#Plasma and added dbus-support and LD_LIBRARY_PATH, adjustet to my setup, and my compiled version is available via SDDM.
|
Registered Member
|
May I ask how long does it compile for you and what CPU do you use?
|
Registered Member
|
Hard to say, as I am using a virtual machine on my homeserver. The VM has 4 Cores and 8G RAM, the server double, but I do not know long it took to compile. Doesn't mean anything anyway, there is much more access to the filesystem than only in this VM, so it would take a longer time than expected and times would change a lot depending on the other traffic.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]