Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Installation error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Forum Updated to NodeBB v4.3 + New Features

Installation error: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 5 Posters 25.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Ho Thao
    wrote on 4 Nov 2019, 09:18 last edited by
    #1

    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 dumped

    How I can fix this problem?
    Thank you so much!

    J 1 Reply Last reply 4 Nov 2019, 09:39
    0
    • H Ho Thao
      4 Nov 2019, 09:18

      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 dumped

      How I can fix this problem?
      Thank you so much!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 4 Nov 2019, 09:39 last edited by
      #2

      @Ho-Thao Are you trying to start it as root/sudo?
      Do you have X11 running?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • H Offline
        H Offline
        Ho Thao
        wrote on 5 Nov 2019, 08:44 last edited by
        #3

        @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!

        J 1 Reply Last reply 6 Nov 2019, 06:32
        0
        • H Ho Thao
          5 Nov 2019, 08:44

          @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!

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 6 Nov 2019, 06:32 last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • M Online
            M Online
            mzimmers
            wrote on 15 Jan 2021, 00:26 last edited by
            #5

            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?

            J 1 Reply Last reply 15 Jan 2021, 05:20
            0
            • M mzimmers
              15 Jan 2021, 00:26

              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?

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 15 Jan 2021, 05:20 last edited by
              #6

              @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?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply 15 Jan 2021, 15:40
              0
              • J jsulm
                15 Jan 2021, 05:20

                @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?

                M Online
                M Online
                mzimmers
                wrote on 15 Jan 2021, 15:40 last edited by
                #7

                @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.

                JonBJ 1 Reply Last reply 15 Jan 2021, 15:54
                0
                • M mzimmers
                  15 Jan 2021, 15:40

                  @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.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on 15 Jan 2021, 15:54 last edited by
                  #8

                  @mzimmers
                  Are you running/logged in as root?

                  M 1 Reply Last reply 15 Jan 2021, 15:55
                  0
                  • JonBJ JonB
                    15 Jan 2021, 15:54

                    @mzimmers
                    Are you running/logged in as root?

                    M Online
                    M Online
                    mzimmers
                    wrote on 15 Jan 2021, 15:55 last edited by
                    #9

                    @JonB no, I'm not.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 15 Jan 2021, 18:37 last edited by
                      #10

                      Since you are on WSL, maybe related to this issue.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      M 1 Reply Last reply 15 Jan 2021, 18:40
                      1
                      • SGaistS SGaist
                        15 Jan 2021, 18:37

                        Since you are on WSL, maybe related to this issue.

                        M Online
                        M Online
                        mzimmers
                        wrote on 15 Jan 2021, 18:40 last edited by
                        #11

                        @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.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved