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 24.6k 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 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!

    jsulmJ 1 Reply Last reply
    0
    • H Ho Thao

      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!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 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!

        jsulmJ 1 Reply Last reply
        0
        • H Ho Thao

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on 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?

            jsulmJ 1 Reply Last reply
            0
            • mzimmersM mzimmers

              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?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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

              mzimmersM 1 Reply Last reply
              0
              • jsulmJ jsulm

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

                mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on 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
                0
                • mzimmersM mzimmers

                  @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 last edited by
                  #8

                  @mzimmers
                  Are you running/logged in as root?

                  mzimmersM 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @mzimmers
                    Are you running/logged in as root?

                    mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #9

                    @JonB no, I'm not.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 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

                      mzimmersM 1 Reply Last reply
                      1
                      • SGaistS SGaist

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

                        mzimmersM Offline
                        mzimmersM Offline
                        mzimmers
                        wrote on 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