Qt Forum

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

    Unsolved Qt Creator 3.5: Remote execution broken?

    Tools
    2
    13
    1966
    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.
    • J
      jobe last edited by jobe

      Hi!
      I'm trying debug my program on a remote linux server from within Qt creator.
      The device works without any problems; the test runs through (the test-button at options>devices), I can see the processes (at the same place) and the deployment via sftp works (when pressing the big green play button :)).
      But it doesn't work to run the program then. Neither via "Custom Executable" nor via the "<project name>" run configuration. A "Run ... on Linux Device" window appears in Application Output but just stays empty and the executable is not running on the remote host.

      The project is a simple "Hello World"

      Thanks for your help!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        You have to be more specific otherwise it's pretty much Crystal Ball debugging. What are you trying to connect to ? What error are you getting ?

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

        J 1 Reply Last reply Reply Quote 0
        • J
          jobe @SGaist last edited by

          @SGaist Thanks for the welcome and swift reply. Indeed I accidentally hit Submit in the middle of a sentence, I added more information now.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            What is the test that runs correctly ?

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

            1 Reply Last reply Reply Quote 0
            • J
              jobe last edited by

              I'm talking about the "Test"-button under Options > Devices.

              Unfortunately I can only answer rate-limited because of low reputation... I'll put more details in the description above.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                So you followed this guide and related links to setup your Qt Creator and run your application ?

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

                J 1 Reply Last reply Reply Quote 0
                • J
                  jobe @SGaist last edited by

                  @SGaist yes, exactly.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    The next question might sound silly but do you have Qt properly installed on your target ?

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

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jobe @SGaist last edited by

                      @SGaist It's not a silly question at all! There is indeed no qt installed on the target, but as I'm starting a simple c++ hello world without any qt-stuff involved I thought i wouldn't need that. Also there is the option to say "none" for qt in Options>devices...
                      So does Qt creator use some qt stuff to start the executable?

                      Thank you very much for all your help so far already!

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by SGaist

                        No it should not. AFAIR it uses ssh to connect to your device and handle everything from there. What is your hello world doing ?

                        You're welcome :)

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

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          jobe @SGaist last edited by

                          @SGaist this is the program:
                          https://gist.github.com/anonymous/799e98c7115a37d3058e
                          running it manually works as expected (both locally and on the target)

                          1 Reply Last reply Reply Quote 0
                          • SGaist
                            SGaist Lifetime Qt Champion last edited by

                            And you don't get anything written to that file ?

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

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jobe @SGaist last edited by

                              That's correct. :)

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post