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
Forum Updated to NodeBB v4.3 + New Features

Qt hello speak running error

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 439 Views 1 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.
  • S Offline
    S Offline
    ssdroon30
    wrote on 25 May 2020, 03:32 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!

    J 1 Reply Last reply 25 May 2020, 05:11
    0
    • S ssdroon30
      25 May 2020, 03:32

      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!

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 25 May 2020, 05:11 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 25 May 2020, 05:22 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

        S 1 Reply Last reply 25 May 2020, 08:03
        2
        • S SGaist
          25 May 2020, 05:22

          Hi and welcome to devnet,

          What are you trying to execute your application as root ?

          S Offline
          S Offline
          ssdroon30
          wrote on 25 May 2020, 08:03 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

          1/4

          25 May 2020, 03:32

          • Login

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