Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Connecting to remote server failed:

Connecting to remote server failed:

Scheduled Pinned Locked Moved Solved Mobile and Embedded
16 Posts 2 Posters 4.8k 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.
  • K-StrK Offline
    K-StrK Offline
    K-Str
    wrote on last edited by K-Str
    #1

    Hello,
    after a recommended update to :
    Qt Creator 4.5.0
    Based on Qt 5.10.0 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
    Built on Dec 4 2017 04:11:21
    From revision fcea6ceba6

    I can not use QT creator for developing C++ programms for Raspberry pi3.

    When I try to upload my application for debugging I get the following error:
    Connecting to remote server failed:
    tcp:raspberrypi:10000: No route to host.

    I have no idea whats happens. I can connect ro the raspberry pi 3 using
    ssh -l pi raspberrypi
    also
    ssh -l pi raspberrypi works
    Thanks for your help.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you start Qt Creator from the command line, do you have any information printed on it when you try to connect to your Pi ?

      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
      0
      • K-StrK Offline
        K-StrK Offline
        K-Str
        wrote on last edited by K-Str
        #3

        Hi SGaist,
        thanks for your answer.
        I get this output:
        No tool chain set up in kit "Raspberrypi" for "C".
        No tool chain set up in kit "Raspberrypi" for "C++".
        No tool chain set up in kit "Raspberrypi" for "C".
        No tool chain set up in kit "Raspberrypi" for "C++".
        SOFT ASSERT: "isValid()" in file /work/build/qt-creator/src/libs/utils/port.h, line 53
        Empty filename passed to function

        Please what does this mean?
        I think the last two lines show the problem.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          That you have Kit name Raspberrypi that seems to not have a toolchain configured for it.

          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
          0
          • K-StrK Offline
            K-StrK Offline
            K-Str
            wrote on last edited by K-Str
            #5

            Hi SGaist,
            it's crazy! It worked before. But some has been lost.
            Ok now I executed with an older toolchain. but it doesn't work neiteher.
            /home/kurt/Qt/Tools/QtCreator/bin/qtcreator
            SOFT ASSERT: "isValid()" in file /work/build/qt-creator/src/libs/utils/port.h, line 53
            Empty filename passed to function

            Where is this file located?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you update your system recently ?

              What version of OpenSSL do you have installed ?

              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
              0
              • K-StrK Offline
                K-StrK Offline
                K-Str
                wrote on last edited by K-Str
                #7

                Hello SGaist,
                I use on UBUNTU
                OpenSSL 1.0.2g 1 Mar 2016
                on the raspberry
                OpenSSL 1.0.1t 3 May 2016

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What version of Ubuntu ?

                  OpenSSL looks fine.

                  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
                  0
                  • K-StrK Offline
                    K-StrK Offline
                    K-Str
                    wrote on last edited by
                    #9

                    the ubuntu version is
                    4.13.0-32-generic
                    the release is
                    LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
                    Distributor ID: Ubuntu
                    Description: Ubuntu 16.04.3 LTS
                    Release: 16.04
                    Codename: xenial

                    1 Reply Last reply
                    0
                    • K-StrK Offline
                      K-StrK Offline
                      K-Str
                      wrote on last edited by
                      #10

                      Hello,
                      I found on the raspberry runs posibly GDB-multiarch?
                      pi@raspberrypi:~ $ ps -ef |grep gdb
                      pi 1265 1247 0 15:22 ? 00:00:00 gdbserver --multi :10000

                      What about the QT-Creator? I haven't found a similar one on my ubuntu PC.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        It's not multi arch. It means that gdbserver is started without an application to start or a process connect to. You can then connect to it and decide whether it should attach to a running process or run something.

                        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
                        0
                        • K-StrK Offline
                          K-StrK Offline
                          K-Str
                          wrote on last edited by K-Str
                          #12

                          I think qt is quite corrupted.
                          Maybe I have to install it again because it's a very good tool.
                          Does somebody know a good tutorial to install qt (open source) for c++ and remote debugging for raspberry? Maybe on a windows PC or ubuntu.
                          I'm very frustrated!!!
                          Thanks in advanc.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            The no route to suggest that it can resolve the raspberrypi name to a suitable address. Did you try to use the IP directly ?

                            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
                            0
                            • K-StrK Offline
                              K-StrK Offline
                              K-Str
                              wrote on last edited by
                              #14

                              No, I didn't, but I will try it.
                              Thanks.
                              Kurt

                              1 Reply Last reply
                              0
                              • K-StrK Offline
                                K-StrK Offline
                                K-Str
                                wrote on last edited by
                                #15

                                Hello SGaist,
                                thank you very much!
                                it works!!!
                                I have to check my router why it finds no remote device.
                                Kurt

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  Maybe also your /etc/hosts file.

                                  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
                                  0

                                  • Login

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