What is this "warning"?
-
I do not care for "warnings" , but have no clue where did this came from.
Please - help me to get rid this
If possible provide actual SOLUTION, RTFM or "search xyz " "suggestions" seldom helps.
If you cannot provide direct solution IGNORE this postWarning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
12:06:03: /home/qt/Qt/PROJECTS/build-TEST-Desktop_Qt_5_15_2_GCC_64bit-Debug/TEST exited with code 0 -
You are likely running Wayland desktop session but you used to run X11. If your application runs, you can safely ignore this.
If it does not, try setting the environment variable like the warning tells you, or run your app with
-platform=wayland
parameter. Not sure if wayland platform plugin is shipped by default, but if yes, it should work. -
@sierdzio Can you tell me EXACTLY where - in "options" - to REMOVE this warning ?
I suspect it is "byproduct" of new Ubuntu 21.04
I have a funny philosophy - if it does not contribute why mentioning it and do not really gave (in warning message) a real option / suggestion how to stop it.On top of that - even before upgrading to 21.04 I have experienced new errors and this useless warning COULD have contributed to the errors.
Again - to be honest , I cannot consider this issue "SOLVED".
-
@sierdzio said in What is this "warning"?:
-platform=wayland
export QT_QPA_PLATFORM=wayland
./your appor ./your app -platform wayland
if you do not have qt wayland, install it:
git clone git://code.qt.io/qt/qtwayland.git
cd qtwayland
git checkout v5.15.2 #(this is your qt version)
qmake
make
sudo make install
https://wiki.qt.io/QtWayland <== check here outHope it is solved.
-
@AnneRanch said in What is this "warning"?:
@sierdzio Can you tell me EXACTLY where - in "options" - to REMOVE this warning ?
In what "options" - if you want exact answer, ask exact question please.
If you speak about Qt Creator, then:
- go to Projects
- go to Run
- in "Command line arguments:", type
-platform=wayland
- run your application
Alternatively you can try
-platform=xcb
to force X11 plugin to load.And the last option is to run X11 (you can choose display manager when logging in to your Linux system).
I suspect it is "byproduct" of new Ubuntu 21.04
Yes, default window manager has changed to Wayland for some users.
I have a funny philosophy - if it does not contribute why mentioning it and do not really gave (in warning message) a real option / suggestion how to stop it.
But it does give you exact information how to solve it...
-
@JoeCFD plz give me solution sir,
Today I installed qt 6.1 in my PC (red hat 8),so after finishing downloading and pressed on finish button ,default qt creator should open but it didn’t open ,so I tryed to open from my terminal and I getting this warning message and getting AbortWarning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Can anyone please solve this problem for me,thanks in advance .
-
@nikhilsarma hi, @sierdzio already gave the information you need.