Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt hello speak running error
QtWS25 Last Chance

Qt hello speak running error

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 429 Views
  • 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.
  • ssdroon30S Offline
    ssdroon30S Offline
    ssdroon30
    wrote on last edited by
    #1

    Hello,

    I have installed Ubuntu 20.04 and Qt 5.14.2.
    I want to run the Qt example hello_speak.
    When I Build and Run it in QTCreator it runs perfectly, but when I want to run the executable file from my home directory so:
    sudo ./hello_speak

    than I get the following error what I see in the terminal:
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    Connection to speech-dispatcher failed

    The window is running, but I can't choose any options under Language and in Voice name.
    What could be the problem?

    Thank you in advance for the answers!

    jsulmJ 1 Reply Last reply
    0
    • ssdroon30S ssdroon30

      Hello,

      I have installed Ubuntu 20.04 and Qt 5.14.2.
      I want to run the Qt example hello_speak.
      When I Build and Run it in QTCreator it runs perfectly, but when I want to run the executable file from my home directory so:
      sudo ./hello_speak

      than I get the following error what I see in the terminal:
      QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
      Connection to speech-dispatcher failed

      The window is running, but I can't choose any options under Language and in Voice name.
      What could be the problem?

      Thank you in advance for the answers!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        What are you trying to execute your application as root ?

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

        ssdroon30S 1 Reply Last reply
        2
        • SGaistS SGaist

          Hi and welcome to devnet,

          What are you trying to execute your application as root ?

          ssdroon30S Offline
          ssdroon30S Offline
          ssdroon30
          wrote on last edited by
          #4

          @SGaist
          Hello,

          it is a simple runnable file after build.
          Interesting, but now it works.

          I use without sudo:
          ./hello_speak

          Thanks for the answer.

          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