Installation error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
-
wrote on 4 Nov 2019, 09:18 last edited by
I installed Qt5.10.0 on my computer (Ubuntu), and I got this error:
./qt-opensource-linux-x64-5.10.0.run
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QXcbConnection: Could not connect to display
Core dumpedHow I can fix this problem?
Thank you so much! -
I installed Qt5.10.0 on my computer (Ubuntu), and I got this error:
./qt-opensource-linux-x64-5.10.0.run
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QXcbConnection: Could not connect to display
Core dumpedHow I can fix this problem?
Thank you so much!@Ho-Thao Are you trying to start it as root/sudo?
Do you have X11 running? -
wrote on 5 Nov 2019, 08:44 last edited by
@jsulm
I use root#.
I installed X11, and got the error:
#yum install xorg
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile- base: mirror.kakao.com
- centos-sclo-rh: mirror.kakao.com
- centos-sclo-sclo: mirror.kakao.com
- epel: mirrors.aliyun.com
- extras: mirror.kakao.com
- updates: mirror.kakao.com
No package xorg available.
Error: Nothing to do
..............
thank you!
-
@jsulm
I use root#.
I installed X11, and got the error:
#yum install xorg
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile- base: mirror.kakao.com
- centos-sclo-rh: mirror.kakao.com
- centos-sclo-sclo: mirror.kakao.com
- epel: mirrors.aliyun.com
- extras: mirror.kakao.com
- updates: mirror.kakao.com
No package xorg available.
Error: Nothing to do
..............
thank you!
@Ho-Thao said in Installation error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root':
I use root
Do you really have to?
You can install Qt in your home directory (what I always do), for that no root needed. -
wrote on 15 Jan 2021, 00:26 last edited by
I realize this topic is old, but...I'm running into the same warning, and I have Qt installed under my home directory. Where should I be defining this variable?
-
I realize this topic is old, but...I'm running into the same warning, and I have Qt installed under my home directory. Where should I be defining this variable?
@mzimmers Which variable do you mean. When exactly do you get these warnings? When running installer (like OP) or when running your app? Do you have X11 server running?
-
@mzimmers Which variable do you mean. When exactly do you get these warnings? When running installer (like OP) or when running your app? Do you have X11 server running?
-
@jsulm I was referring to XDG_RUNTIME_DIR. I'm seeing the same behavior the OP described in the title. This is at run time. I'm using WSL, so somewhere, there's a virtual X11 server.
Thanks.
-
Since you are on WSL, maybe related to this issue.
-
Since you are on WSL, maybe related to this issue.
wrote on 15 Jan 2021, 18:40 last edited by@SGaist I'm actually getting the app up and running, so I think WSL is working. I think it's just a matter of the path not being set. I'd have expected the project setup to have included this, but perhaps not.
This isn't a big deal; I was just wondering about it.