Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KWin 5.5 without wayland
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
SCT2010
n00b
n00b


Joined: 21 Oct 2014
Posts: 8

PostPosted: Tue Dec 01, 2015 8:15 pm    Post subject: KWin 5.5 without wayland Reply with quote

Hi all,

Until now I am running a plasma desktop 5.4.3 on a X11 system with classic OpenGL. There are a view wayland packages installed, but not used. I would like too keep that, since wayland is not an option yet. Still in heavy development.
I tried to update my plasma workspace from 5.4.3 to 5.4.95. According to the emerge log, the latest kwin requires qtwayland and therefore egl.

Code:

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-qt/qtwayland-5.4.2::gentoo
# required by kde-plasma/kwin-5.4.95::kde
# required by kde-plasma/plasma-meta-5.4.95::kde
# required by @selected
# required by @world (argument)
>=dev-qt/qtgui-5.5.1 egl


So the latest kwin forces me to install a lot of wayland packages and they require to use EGL and therefore OpenGLES.

Here are the "dependencies":
Code:
kwin -> qtwayland -> qtgui[egl] -> qtmultimedia[egl] -> qtgui[egl,gles2]


Now I am ending up with an X11 system and embedded OpenGL and a lot of wayland packages.
Is there a way to install kwin without wayland? In my opinion wayland should be 100% optional and not be forced, because it is still in heavy developement.

Regards,
Tobi
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Tue Dec 01, 2015 8:20 pm    Post subject: Reply with quote

kwin is requiring parts from kwayland, that does not mean you are actually running wayland.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
SCT2010
n00b
n00b


Joined: 21 Oct 2014
Posts: 8

PostPosted: Tue Dec 01, 2015 8:37 pm    Post subject: Reply with quote

I am aware of that kwin requires part of wayland. That was already the case with kwin 5.4. My system has kwayland, kwayland-integration already installed. I am fine with that. But since kwin 5.5 it forces me to switch from openGL to EGL and GLES even when I am not using wayland at all.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Tue Dec 01, 2015 8:51 pm    Post subject: Reply with quote

egl and gles are not related to wayland though, they are alternative (and iirc currently recommended) interfaces.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic


Last edited by asturm on Tue Dec 01, 2015 9:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
SCT2010
n00b
n00b


Joined: 21 Oct 2014
Posts: 8

PostPosted: Tue Dec 01, 2015 9:17 pm    Post subject: Reply with quote

As far as I understand, wayland uses egl instead of glx because glx is a x11 specific api to opengl and egl is an independent one. The issue is, so far there is only an egl api in combination with gles. This means as soon as you are trying to run a wayland server (yes I am not running it and I don't planed to), you are forced to run it on top of gles2.

Since I dont want to switch to gles2 I try to avoid wayland. I am asking, if it is possible to compile kwin with a smaller dependency on wayland, so I can still run my Desktop with the regular OpenGL and X11. In the past there was a wayland useflag in kwin. And so far kwin compiles and runs with a small wayland footprint. In kwin 5.5, the footprint increases and I am no longer allowed to run a X11 session with regular OpenGL and Plasma desktop.
So I am asking if it is possible to change the kwin ebuild to compile kwin with a less dependency on wayland.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed Dec 02, 2015 12:17 pm    Post subject: Reply with quote

SCT2010 wrote:
I am asking if it is possible to change the kwin ebuild to compile kwin with a less dependency on wayland.

Hmm that's odd, as the whole point of KF5 is to be more modular, not less.

You'd have to get into cmake, most likely, to start making changes; ##workingset and #cmake on IRC: chat.freenode.net or .org can help with that (I highly recommend the former, for general toolchain help.)

There are quite a few kde-development channels on freenode as well, but I'd start in #gentoo-desktop where the KDE-herd hang out.
You should also autojoin #gentoo-dev-help for help on ebuilds.

HTH,
steveL.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Wed Dec 02, 2015 6:04 pm    Post subject: Reply with quote

steveL wrote:
SCT2010 wrote:
I am asking if it is possible to change the kwin ebuild to compile kwin with a less dependency on wayland.

Hmm that's odd, as the whole point of KF5 is to be more modular, not less.

Well yes, kf5 are very modular, that doesn't mean a huge DE like plasma-5 does not come with a lot of dependencies. But the OP might be up to something, it looks as if qtwayland could have become optional/unused again.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
SCT2010
n00b
n00b


Joined: 21 Oct 2014
Posts: 8

PostPosted: Wed Dec 02, 2015 7:53 pm    Post subject: Reply with quote

I am not sure if it is possible to compile kwin without the dependency of qtwayland. According to the cmake output it does not require qtwayland.
Code:
$ cmake CMakeLists.txt -L

APPLE_FORCE_X11:BOOL=OFF
APPLE_SUPPRESS_X11_WARNING:BOOL=OFF
BUILD_COVERAGE:BOOL=OFF
BUILD_SHARED_LIBS:BOOL=TRUE
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
ECM_DIR:PATH=/usr/share/ECM/cmake
GETTEXT_MSGFMT_EXECUTABLE:FILEPATH=/usr/bin/msgfmt
GETTEXT_MSGMERGE_EXECUTABLE:FILEPATH=/usr/bin/msgmerge
KDE_INSTALL_USE_QT_SYS_PATHS:BOOL=OFF
KDE_SKIP_UNINSTALL_TARGET:BOOL=OFF
KDOCTOOLS_SERIALIZE_TOOL:STRING=
KDecoration2_DIR:PATH=/usr/lib64/cmake/KDecoration2
KF5Activities_DIR:PATH=/usr/lib64/cmake/KF5Activities
KF5Attica_DIR:PATH=/usr/lib64/cmake/KF5Attica
KF5Auth_DIR:PATH=/usr/lib64/cmake/KF5Auth
KF5Bookmarks_DIR:PATH=/usr/lib64/cmake/KF5Bookmarks
KF5Codecs_DIR:PATH=/usr/lib64/cmake/KF5Codecs
KF5Completion_DIR:PATH=/usr/lib64/cmake/KF5Completion
KF5ConfigWidgets_DIR:PATH=/usr/lib64/cmake/KF5ConfigWidgets
KF5Config_DIR:PATH=/usr/lib64/cmake/KF5Config
KF5CoreAddons_DIR:PATH=/usr/lib64/cmake/KF5CoreAddons
KF5Crash_DIR:PATH=/usr/lib64/cmake/KF5Crash
KF5Declarative_DIR:PATH=/usr/lib64/cmake/KF5Declarative
KF5DocTools_DIR:PATH=/usr/lib64/cmake/KF5DocTools
KF5GlobalAccel_DIR:PATH=/usr/lib64/cmake/KF5GlobalAccel
KF5I18n_DIR:PATH=/usr/lib64/cmake/KF5I18n
KF5IconThemes_DIR:PATH=/usr/lib64/cmake/KF5IconThemes
KF5IdleTime_DIR:PATH=/usr/lib64/cmake/KF5IdleTime
KF5Init_DIR:PATH=/usr/lib64/cmake/KF5Init
KF5ItemViews_DIR:PATH=/usr/lib64/cmake/KF5ItemViews
KF5JobWidgets_DIR:PATH=/usr/lib64/cmake/KF5JobWidgets
KF5KCMUtils_DIR:PATH=/usr/lib64/cmake/KF5KCMUtils
KF5KIO_DIR:PATH=/usr/lib64/cmake/KF5KIO
KF5NewStuff_DIR:PATH=/usr/lib64/cmake/KF5NewStuff
KF5Notifications_DIR:PATH=/usr/lib64/cmake/KF5Notifications
KF5Package_DIR:PATH=/usr/lib64/cmake/KF5Package
KF5Plasma_DIR:PATH=/usr/lib64/cmake/KF5Plasma
KF5Service_DIR:PATH=/usr/lib64/cmake/KF5Service
KF5Solid_DIR:PATH=/usr/lib64/cmake/KF5Solid
KF5Wayland_DIR:PATH=/usr/lib64/cmake/KF5Wayland
KF5WidgetsAddons_DIR:PATH=/usr/lib64/cmake/KF5WidgetsAddons
KF5WindowSystem_DIR:PATH=/usr/lib64/cmake/KF5WindowSystem
KF5XmlGui_DIR:PATH=/usr/lib64/cmake/KF5XmlGui
KScreenLocker_DIR:PATH=KScreenLocker_DIR-NOTFOUND
Qt5Concurrent_DIR:PATH=/usr/lib64/cmake/Qt5Concurrent
Qt5Core_DIR:PATH=/usr/lib64/cmake/Qt5Core
Qt5DBus_DIR:PATH=/usr/lib64/cmake/Qt5DBus
Qt5Gui_DIR:PATH=/usr/lib64/cmake/Qt5Gui
Qt5Multimedia_DIR:PATH=/usr/lib64/cmake/Qt5Multimedia
Qt5Network_DIR:PATH=/usr/lib64/cmake/Qt5Network
Qt5Qml_DIR:PATH=/usr/lib64/cmake/Qt5Qml
Qt5QuickWidgets_DIR:PATH=/usr/lib64/cmake/Qt5QuickWidgets
Qt5Quick_DIR:PATH=/usr/lib64/cmake/Qt5Quick
Qt5Script_DIR:PATH=/usr/lib64/cmake/Qt5Script
Qt5Test_DIR:PATH=/usr/lib64/cmake/Qt5Test
Qt5UiPlugin_DIR:PATH=/usr/lib64/cmake/Qt5UiPlugin
Qt5UiTools_DIR:PATH=/usr/lib64/cmake/Qt5UiTools
Qt5Widgets_DIR:PATH=/usr/lib64/cmake/Qt5Widgets
Qt5X11Extras_DIR:PATH=/usr/lib64/cmake/Qt5X11Extras
Qt5Xml_DIR:PATH=/usr/lib64/cmake/Qt5Xml
Qt5_DIR:PATH=/usr/lib64/cmake/Qt5
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Dec 13, 2015 9:16 am    Post subject: Reply with quote

SCT2010 wrote:
I am asking if it is possible to change the kwin ebuild to compile kwin with a less dependency on wayland.

steveL wrote:
Hmm that's odd, as the whole point of KF5 is to be more modular, not less.

genstorm wrote:
Well yes, kf5 are very modular, that doesn't mean a huge DE like plasma-5 does not come with a lot of dependencies.

Please don't answer me with vague. It's just trolling afaic.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Sun Dec 13, 2015 9:28 am    Post subject: Reply with quote

OP is asking about kde plasma. You are talking about KF5. You confused much?
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Dec 14, 2015 9:52 am    Post subject: Reply with quote

And you are talking trollolol. Previously it was vague bulshytt, designed to provoke.

In case you think it's working, be advised that I find you highly amusing when you start this crap.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Mon Dec 14, 2015 10:47 am    Post subject: Reply with quote

Just ask if you don't understand the difference between kde frameworks and kde plasma.

steveL wrote:
designed to provoke.

You are not everyone's center of attention.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Dec 17, 2015 1:53 pm    Post subject: Reply with quote

So why report me when you're already answering in-thread?
genstorm wrote:
Reason: steveL's phantom pain again, making him feel insecure and seeing trolls everywhere.

It's not everywhere; just whenever you start talking rubbish at me, and acting like you think you're clever for doing so. Show-off much?

WRT the vague substantive, I refer you to my previous answers. Just ask if you have trouble following along, and actually want a substantive discussion; I haven't seen any hint of it yet, just the usual bulshytt.

So in the absence of an apology from you, consider me gone from "your" topic.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 7108
Location: Austria

PostPosted: Mon Jan 11, 2016 5:13 pm    Post subject: Reply with quote

I finally had some spare time to look at kwin's dependency history again:
SCT2010 wrote:
I am not sure if it is possible to compile kwin without the dependency of qtwayland. According to the cmake output it does not require qtwayland.

You had been looking at outdated dependencies at that time. dev-qt/qtwayland (which brought in qtgui[egl]) was a dependency of kwin-5.4.3[wayland] before dev-libs/wayland itself became mandatory in kwin-5.5.0. The dev-qt/qtwayland dependency was removed in kwin-5.5.0 but at the same time kwin was updated to depend on mesa[egl]. The last bit is true for both Plasma/5.5 as well as master branch and it won't go away anymore. Doesn't mean you are forced to wayland at runtime, anyway. So, while there is no way to avoid wayland and egl now, the logic that forced egl instead of opengl in dev-qt/* should be gone for some time. While I am using EGL for Plasma-5.5.3 and can't be 100% sure, at least I can say that dev-qt/qtwayland is not installed on my system.

Btw, KDE-herd hangs out in #gentoo-kde in case you were wondering.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum