Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Qt hello speak running error

    General and Desktop
    3
    4
    202
    Loading More Posts
    • 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.
    • ssdroon30
      ssdroon30 last edited by

      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!

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @ssdroon30 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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

          ssdroon30 1 Reply Last reply Reply Quote 2
          • ssdroon30
            ssdroon30 @SGaist last edited by

            @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 Reply Quote 0
            • First post
              Last post